-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
59 additions
and
46 deletions.
There are no files selected for viewing
82 changes: 42 additions & 40 deletions
82
ui/src/app/metadata/configuration/component/metadata-configuration.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,46 @@ | ||
<div *ngIf="configuration"> | ||
<section *ngFor="let section of configuration.sections; let i = index;" class="mb-4"> | ||
<div class="config-group"> | ||
<div class="numbered-header d-flex justify-content-start bg-light align-items-center"> | ||
<h2 class="title h4 m-0 flex-grow-1"> | ||
<span *ngIf="numbered" | ||
class="d-inline-block px-2 py-1 mb-0 h4 number border border-secondary bg-white rounded-lg"> | ||
<span *ngIf="i + 1 < 10">0</span>{{ i + 1 }} | ||
</span> | ||
<span class="text ml-2">{{ section.label | translate }}</span> | ||
</h2> | ||
<div class="actions px-2" | ||
*ngIf="editable && configuration.dates.length === 1"> | ||
<button class="btn btn-link edit-link change-view" (click)="edit(section.id)"> | ||
<i class="fa fa-edit"></i> | ||
<span translate="action.edit">Edit</span> | ||
</button> | ||
</div> | ||
</div> | ||
<div class="p-2"> | ||
<ng-container *ngIf="section && section.properties && section.properties.length"> | ||
<div class="d-flex border-bottom border-light border-2 py-2"> | ||
<strong [ngStyle]="{'width': width}" translate="label.option">Option</strong> | ||
<strong *ngFor="let date of configuration.dates" [ngStyle]="{'width': width}"> | ||
<translate-i18n key="label.value" *ngIf="configuration.dates.length <= 1">Value</translate-i18n> | ||
<span *ngIf="configuration.dates.length > 1">{{ date | date:DATE_FORMAT }}</span> | ||
</strong> | ||
</div> | ||
<object-property | ||
class="d-block" | ||
[property]="section" | ||
[columns]="configuration.dates.length" | ||
(preview)="onPreview($event)"> | ||
</object-property> | ||
</ng-container> | ||
<ng-container *ngIf="!section || !section.properties || !section.properties.length"> | ||
<div class="alert"> | ||
No Changes | ||
<div *ngIf="configuration" class="config-section-list"> | ||
<ng-container *ngFor="let section of configuration.sections; let i = index;"> | ||
<section class="mb-4 config-section-list-item" *ngIf="section && section.properties && section.properties.length"> | ||
<div class="config-group"> | ||
<div class="numbered-header d-flex justify-content-start bg-light align-items-center"> | ||
<h2 class="title h4 m-0 flex-grow-1"> | ||
<span *ngIf="numbered" | ||
class="d-inline-block px-2 py-1 mb-0 h4 number border border-secondary bg-white rounded-lg"> | ||
<span *ngIf="i + 1 < 10">0</span>{{ i + 1 }} | ||
</span> | ||
<span class="text ml-2">{{ section.label | translate }}</span> | ||
</h2> | ||
<div class="actions px-2" | ||
*ngIf="editable && configuration.dates.length === 1"> | ||
<button class="btn btn-link edit-link change-view" (click)="edit(section.id)"> | ||
<i class="fa fa-edit"></i> | ||
<span translate="action.edit">Edit</span> | ||
</button> | ||
</div> | ||
</ng-container> | ||
</div> | ||
<div class="p-2"> | ||
<ng-container *ngIf="section && section.properties && section.properties.length"> | ||
<div class="d-flex border-bottom border-light border-2 py-2"> | ||
<strong [ngStyle]="{'width': width}" translate="label.option">Option</strong> | ||
<strong *ngFor="let date of configuration.dates" [ngStyle]="{'width': width}"> | ||
<translate-i18n key="label.value" *ngIf="configuration.dates.length <= 1">Value</translate-i18n> | ||
<span *ngIf="configuration.dates.length > 1">{{ date | date:DATE_FORMAT }}</span> | ||
</strong> | ||
</div> | ||
<object-property | ||
class="d-block" | ||
[property]="section" | ||
[columns]="configuration.dates.length" | ||
(preview)="onPreview($event)"> | ||
</object-property> | ||
</ng-container> | ||
</div> | ||
</div> | ||
</section> | ||
</ng-container> | ||
<ng-container *ngIf="zero"> | ||
<div class="alert alert-info" role="alert"> | ||
No changes | ||
</div> | ||
</section> | ||
</ng-container> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters