* most non-image based admin stuff is working now

* lacks authentication tho
This commit is contained in:
Dávid Danyi
2018-05-11 18:22:59 +02:00
parent b3d87e3f9a
commit 7a44ba70d4
34 changed files with 625 additions and 204 deletions

View File

@@ -1,6 +1,6 @@
<form class="awardee-form">
<form class="awardee-form" (ngSubmit)="saveAwardee()">
<mat-form-field class="full-width">
<input type="text" matInput placeholder="Display name">
<input name="name" type="text" matInput placeholder="Display name" [(ngModel)]="awardee.name">
</mat-form-field>
<button type="button" mat-raised-button>
<i class="far fa-image"></i>
@@ -8,13 +8,13 @@
</button>
<mat-divider></mat-divider>
<mat-form-field class="full-width">
<mat-select placeholder="Year">
<mat-select name="year" placeholder="Year" [(ngModel)]="awardee.year">
<mat-option *ngFor="let year of years" [value]="year">{{ year }}</mat-option>
</mat-select>
</mat-form-field>
<mat-form-field class="full-width">
<textarea matInput placeholder="Article text" rows="10"></textarea>
<textarea name="text" matInput placeholder="Article text" rows="10" [(ngModel)]="awardee.text"></textarea>
</mat-form-field>
<button type="button" mat-raised-button>
<i class="far fa-image"></i> Upload article image
@@ -22,10 +22,10 @@
<mat-divider></mat-divider>
<mat-form-field class="full-width">
<input type="text" matInput placeholder="Image label">
<input name="imageLabel" type="text" matInput placeholder="Image label" [(ngModel)]="awardee.imageLabel">
</mat-form-field>
<button type="submit" mat-raised-button color="accent">
<button type="submit" mat-raised-button color="accent" [disabled]="!canSave">
<i class="fas fa-save"></i> Save
</button>
</form>