61 lines
904 B
Plaintext
61 lines
904 B
Plaintext
<h1>New utilisateur</h1>
|
|
|
|
<%= error_messages_for :utilisateur %>
|
|
|
|
<% form_for(:utilisateur, :url => utilisateurs_path) do |f| %>
|
|
<p>
|
|
<b>Nom</b><br />
|
|
<%= f.text_field :nom %>
|
|
</p>
|
|
|
|
<p>
|
|
<b>Prenom</b><br />
|
|
<%= f.text_field :prenom %>
|
|
</p>
|
|
|
|
<p>
|
|
<b>Classe</b><br />
|
|
<%= f.text_field :classe %>
|
|
</p>
|
|
|
|
<p>
|
|
<b>Email</b><br />
|
|
<%= f.text_field :email %>
|
|
</p>
|
|
|
|
<p>
|
|
<b>Age</b><br />
|
|
<%= f.text_field :age %>
|
|
</p>
|
|
|
|
<p>
|
|
<b>Rue</b><br />
|
|
<%= f.text_field :rue %>
|
|
</p>
|
|
|
|
<p>
|
|
<b>Codepostal</b><br />
|
|
<%= f.text_field :codePostal %>
|
|
</p>
|
|
|
|
<p>
|
|
<b>Ville</b><br />
|
|
<%= f.text_field :ville %>
|
|
</p>
|
|
|
|
<p>
|
|
<b>Photo</b><br />
|
|
<%= f.text_field :photo %>
|
|
</p>
|
|
|
|
<p>
|
|
<b>Type</b><br />
|
|
<%= f.text_field :type %>
|
|
</p>
|
|
|
|
<p>
|
|
<%= submit_tag "Create" %>
|
|
</p>
|
|
<% end %>
|
|
|
|
<%= link_to 'Back', utilisateurs_path %> |