Wording : Démarche en brouillon => Démarche en test
This commit is contained in:
parent
2ce6d01aec
commit
a4ddec6dff
6 changed files with 12 additions and 6 deletions
|
@ -10,7 +10,7 @@ module ProcedureHelper
|
|||
end
|
||||
|
||||
def procedure_libelle(procedure)
|
||||
parts = procedure.brouillon? ? [content_tag(:span, 'démarche non publiée', class: 'badge')] : []
|
||||
parts = procedure.brouillon? ? [content_tag(:span, 'démarche en test', class: 'badge')] : []
|
||||
parts << procedure.libelle
|
||||
safe_join(parts, ' ')
|
||||
end
|
||||
|
|
|
@ -3,7 +3,10 @@
|
|||
%li{ class: @draft_class }
|
||||
%a{ :href => "#{url_for :admin_procedures_draft}" }
|
||||
%h5.text-primary
|
||||
Brouillons
|
||||
- if Flipflop.publish_draft?
|
||||
En test
|
||||
- else
|
||||
Brouillons
|
||||
|
||||
%li{ class: @active_class }
|
||||
%a{ :href => "#{url_for :admin_procedures}" }
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
%br
|
||||
Si vous voulez l’utiliser, l’ancienne démarche sera archivée lors de la publication de la démarche (plus accessible du public).
|
||||
- when Procedure::PATH_NOT_AVAILABLE_BROUILLON
|
||||
Un brouillon de démarche existe déjà avec ce lien.
|
||||
Une démarche en test existe déjà avec ce lien.
|
||||
- when Procedure::PATH_NOT_AVAILABLE
|
||||
Ce lien est déjà utilisé par une démarche.
|
||||
%br
|
||||
|
|
|
@ -62,7 +62,7 @@
|
|||
- if @procedure.gestionnaires.present? && @procedure.service.present?
|
||||
%p
|
||||
Cette démarche est actuellement
|
||||
%strong en brouillon.
|
||||
%strong en test.
|
||||
%p
|
||||
Vous pouvez tester cette démarche avec ce lien temporaire :
|
||||
= link_to procedure_lien(@procedure), sanitize_url(procedure_lien(@procedure)), target: :blank
|
||||
|
|
|
@ -11,7 +11,10 @@
|
|||
#procedure-list
|
||||
%a#draft-procedures{ :href => "#{url_for :admin_procedures_draft}" }
|
||||
.procedure-list-element{ class: @draft_class }
|
||||
Brouillons
|
||||
- if Flipflop.publish_draft?
|
||||
En test
|
||||
- else
|
||||
Brouillons
|
||||
.badge.progress-bar-default
|
||||
= current_administrateur.procedures.brouillons.count
|
||||
|
||||
|
|
|
@ -38,7 +38,7 @@ as well as a link to its edit page.
|
|||
<% end %>
|
||||
|
||||
<% if procedure.publiee? && procedure.dossiers.empty? %>
|
||||
<%= link_to 'passer en brouillon', draft_manager_procedure_path(procedure), method: :post, class: 'button' %>
|
||||
<%= link_to 'repasser en test', draft_manager_procedure_path(procedure), method: :post, class: 'button' %>
|
||||
<% end %>
|
||||
|
||||
<%= link_to 'supprimer la démarche', hide_manager_procedure_path(procedure), method: :post, class: 'button', data: { confirm: "Confirmez-vous la suppression de la démarche ?" } %>
|
||||
|
|
Loading…
Add table
Reference in a new issue