demarches-normaliennes/app/views/shared/dossiers/_autosave.html.haml

26 lines
1.3 KiB
Text
Raw Normal View History

.autosave.autosave-state-idle{ data: { controller: 'autosave-status' } }
%p.autosave-explanation.fr-text--sm
2019-11-19 17:55:30 +01:00
%span.autosave-explanation-text
- if dossier.brouillon?
= t('views.users.dossiers.autosave.draft_explanation')
- else
= t('views.users.dossiers.autosave.explanation')
= link_to t('views.users.dossiers.autosave.more_information'), FAQ_AUTOSAVE_URL, target: '_blank', rel: 'noopener', class: 'autosave-more-infos fr-link fr-link--sm'
2019-11-19 17:55:30 +01:00
%p.autosave-status.succeeded
%span.autosave-icon.icon.accept
%span.autosave-label
- if dossier.brouillon?
= t('views.users.dossiers.autosave.draft_confirmation')
- else
= t('views.users.dossiers.autosave.confirmation')
= link_to t('views.users.dossiers.autosave.more_information'), FAQ_AUTOSAVE_URL, target: '_blank', rel: 'noopener', class: 'autosave-more-infos fr-link fr-link--sm'
2019-11-19 17:55:30 +01:00
%p.autosave-status.failed
%span.autosave-icon ⚠️
%span.autosave-label Impossible denregistrer le brouillon
%button.button.small.autosave-retry{ type: :button, data: { action: 'autosave-status#onClickRetryButton', autosave_status_target: 'retryButton' } }
2019-11-19 17:55:30 +01:00
%span.autosave-retry-label réessayer
%span.autosave-retrying-label enregistrement en cours…