demarches-normaliennes/app/views/administrateurs/procedures/new_from_existing.html.haml
2021-11-30 08:49:38 +01:00

59 lines
2.1 KiB
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

.container
- if current_administrateur.procedures.brouillons.count == 0
.card.feedback
.card-title
Bienvenue,
%br
vous allez pouvoir créer une première démarche de test.
Celle-ci sera visible uniquement par vous et ne sera publiée nulle part, alors pas de crainte à avoir.
%br
%br
Besoin daide ?
%br
> Vous pouvez
= link_to "visionner cette vidéo",
"https://vimeo.com/261478872",
target: "_blank"
%br
> Vous pouvez lire notre
= link_to "documentation en ligne",
ADMINISTRATEUR_TUTORIAL_URL,
target: "_blank"
%br
> Vous pouvez enfin
= link_to "prendre un rendez-vous téléphonique avec nous",
CALENDLY_URL,
target: "_blank"
:javascript
document.addEventListener("DOMContentLoaded", function() {
$crisp.push(["do", "trigger:run", ["admin-signup"]]);
});
.form
.send-wrapper
%a#from-scratch.button.primary{ href: new_admin_procedure_path }
Créer une nouvelle démarche de zéro
.card
%h2.header-section
Créer une nouvelle démarche à partir dune démarche existante
%p.notice
Pour rechercher dans cette liste, utilisez la fonction "Recherche" de votre navigateur (CTRL+F ou command+F)
%table.table.vertical.procedure-library-list
- @grouped_procedures.each do |_, procedures|
%tr
%th
= procedures.first.organisation_name
- procedures.sort_by(&:id).each do |procedure|
%tr
%td
= procedure.libelle
%td.flex
= link_to('Consulter', apercu_admin_procedure_path(id: procedure.id), target: "_blank", rel: "noopener", class: 'button small')
= link_to('Cloner', admin_procedure_clone_path(procedure.id, from_new_from_existing: true), 'data-method' => :put, class: 'button small primary')
= link_to('Contacter', "mailto:#{procedure.administrateurs.map(&:email) * ","}", class: 'button small')