funky-framadate-front/src/app/features/old-stuff/pages/home/home.component.html

93 lines
2.4 KiB
HTML
Raw Normal View History

<div class="description">
2020-04-21 10:50:26 +02:00
<router-outlet></router-outlet>
2020-04-21 10:50:26 +02:00
<h1 i18n>
{{ 'creation.title' | translate }}
</h1>
<span class="pre-selector" i18n>
{{ 'creation.want' | translate }}
</span>
<button (click)="config.resetConfig()" class="btn btn--warning">
Reset all
</button>
<select [(ngModel)]="config.pollType" autofocus="autofocus" id="selector" name="polltype">
<option value="dates" name="polltype_date">
{{ 'creation.kind.date' | translate }}
</option>
<option value="classic" name="polltype_classic">
{{ 'creation.kind.classic' | translate }}
</option>
</select>
2019-08-10 11:06:13 +02:00
2020-04-21 10:50:26 +02:00
<span class="post-selector"> </span>
2020-04-21 10:50:26 +02:00
<div>
<label class="title-label" for="poll_title" i18n>
{{ 'creation.choose_title' | translate }}
</label>
<input
[(ngModel)]="config.title"
id="poll_title"
name="poll_title"
placeholder="{{ 'creation.choose_title_placeholder' | translate }}"
type="name"
/>
2020-04-22 12:56:18 +02:00
<app-erasable-input [(inputModel)]="config.title"></app-erasable-input>
2020-04-21 10:50:26 +02:00
</div>
2020-04-21 10:50:26 +02:00
<div>
2020-11-03 15:44:08 +01:00
<label for="my_name"> {{ 'creation.choice_label' | translate }} : </label>
2020-04-21 10:50:26 +02:00
<input
[(ngModel)]="config.myName"
id="my_name"
name="my_name"
placeholder="{{ 'creation.name_placeholder' | translate }}"
type="name"
/>
2020-04-22 12:56:18 +02:00
<app-erasable-input [(inputModel)]="config.myName"></app-erasable-input>
2020-04-21 10:50:26 +02:00
</div>
2020-04-21 10:50:26 +02:00
<div>
<label class="title-label" for="poll_description" i18n>
{{ 'creation.description' | translate }}:
2020-04-22 12:56:18 +02:00
<app-erasable-input [(inputModel)]="config.description"></app-erasable-input>
2020-04-21 10:50:26 +02:00
</label>
<br />
<textarea
[(ngModel)]="config.description"
cols="50"
id="poll_description"
lines="5"
name="poll_description"
placeholder="description"
></textarea>
</div>
<div>
<label for="email">
Mon email pour administrer le sondage est
</label>
<input
[(ngModel)]="config.myEmail"
autofocus="autofocus"
id="email"
name="mail"
required="required"
type="email"
/>
2020-04-22 12:56:18 +02:00
<app-erasable-input [(inputModel)]="config.myEmail"></app-erasable-input>
2020-04-21 10:50:26 +02:00
</div>
2019-08-10 16:20:59 +02:00
2020-05-01 19:10:17 +02:00
<button routerLink="../answers" class="btn btn--primary btn--full" *ngIf="config.pollType == 'classic'" i18n>
2020-04-21 10:50:26 +02:00
Continuer
2020-05-12 19:16:23 +02:00
<i class="fa fa-file-text" aria-hidden="true"></i>
2020-04-21 10:50:26 +02:00
</button>
2020-05-01 19:10:17 +02:00
<button routerLink="../date" class="btn btn--primary btn--full" *ngIf="config.pollType == 'dates'" i18n>
2020-04-21 10:50:26 +02:00
Continuer
2020-05-12 19:16:23 +02:00
<i class="fa fa-calendar-check-o" aria-hidden="true"></i>
2020-04-21 10:50:26 +02:00
</button>
2020-05-01 19:10:17 +02:00
<a routerLink="../creation" class="prev" i18n>
2020-04-21 10:50:26 +02:00
Retour
</a>
<hr />
</div>