This repository has been archived on 2026-05-07. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Codiki/frontend/src/app/pages/publication-edition/publication-edition.component.html
T

63 lines
2.2 KiB
HTML

@if ((isLoading$ | async) == true) {
<mat-spinner></mat-spinner>
}
@else {
<!-- <ng-template #afterLoadingPart> -->
@if (publication) {
<form [formGroup]="publicationEditionForm" (submit)="save()" ngNativeValidate>
<header>
<h1>Modification de l'article {{ publication.title }}</h1>
</header>
<mat-tab-group dynamicHeight>
<mat-tab label="Edition">
<div class="form-content">
<mat-form-field class="example-form-field">
<mat-label>Title</mat-label>
<input matInput type="text" formControlName="title" />
</mat-form-field>
<mat-form-field class="example-form-field">
<mat-label>Picture</mat-label>
<input matInput type="text" formControlName="illustrationId" />
</mat-form-field>
<mat-form-field class="example-form-field">
<mat-label>Description</mat-label>
<input matInput type="text" formControlName="description" />
</mat-form-field>
<mat-form-field class="example-form-field">
<mat-label>Content</mat-label>
<textarea matInput formControlName="text"></textarea>
</mat-form-field>
</div>
</mat-tab>
<mat-tab label="Previewing">
</mat-tab>
</mat-tab-group>
<footer>
<button type="submit">
Save
</button>
<button type="button" class="secondary" (click)="goPreviousLocation()">
Cancel
</button>
</footer>
</form>
}
@else {
<div class="loading-failed">
<h1>Publication failed to load...</h1>
</div>
}
<!-- <ng-template #loadingFailedMessage>
</ng-template> -->
<!-- </ng-template> -->
}