blog_eft_app/app/views/admin/admins/_form.html.haml
2013-09-09 16:15:13 +02:00

41 lines
986 B
Plaintext
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.

#myModal.modal.fade{"aria-hidden" => "true", "aria-labelledby" => "myModalLabel", :role => "dialog", :tabindex => "-1"}
.modal-header
%button.close{"aria-hidden" => "true", "data-dismiss" => "modal", :type => "button"} ×
%h3#myModalLabel
-if @admin.id
Modifier un admin
-else
Ajouter un admin
.modal-body
=semantic_form_for [:admin, @admin], :remote => true do |f|
= f.inputs do
= f.input :email, :label => "Email :"
= f.input :username, :label => "Login :"
= f.input :name, :label => "Nom :"
= f.input :firstname, :label => "Prénom :"
= f.input :password, :label => "Mot de passe :"
= f.input :password_confirmation, :label => "Confirmation :"
.modal-footer
%button.btn{"aria-hidden" => "true", "data-dismiss" => "modal"} Annuler
%button.btn.btn-primary{"aria-hidden" => "true", "data-dismiss" => "modal", :onclick => "$(this).closest('.modal').find('form').submit();"} Sauvegarder