This commit is contained in:
Tykayn 2022-02-11 13:48:42 +01:00 committed by tykayn
parent 6c5418c484
commit dd31f5695b
2 changed files with 120 additions and 75 deletions

View File

@ -1,87 +1,77 @@
<app-header></app-header>
<header></header>
<main>
<div class="container">
<section>
<div class="">
<div class="contained-in-large-column">
<div class="main-block" *ngIf="pollService.admin_key">
<div class="columns">
<div class="column is-narrow">
<img
class="icon is-big icon-success"
src="assets/icons/check-circle.svg"
alt="icone ok"
/>
</div>
<div class="column">
<h1 class="title is-2 poll-title success-creation-title is-success">
{{ 'success.title' | translate }}
</h1>
<span class="description">
{{
'success.description' | translate: { eventTitle: pollService.form.value.title }
}}
</span>
<span class="share">
{{ 'success.share' | translate }}
</span>
<div class="copy">
<label for="public_share_link">
{{ 'success.link' | translate }}
</label>
<div class="columns">
<div class="column">
<input
type="text"
[value]="pollService.getParticipationUrl()"
id="public_share_link"
/>
</div>
<div class="column is-narrow">
<app-copy-text
[textToCopy]="pollService.getParticipationUrl()"
></app-copy-text>
</div>
<section>
<div class="">
<div class="step">
<div class="main-block" *ngIf="pollService.admin_key">
<div class="columns">
<div class="column is-narrow">
<img class="icon is-big icon-success" src="assets/icons/check-circle.svg" alt="icone ok" />
</div>
<div class="column">
<h1 class="title is-2 poll-title success-creation-title is-success">
{{ 'success.title' | translate }}
</h1>
<span class="description">
{{ 'success.description' | translate: { eventTitle: pollService.form.value.title } }}
</span>
<span class="share">
{{ 'success.share' | translate }}
</span>
<div class="copy">
<label for="public_share_link">
{{ 'success.link' | translate }}
</label>
<div class="columns">
<div class="column">
<input
type="text"
[value]="pollService.getParticipationUrl()"
id="public_share_link"
/>
</div>
<div class="column is-narrow">
<app-copy-text [textToCopy]="pollService.getParticipationUrl()"></app-copy-text>
</div>
</div>
</div>
</div>
</div>
<div class="rounded-block">
<h2 class="title is-2 has-text-primary go-see-title">
{{ 'success.label' | translate }}
</h2>
<button
class="button is-primary is-fullwidth"
routerLink="{{ pollService.getAdministrationUrlFromForm() }}"
>
{{ 'success.action' | translate }}
</button>
</div>
<hr />
<!-- <div class="debug">-->
<!-- pollService.form.value.title: {{pollService.form.value.title}} <br>-->
<!-- getParticipationUrl: {{pollService.getParticipationUrl()}}-->
<!-- getAdministrationUrlFromForm: {{ pollService.getAdministrationUrlFromForm() }}-->
<!-- </div>-->
<div class="rounded-block">
<h2 class="title is-2 has-text-primary go-see-title">
{{ 'success.label' | translate }}
</h2>
<button
class="button is-primary is-fullwidth"
routerLink="{{ pollService.getAdministrationUrlFromForm() }}"
>
{{ 'success.action' | translate }}
</button>
</div>
</div>
<!-- cas d'échec de création du sondage-->
<div class="contained-in-large-column" *ngIf="!pollService.admin_key">
<div class="no-admin-key padded has-background-danger">
{{ 'success.network_error' | translate }}
</div>
<h1 class="title is-1">
{{ 'success.not_created' | translate }}
</h1>
<button class="button is-primary" [routerLink]="['/administration/step/7']">
{{ 'success.go_back' | translate }}
</button>
<hr />
<!-- <div class="debug">-->
<!-- pollService.form.value.title: {{pollService.form.value.title}} <br>-->
<!-- getParticipationUrl: {{pollService.getParticipationUrl()}}-->
<!-- getAdministrationUrlFromForm: {{ pollService.getAdministrationUrlFromForm() }}-->
<!-- </div>-->
</div>
</div>
</section>
</div>
<!-- cas d'échec de création du sondage-->
<div class="step" *ngIf="!pollService.admin_key">
<div class="no-admin-key padded has-background-danger">
{{ 'success.network_error' | translate }}
</div>
<h1 class="title is-1">
{{ 'success.not_created' | translate }}
</h1>
<button class="button is-primary" [routerLink]="['/administration/step/7']">
{{ 'success.go_back' | translate }}
</button>
</div>
</div>
</section>
</main>
<footer>
<app-footer></app-footer>

View File

@ -1,10 +1,36 @@
{
"Language": "言語",
"home": {
"title": "ようこそ",
"subtitle": "まとめて整理するために単に相談してください.",
"search_title": "すでに調査を作成していて、それにアクセスしたいですか?",
"search_subtitle": "メールアドレスを入力すると、アンケートへのリンクが送信されます。 ",
"search_label": "メールアドレス",
"create_button": "新しい投票を作成する",
"search_button": "調査する"
},
"config": {
"title": "投票を作成する ",
"landing_title": "イベントを企画したり、親戚の意見を簡単に、自由に集めたりできます。",
"landing_subtitle": "{{AppTitle}} のおかげで、登録なしで簡単に、スケジュールを立て、整理し、迅速に意思決定を行うことができます。",
"letsgo": "新しい投票を作成する",
"discover": "既存の投票を探す",
"description": "友達や家族との約束をスケジュールしたり、テキスト、写真、リンクを使ってプールを作成したり…実際の調査!",
"find_my_polls": "私の世論調査",
"find_helper": "メールにリンクされた投票を探しています",
"find_button": "私の投票を探す"
},
"nav": {
"menu": "メニュー",
"leave": "去る",
"previous": "前",
"next": "次へ",
"save": "救う"
"step": "ステップ",
"on": "の",
"no_title": "(無題)",
"next": "続く",
"save": "記録"
},
"creation": {
"init": "新",
"title": "そもそも",
@ -53,8 +79,37 @@
"missing": "1日以上入力する"
}
},
"hours": {
"title": "時間を選択してください",
"element": "スケジュール",
"apply_same": "すべての日付に同じ時刻を適用する",
"add": "スケジュールの追加",
"empty": "タイムスロットなし」",
"reinit": "リセット",
"modal": {
"title": "すべての日付に適用する時間を選択してください",
"validate": "適用"
}
},
"LANGUAGES": {
"FR": "フレンチ",
"JA" : "日本語"
},
"calendar_widget": {
"dayNames": [],
"monthNames": [
"1月",
"2月",
"行進",
"4月」",
"5月",
"六月",
"7月」",
"8月」",
"9月」",
"10月",
"11月」",
"12月"
]
}
}