[Trunk|library]
Manage: add a parameter for button size Fearch form: add a parameter to put form in the center git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@55270 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
0668d1dcc3
commit
ed5556933f
|
@ -7,7 +7,7 @@ import {Router} from '@angular/router';
|
||||||
selector: 'search-form',
|
selector: 'search-form',
|
||||||
template: `
|
template: `
|
||||||
|
|
||||||
<form [class]="(isDisabled)?'uk-margin uk-text-center uk-margin-top uk-disabled':'uk-margin uk-text-center uk-margin-top'">
|
<form [class]="((isDisabled)?'uk-disabled':'')+' uk-margin uk-margin-top '+(setFormCentered?' uk-text-center':'')">
|
||||||
<input type="text" class="uk-input uk-width-xlarge" [placeholder]="placeholderText" aria-describedby="sizing-addon2" [(ngModel)]="keyword" name="keyword" >
|
<input type="text" class="uk-input uk-width-xlarge" [placeholder]="placeholderText" aria-describedby="sizing-addon2" [(ngModel)]="keyword" name="keyword" >
|
||||||
<button *ngIf="!link" (click)="keywordChanged()" type="submit" class=" uk-button portal-button">
|
<button *ngIf="!link" (click)="keywordChanged()" type="submit" class=" uk-button portal-button">
|
||||||
<span class="uk-icon" ><svg width="30" height="30" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" icon="search" ratio="1.5"><circle fill="none" stroke="#000" stroke-width="1.1" cx="9" cy="9" r="7"></circle><path fill="none" stroke="#000" stroke-width="1.1" d="M14,14 L18,18 L14,14 Z"></path></svg></span>
|
<span class="uk-icon" ><svg width="30" height="30" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" icon="search" ratio="1.5"><circle fill="none" stroke="#000" stroke-width="1.1" cx="9" cy="9" r="7"></circle><path fill="none" stroke="#000" stroke-width="1.1" d="M14,14 L18,18 L14,14 Z"></path></svg></span>
|
||||||
|
@ -25,6 +25,7 @@ export class SearchFormComponent {
|
||||||
@Input() generalSearch: boolean = false;
|
@Input() generalSearch: boolean = false;
|
||||||
@Input() placeholderText: string = "Type keywords";
|
@Input() placeholderText: string = "Type keywords";
|
||||||
@Input() link: string = "";
|
@Input() link: string = "";
|
||||||
|
@Input() setFormCentered: boolean = true;
|
||||||
public routerHelper:RouterHelper = new RouterHelper();
|
public routerHelper:RouterHelper = new RouterHelper();
|
||||||
|
|
||||||
@Output() keywordChange = new EventEmitter();
|
@Output() keywordChange = new EventEmitter();
|
||||||
|
|
|
@ -3,7 +3,9 @@ import { Component, Input} from '@angular/core';
|
||||||
selector: 'manage',
|
selector: 'manage',
|
||||||
template: `
|
template: `
|
||||||
|
|
||||||
<a [href]="'https://beta.admin.connect.openaire.eu/dashboard?communityId='+communityId" class="uk-button uk-button-default uk-button-small portal-button" target="_blank">
|
<a [href]="'https://beta.admin.connect.openaire.eu/dashboard?communityId='+communityId"
|
||||||
|
[class]=" ((buttonSizeSmall)?'uk-button-small':'')+' uk-button uk-button-primary'"
|
||||||
|
target="_blank">
|
||||||
Manage
|
Manage
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
@ -13,7 +15,6 @@ import { Component, Input} from '@angular/core';
|
||||||
|
|
||||||
export class ManageComponent {
|
export class ManageComponent {
|
||||||
@Input() communityId:string;
|
@Input() communityId:string;
|
||||||
|
@Input() buttonSizeSmall = true;
|
||||||
constructor() {}
|
constructor() {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue