2021-02-04 16:14:07 +01:00
|
|
|
<form [formGroup]="form">
|
2021-02-04 19:04:20 +01:00
|
|
|
<div class="columns">
|
|
|
|
<div class="column">
|
2021-05-03 15:10:29 +02:00
|
|
|
<label for="title">
|
2021-05-20 14:11:30 +02:00
|
|
|
<span>
|
|
|
|
{{ 'creation.choose_title' | translate }}
|
|
|
|
</span>
|
2021-05-03 15:10:29 +02:00
|
|
|
</label>
|
2021-05-20 14:11:30 +02:00
|
|
|
<br />
|
2021-02-04 19:04:20 +01:00
|
|
|
<input
|
2021-05-03 14:54:32 +02:00
|
|
|
class="input"
|
2021-05-20 14:11:30 +02:00
|
|
|
matInput
|
2021-02-04 19:04:20 +01:00
|
|
|
formControlName="title"
|
|
|
|
id="title"
|
2021-05-03 14:54:32 +02:00
|
|
|
(keyup)="updateSlug()"
|
2021-05-01 23:10:00 +02:00
|
|
|
required="required"
|
|
|
|
#title
|
2021-02-04 19:04:20 +01:00
|
|
|
/>
|
|
|
|
<button
|
2021-05-18 10:00:37 +02:00
|
|
|
mat-button
|
2021-05-20 14:11:30 +02:00
|
|
|
*ngIf="form.value.title"
|
2021-05-18 10:00:37 +02:00
|
|
|
matSuffix
|
2021-05-20 14:11:30 +02:00
|
|
|
mat-icon-button
|
|
|
|
aria-label="Clear"
|
|
|
|
(click)="form.patchValue({ title: '' })"
|
2021-02-04 19:04:20 +01:00
|
|
|
>
|
|
|
|
<i class="fa fa-close"></i>
|
|
|
|
</button>
|
2021-05-18 10:47:16 +02:00
|
|
|
<mat-error class="hint deletable-field-hint" *ngIf="form.controls.title.invalid">
|
|
|
|
{{ getErrorMessage(form.controls.title) }}</mat-error
|
|
|
|
>
|
2021-04-30 16:12:02 +02:00
|
|
|
|
2021-05-03 16:10:13 +02:00
|
|
|
<br />
|
2021-05-18 10:00:37 +02:00
|
|
|
<label for="creatorEmail">
|
2021-05-03 15:10:29 +02:00
|
|
|
<span>
|
|
|
|
{{ 'creation.email' | translate }}
|
|
|
|
</span>
|
|
|
|
</label>
|
2021-05-03 16:10:13 +02:00
|
|
|
<br />
|
2021-12-20 16:45:00 +01:00
|
|
|
<input #creatorEmail matInput type="email" formControlName="creatorEmail" id="creatorEmail" required />
|
2021-05-03 15:10:29 +02:00
|
|
|
<button
|
|
|
|
mat-button
|
|
|
|
*ngIf="form.value.creatorEmail"
|
|
|
|
matSuffix
|
|
|
|
mat-icon-button
|
|
|
|
aria-label="Clear"
|
|
|
|
(click)="form.patchValue({ creatorEmail: '' })"
|
|
|
|
>
|
|
|
|
<i class="fa fa-close"></i>
|
|
|
|
</button>
|
2021-05-18 10:00:37 +02:00
|
|
|
<mat-error class="hint deletable-field-hint" *ngIf="form.controls.creatorEmail.invalid">{{
|
2021-05-04 09:33:28 +02:00
|
|
|
getErrorMessage(form.controls.creatorEmail)
|
|
|
|
}}</mat-error>
|
2021-02-04 19:13:57 +01:00
|
|
|
<br />
|
|
|
|
|
2021-04-30 10:59:46 +02:00
|
|
|
<p>
|
|
|
|
<label class="" for="creatorPseudo">
|
|
|
|
<span>
|
|
|
|
{{ 'creation.name' | translate }}
|
|
|
|
</span>
|
|
|
|
</label>
|
2021-05-20 09:43:15 +02:00
|
|
|
<br />
|
2021-12-20 16:45:00 +01:00
|
|
|
<input #creatorPseudo matInput formControlName="creatorPseudo" id="creatorPseudo" required />
|
2021-05-03 15:10:29 +02:00
|
|
|
<button
|
|
|
|
mat-button
|
|
|
|
*ngIf="form.value.creatorPseudo"
|
|
|
|
matSuffix
|
|
|
|
mat-icon-button
|
|
|
|
aria-label="Clear"
|
|
|
|
(click)="form.patchValue({ creatorPseudo: '' })"
|
|
|
|
>
|
|
|
|
<i class="fa fa-close"></i>
|
|
|
|
</button>
|
2021-04-30 10:59:46 +02:00
|
|
|
</p>
|
2021-02-04 16:14:07 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<hr />
|
2021-02-04 19:13:57 +01:00
|
|
|
</div>
|
2021-02-04 16:14:07 +01:00
|
|
|
</form>
|