funky-framadate-front/src/app/features/administration/form/base-config/base-config.component.html

96 lines
2.0 KiB
HTML
Raw Normal View History

2021-02-04 16:14:07 +01:00
<form [formGroup]="form">
<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 />
<input
2021-05-03 14:54:32 +02:00
class="input"
2021-05-20 14:11:30 +02:00
matInput
[placeholder]="'creation.choose_title_placeholder' | translate"
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
/>
<button
mat-button
2021-05-20 14:11:30 +02:00
*ngIf="form.value.title"
matSuffix
2021-05-20 14:11:30 +02:00
mat-icon-button
aria-label="Clear"
(click)="form.patchValue({ title: '' })"
>
<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 />
<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-05-03 15:10:29 +02:00
<input
#creatorEmail
matInput
type="email"
2021-05-03 15:10:29 +02:00
placeholder="{{ 'creation.email_placeholder' | translate }}"
formControlName="creatorEmail"
id="creatorEmail"
required
/>
<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>
<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 />
<p>
<label class="" for="creatorPseudo">
<span>
{{ 'creation.name' | translate }}
</span>
</label>
<br />
<input
#creatorPseudo
matInput
placeholder="pseudo"
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>
</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>