demarches-normaliennes/app/views/instructeurs/avis/sign_up.html.haml
Pierre de La Morinerie d78d206544 instructeurs: fix expert creation not to use Instructeur.email
It kind of worked until now, because the email field is disabled, and
thus never accessed.

But better make it clean, by accessing an object (User) where the email
field actually exists.
2019-11-04 10:44:24 +01:00

16 lines
676 B
Text
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

.two-columns.avis-sign-up
.columns-container
.column.left
%p.description= @dossier.procedure.libelle
%p.dossier Dossier nº #{@dossier.id}
.column
= form_for(User.new, url: { controller: "instructeurs/avis", action: :create_instructeur }, method: :post, html: { class: "form" }) do |f|
%h1 Créez-vous un compte
= f.label :email, "Email"
= f.email_field :email, value: @email, disabled: true
= f.label :password, "Mot de passe"
= f.password_field :password, autofocus: true, required: true, placeholder: "8 caractères minimum"
= f.submit "Créer un compte", class: "button large primary expand"