Grosse MàJ
This commit is contained in:
@ -0,0 +1,62 @@
|
||||
<h1>Edition utilisateur</h1>
|
||||
|
||||
<%= error_messages_for :utilisateur %>
|
||||
|
||||
<% form_for(:utilisateur, :url => utilisateur_path(@utilisateur), :html => { :method => :put }) do |f| %>
|
||||
<p>
|
||||
<b>Nom</b><br />
|
||||
<%= f.text_field :nom %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Pr<50>nom</b><br />
|
||||
<%= f.text_field :prenom %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Classe</b><br />
|
||||
<%= f.text_field :classe %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Adresse courriel</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>Code postal</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 "Mise <20> jour" %>
|
||||
</p>
|
||||
<% end %>
|
||||
|
||||
<%= link_to 'Montrer', utilisateur_path(@utilisateur) %> |
|
||||
<%= link_to 'Retour', utilisateurs_path %>
|
@ -0,0 +1,38 @@
|
||||
<h1>Listing utilisateurs</h1>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<th>Nom</th>
|
||||
<th>Pr<50>nom</th>
|
||||
<th>Classe</th>
|
||||
<th>Email</th>
|
||||
<th>Age</th>
|
||||
<th>Rue</th>
|
||||
<th>Code Postal</th>
|
||||
<th>Ville</th>
|
||||
<th>Photo</th>
|
||||
<th>Type</th>
|
||||
</tr>
|
||||
|
||||
<% for utilisateur in @utilisateurs %>
|
||||
<tr>
|
||||
<td><%=h utilisateur.nom %></td>
|
||||
<td><%=h utilisateur.prenom %></td>
|
||||
<td><%=h utilisateur.classe %></td>
|
||||
<td><%=h utilisateur.email %></td>
|
||||
<td><%=h utilisateur.age %></td>
|
||||
<td><%=h utilisateur.rue %></td>
|
||||
<td><%=h utilisateur.codePostal %></td>
|
||||
<td><%=h utilisateur.ville %></td>
|
||||
<td><%=h utilisateur.photo %></td>
|
||||
<td><%=h utilisateur.type %></td>
|
||||
<td><%= link_to 'Montrer', utilisateur_path(utilisateur) %></td>
|
||||
<td><%= link_to 'Editer', edit_utilisateur_path(utilisateur) %></td>
|
||||
<td><%= link_to 'Supprimer', utilisateur_path(utilisateur), :confirm => 'Etes vous s<>r ?', :method => :delete %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</table>
|
||||
|
||||
<br />
|
||||
|
||||
<%= link_to 'Nouvel utilisateur', new_utilisateur_path %>
|
@ -0,0 +1,61 @@
|
||||
<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 %>
|
@ -0,0 +1,53 @@
|
||||
<p>
|
||||
<b>Nom:</b>
|
||||
<%=h @utilisateur.nom %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Prenom:</b>
|
||||
<%=h @utilisateur.prenom %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Classe:</b>
|
||||
<%=h @utilisateur.classe %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Email:</b>
|
||||
<%=h @utilisateur.email %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Age:</b>
|
||||
<%=h @utilisateur.age %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Rue:</b>
|
||||
<%=h @utilisateur.rue %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Codepostal:</b>
|
||||
<%=h @utilisateur.codePostal %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Ville:</b>
|
||||
<%=h @utilisateur.ville %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Photo:</b>
|
||||
<%=h @utilisateur.photo %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Type:</b>
|
||||
<%=h @utilisateur.type %>
|
||||
</p>
|
||||
|
||||
|
||||
<%= link_to 'Edit', edit_utilisateur_path(@utilisateur) %> |
|
||||
<%= link_to 'Back', utilisateurs_path %>
|
Reference in New Issue
Block a user