2018-05-11 18:22:59 +02:00
|
|
|
<form class="awardee-form" (ngSubmit)="saveAwardee()">
|
2018-05-10 16:39:05 +02:00
|
|
|
<mat-form-field class="full-width">
|
2018-05-11 18:22:59 +02:00
|
|
|
<input name="name" type="text" matInput placeholder="Display name" [(ngModel)]="awardee.name">
|
2018-05-10 16:39:05 +02:00
|
|
|
</mat-form-field>
|
|
|
|
|
<button type="button" mat-raised-button>
|
|
|
|
|
<i class="far fa-image"></i>
|
|
|
|
|
Upload profile image
|
|
|
|
|
</button>
|
|
|
|
|
<mat-divider></mat-divider>
|
|
|
|
|
<mat-form-field class="full-width">
|
2018-05-11 18:22:59 +02:00
|
|
|
<mat-select name="year" placeholder="Year" [(ngModel)]="awardee.year">
|
2018-05-11 10:46:27 +02:00
|
|
|
<mat-option *ngFor="let year of years" [value]="year">{{ year }}</mat-option>
|
2018-05-10 16:39:05 +02:00
|
|
|
</mat-select>
|
|
|
|
|
</mat-form-field>
|
|
|
|
|
|
|
|
|
|
<mat-form-field class="full-width">
|
2018-05-11 18:22:59 +02:00
|
|
|
<textarea name="text" matInput placeholder="Article text" rows="10" [(ngModel)]="awardee.text"></textarea>
|
2018-05-10 16:39:05 +02:00
|
|
|
</mat-form-field>
|
|
|
|
|
<button type="button" mat-raised-button>
|
|
|
|
|
<i class="far fa-image"></i> Upload article image
|
|
|
|
|
</button>
|
|
|
|
|
<mat-divider></mat-divider>
|
|
|
|
|
|
|
|
|
|
<mat-form-field class="full-width">
|
2018-05-11 18:22:59 +02:00
|
|
|
<input name="imageLabel" type="text" matInput placeholder="Image label" [(ngModel)]="awardee.imageLabel">
|
2018-05-10 16:39:05 +02:00
|
|
|
</mat-form-field>
|
|
|
|
|
|
2018-05-11 18:22:59 +02:00
|
|
|
<button type="submit" mat-raised-button color="accent" [disabled]="!canSave">
|
2018-05-10 16:39:05 +02:00
|
|
|
<i class="fas fa-save"></i> Save
|
|
|
|
|
</button>
|
|
|
|
|
</form>
|