diff --git a/src/app/features/administration/form/steps/step-three/step-three.component.html b/src/app/features/administration/form/steps/step-three/step-three.component.html index 2864e1b8..2490e3fe 100644 --- a/src/app/features/administration/form/steps/step-three/step-three.component.html +++ b/src/app/features/administration/form/steps/step-three/step-three.component.html @@ -30,7 +30,7 @@ diff --git a/src/app/features/administration/form/steps/step-three/step-three.component.ts b/src/app/features/administration/form/steps/step-three/step-three.component.ts index aa5c04e5..490263f4 100644 --- a/src/app/features/administration/form/steps/step-three/step-three.component.ts +++ b/src/app/features/administration/form/steps/step-three/step-three.component.ts @@ -22,12 +22,14 @@ export class StepThreeComponent implements OnInit { drop(event: CdkDragDrop) { // moveItemInArray(this.pollService.choices, event.previousIndex, event.currentIndex); } - - changeDateInputMode() { + convertDateInputs() { this.pollService.mode_calendar ? this.pollService.convertCalendarToText() : this.pollService.convertTextToCalendar(); + } + changeDateInputMode() { + this.convertDateInputs(); this.pollService.mode_calendar = !this.pollService.mode_calendar; } } diff --git a/src/app/features/administration/nav-steps/nav-steps.component.html b/src/app/features/administration/nav-steps/nav-steps.component.html index 083d8c79..9b7e93c2 100644 --- a/src/app/features/administration/nav-steps/nav-steps.component.html +++ b/src/app/features/administration/nav-steps/nav-steps.component.html @@ -5,7 +5,7 @@ class="button button-previous is-secondary pull-left" [routerLink]="['/administration/step/' + previous_step_number]" > - Précédent + {{ 'nav.previous' | translate }} - Enregistrer + {{ 'nav.save' | translate }} - Suivant + {{ 'nav.next' | translate }} diff --git a/src/app/features/administration/stepper/stepper.component.html b/src/app/features/administration/stepper/stepper.component.html index e42e12c6..e2620d58 100644 --- a/src/app/features/administration/stepper/stepper.component.html +++ b/src/app/features/administration/stepper/stepper.component.html @@ -79,9 +79,9 @@ Étape {{ step_current }} sur {{ step_max }} - + - Annuler + {{ 'nav.leave' | translate }} @@ -91,7 +91,7 @@ + {{ 'LANGUAGES.' + currentLang | translate }} - + + - {{ 'selector.lang' | translate }} {{ 'LANGUAGES.' + language | translate }} + + {{ 'selector.lang' | translate }} + + {{ 'LANGUAGES.' + language | translate }} + + + {{ 'LANGUAGES_SHORT.' + language | translate }} + + diff --git a/src/app/shared/components/selectors/language-selector/language-selector.component.scss b/src/app/shared/components/selectors/language-selector/language-selector.component.scss index 4a70366b..3113fa4c 100644 --- a/src/app/shared/components/selectors/language-selector/language-selector.component.scss +++ b/src/app/shared/components/selectors/language-selector/language-selector.component.scss @@ -1,5 +1,18 @@ +@import './../../../../../styles/variables'; + #lang_selector { background: white; max-width: 15em; width: 15em !important; } + +.language-selector-container { + cursor: pointer; + color: $primary-color; + &:hover { + color: $secondary_color; + } + i { + color: $primary-color; + } +} diff --git a/src/assets/i18n/EN.json b/src/assets/i18n/EN.json index 95c1adcd..092abebf 100644 --- a/src/assets/i18n/EN.json +++ b/src/assets/i18n/EN.json @@ -9,6 +9,12 @@ "create_button": "Create a new poll", "search_button": "Search" }, + "nav": { + "leave": "Leave", + "previous": "Previous", + "next": "Next", + "save": "Save" + }, "PAGE_NOT_FOUND": { "DEFAULT": "This page doesn’t exist.", "POLL": "This poll doesn’t exist." diff --git a/src/assets/i18n/FR.json b/src/assets/i18n/FR.json index 55d0c6ec..3dc851c3 100644 --- a/src/assets/i18n/FR.json +++ b/src/assets/i18n/FR.json @@ -11,6 +11,12 @@ "create_button": "Créer un nouveau sondage ", "search_button": "Rechercher" }, + "nav": { + "leave": "Quitter", + "previous": "Précédent", + "next": "Suivant", + "save": "Enregistrer" + }, "PAGE_NOT_FOUND": { "DEFAULT": "Cette page n’existe pas.", "POLL": "Ce sondage n’existe pas." @@ -600,12 +606,27 @@ "ES": "Espagnol", "EN": "English", "GL": "gl", - "HU": "hu", + "HU": "Hungarian", "IT": "Italien", "NL": "Néérlandais", "OC": "oc", "SV": "sv" }, + "LANGUAGES_SHORT": { + "DE": "De", + "FR": "Fr", + "BR": "Br", + "CA": "Ca", + "EL": "el", + "ES": "Es", + "EN": "En", + "GL": "gl", + "HU": "hu", + "IT": "It", + "NL": "Nl", + "OC": "oc", + "SV": "sv" + }, "calendar_widget": { "startsWith": "Commence par", "contains": "Contains", diff --git a/src/styles/partials/_datepicker.scss b/src/styles/partials/_datepicker.scss index 34c6c886..92f0686d 100644 --- a/src/styles/partials/_datepicker.scss +++ b/src/styles/partials/_datepicker.scss @@ -68,7 +68,7 @@ p-calendar, .p-datepicker-calendar { td { width: $cell-size; - padding: 0.15rem; + padding: 0.15rem 0.25rem; } td span, diff --git a/src/styles/partials/_responsive.scss b/src/styles/partials/_responsive.scss index 631dd73c..9dc2e8bf 100644 --- a/src/styles/partials/_responsive.scss +++ b/src/styles/partials/_responsive.scss @@ -1,8 +1,21 @@ // small screens -@media (min-width: 600px) { +@media (min-width: 380px) { .feedback-container { //position: fixed; } + + .p-datepicker { + .p-datepicker-calendar { + td { + width: $cell-size-desktop; + } + td span, + .p-ripple { + width: $cell-size-desktop; + height: $cell-size-desktop; + } + } + } } // wide screen like desktop @media (min-width: $widescreen) { diff --git a/src/styles/variables.scss b/src/styles/variables.scss index 819cdfa5..24f82478 100644 --- a/src/styles/variables.scss +++ b/src/styles/variables.scss @@ -76,7 +76,8 @@ $header-nav-inner-height: 4rem; $widescreen-width-main-column: 75rem; // datepicker -$cell-size: 40px; +$cell-size: 30px; +$cell-size-desktop: 40px; // css vars :root {