labels for step one

This commit is contained in:
Tykayn 2021-11-16 11:03:20 +01:00 committed by tykayn
parent 2f26e27e31
commit 8f6fe6044a
3 changed files with 15 additions and 9 deletions

View File

@ -8,7 +8,7 @@
<div class="columns"> <div class="columns">
<div class="column"> <div class="column">
<div> <div>
<label for="title">Titre</label> <label for="title">{{ 'creation.choose_title_label' | translate }}</label>
</div> </div>
<input <input
class="input is-fullwidth" class="input is-fullwidth"
@ -18,6 +18,7 @@
(keyup)="pollService.updateSlug()" (keyup)="pollService.updateSlug()"
(blur)="pollService.updateSlug()" (blur)="pollService.updateSlug()"
id="title" id="title"
maxlength="140"
autofocus="autofocus" autofocus="autofocus"
required required
/> />
@ -41,7 +42,7 @@
#description #description
matInput matInput
id="descr" id="descr"
class="is-large is-full" class="is-large is-full input"
placeholder="Description" placeholder="Description"
formControlName="description" formControlName="description"
required required
@ -58,11 +59,15 @@
</div> </div>
</form> </form>
<div class="columns"> <div class="columns">
<div class="column"></div> <div class="column">
<button class="button is-warning is-fullwidth" [routerLink]="['/']">
Annuler
</button>
</div>
<div class="column"> <div class="column">
<!-- [disabled]="form.invalid"--> <!-- [disabled]="form.invalid"-->
<button class="button is-primary is-fullwidth" [routerLink]="['/administration/step/2']"> <button class="button is-primary is-fullwidth" [routerLink]="['/administration/step/2']">
suivant Suivant
</button> </button>
</div> </div>
</div> </div>

View File

@ -34,7 +34,8 @@
"classic": "classique", "classic": "classique",
"date": "spécial dates" "date": "spécial dates"
}, },
"choose_title": "Dont le titre sera", "choose_title": "Renseignez un nom pour votre sondage",
"choose_title_label": "Nom de votre sondage (obligatoire)",
"choose_title_placeholder": "titre", "choose_title_placeholder": "titre",
"choices_hint": "Utilisez les flèches haut ⬆️ et bas ⬇️ pour passer d'un choix à un autre", "choices_hint": "Utilisez les flèches haut ⬆️ et bas ⬇️ pour passer d'un choix à un autre",
"name": "Je peux aussi préciser mon nom si je le souhaite", "name": "Je peux aussi préciser mon nom si je le souhaite",

View File

@ -1,10 +1,10 @@
export const backendApiUrlsInDev = { export const backendApiUrlsInDev = {
// local: 'http://tktest.lan/api/v1', // local: 'http://tktest.lan/api/v1',
// remote: 'http://tktest.lan/api/v1', // remote: 'http://tktest.lan/api/v1',
// local: 'https://localhost:8000/api/v1', local: 'https://localhost:8000/api/v1',
local: 'https://framadate-api.cipherbliss.com/api/v1', // local: 'https://framadate-api.cipherbliss.com/api/v1',
// remote: 'https://localhost:8000/api/v1', remote: 'https://localhost:8000/api/v1',
remote: 'https://framadate-api.cipherbliss.com/api/v1', // remote: 'https://framadate-api.cipherbliss.com/api/v1',
}; };
export const apiV1 = { export const apiV1 = {
// baseHref: 'https://localhost:8000/api/v1', // baseHref: 'https://localhost:8000/api/v1',