|
|
@ -36,9 +36,9 @@ |
|
|
|
<span class="title">{{sectionTitle}}</span> |
|
|
|
<form class="form row" *ngIf="activeEditor == 'works-modify' || activeEditor == 'works-delete'"> |
|
|
|
<div class="col-12"> |
|
|
|
<select class="input-select"> |
|
|
|
<select class="input-select" (change)="selectWork($event.target.value)"> |
|
|
|
<option value="">- Select work from list -</option> |
|
|
|
<option value="{{work.title}}" *ngFor="let work of works" (click)="selectWork(work.id)"> |
|
|
|
<option value="{{work.id}}" *ngFor="let work of works"> |
|
|
|
{{work.type}} | {{work.title}} |
|
|
|
</option> |
|
|
|
</select> |
|
|
@ -46,9 +46,9 @@ |
|
|
|
</form> |
|
|
|
<form class="form row" *ngIf="activeEditor == 'exhibitions-modify' || activeEditor == 'exhibitions-delete'"> |
|
|
|
<div class="col-12"> |
|
|
|
<select class="input-select"> |
|
|
|
<select class="input-select" (change)="selectExhibition($event.target.value)"> |
|
|
|
<option value="">- Select exhibition from list -</option> |
|
|
|
<option value="{{exhibition.title}}" *ngFor="let exhibition of exhibitions" (click)="selectExhibition(exhibition.id)"> |
|
|
|
<option value="{{exhibition.id}}" *ngFor="let exhibition of exhibitions"> |
|
|
|
{{exhibition.date_from | date}} | {{exhibition.title}} |
|
|
|
</option> |
|
|
|
</select> |
|
|
@ -58,7 +58,7 @@ |
|
|
|
*ngIf="activeEditor == 'works-add' || (activeEditor == 'works-modify' && activeModify) || |
|
|
|
activeEditor == 'exhibitions-add' || (activeEditor == 'exhibitions-modify' && activeModify)"> |
|
|
|
<div [ngClass]="{'col-8': activeEditor == 'works-add' || activeEditor == 'works-modify', |
|
|
|
'col-7': activeEditor == 'exhibitions-add' || activeEditor == 'exhibitions-modify'}"> |
|
|
|
'col-6': activeEditor == 'exhibitions-add' || activeEditor == 'exhibitions-modify'}"> |
|
|
|
<span class="label">Title</span> |
|
|
|
<input type="text" class="input-text" name="title" [(ngModel)]="title"> |
|
|
|
</div> |
|
|
@ -68,11 +68,11 @@ |
|
|
|
<option [value]="sec.section" *ngFor="let sec of workSections">{{sec.title}}</option> |
|
|
|
</select> |
|
|
|
</div> |
|
|
|
<div class="col" *ngIf="activeEditor == 'exhibitions-add' || activeEditor == 'exhibitions-modify'"> |
|
|
|
<div class="col-3" *ngIf="activeEditor == 'exhibitions-add' || activeEditor == 'exhibitions-modify'"> |
|
|
|
<span class="label">Date from</span> |
|
|
|
<input type="date" class="input-text w-100" name="dateFrom" [(ngModel)]="dateFrom"> |
|
|
|
</div> |
|
|
|
<div class="col" *ngIf="activeEditor == 'exhibitions-add' || activeEditor == 'exhibitions-modify'"> |
|
|
|
<div class="col-3" *ngIf="activeEditor == 'exhibitions-add' || activeEditor == 'exhibitions-modify'"> |
|
|
|
<span class="label">Date to</span> |
|
|
|
<input type="date" class="input-text w-100" name="dateTo" [(ngModel)]="dateTo"> |
|
|
|
</div> |
|
|
@ -102,9 +102,9 @@ |
|
|
|
|
|
|
|
<div class="col-6" *ngIf="activeEditor == 'works-add' || activeEditor == 'works-modify'"> |
|
|
|
<span class="label">Exhibitions</span> |
|
|
|
<select class="input-select" name="exhibitions"> |
|
|
|
<select class="input-select" name="exhibitions" (change)="exhibitionAdd($event.target.value)"> |
|
|
|
<option value=""></option> |
|
|
|
<option value="{{exhibition.title}}" *ngFor="let exhibition of exhibitions" (click)="exhibitionAdd(exhibition.id)"> |
|
|
|
<option value="{{exhibition.id}}" *ngFor="let exhibition of exhibitions"> |
|
|
|
{{exhibition.date_from | date}} | {{exhibition.title}} |
|
|
|
</option> |
|
|
|
</select> |
|
|
@ -117,9 +117,9 @@ |
|
|
|
|
|
|
|
<div class="col-6" *ngIf="activeEditor == 'exhibitions-add' || activeEditor == 'exhibitions-modify'"> |
|
|
|
<span class="label">Works</span> |
|
|
|
<select class="input-select" name="works"> |
|
|
|
<select class="input-select" name="works" (change)="workAdd($event.target.value)"> |
|
|
|
<option value=""></option> |
|
|
|
<option value="{{work.title}}" *ngFor="let work of works" (click)="workAdd(work.id)"> |
|
|
|
<option value="{{work.id}}" *ngFor="let work of works"> |
|
|
|
{{work.type}} | {{work.title}} |
|
|
|
</option> |
|
|
|
</select> |
|
|
|