26 lines
654 B
Plaintext
26 lines
654 B
Plaintext
= semantic_form_for([:admin, @admin], :remote => true) do |f|
|
|
|
|
.content
|
|
=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 :"
|
|
|
|
|
|
%table
|
|
|
|
|
|
|
|
%tr
|
|
%td= f.label :file,"image :"
|
|
%td
|
|
= f.file_field :file
|
|
=image_tag(f.object.file.square.url) if f.object.file
|
|
|
|
|
|
.actions
|
|
=f.submit "Sauvegarder", :class => "btn btn-primary"
|
|
|