Grosse MàJ
This commit is contained in:
@ -0,0 +1,17 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
|
||||
<title>Utilisateurs: <%= controller.action_name %></title>
|
||||
<%= stylesheet_link_tag 'scaffold' %>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p style="color: green"><%= flash[:notice] %></p>
|
||||
|
||||
<%= yield %>
|
||||
|
||||
</body>
|
||||
</html>
|
14
P5B/ruby/3dossmanno_annuaire/app/views/sessions/new.rhtml
Normal file
14
P5B/ruby/3dossmanno_annuaire/app/views/sessions/new.rhtml
Normal file
@ -0,0 +1,14 @@
|
||||
<% form_tag session_path do -%>
|
||||
<p><label for="login">Login</label><br/>
|
||||
<%= text_field_tag 'login' %></p>
|
||||
|
||||
<p><label for="password">Password</label><br/>
|
||||
<%= password_field_tag 'password' %></p>
|
||||
|
||||
<!-- Uncomment this if you want this functionality
|
||||
<p><label for="remember_me">Remember me:</label>
|
||||
<%= check_box_tag 'remember_me' %></p>
|
||||
-->
|
||||
|
||||
<p><%= submit_tag 'Log in' %></p>
|
||||
<% end -%>
|
@ -0,0 +1,3 @@
|
||||
<%= @user.login %>, your account has been activated. You may now start adding your plugins:
|
||||
|
||||
<%= @url %>
|
@ -0,0 +1,8 @@
|
||||
Your account has been created.
|
||||
|
||||
Username: <%= @user.login %>
|
||||
Password: <%= @user.password %>
|
||||
|
||||
Visit this url to activate your account:
|
||||
|
||||
<%= @url %>
|
16
P5B/ruby/3dossmanno_annuaire/app/views/users/new.rhtml
Normal file
16
P5B/ruby/3dossmanno_annuaire/app/views/users/new.rhtml
Normal file
@ -0,0 +1,16 @@
|
||||
<%= error_messages_for :user %>
|
||||
<% form_for :user, :url => users_path do |f| -%>
|
||||
<p><label for="login">Login</label><br/>
|
||||
<%= f.text_field :login %></p>
|
||||
|
||||
<p><label for="email">Email</label><br/>
|
||||
<%= f.text_field :email %></p>
|
||||
|
||||
<p><label for="password">Password</label><br/>
|
||||
<%= f.password_field :password %></p>
|
||||
|
||||
<p><label for="password_confirmation">Confirm Password</label><br/>
|
||||
<%= f.password_field :password_confirmation %></p>
|
||||
|
||||
<p><%= submit_tag 'Sign up' %></p>
|
||||
<% end -%>
|
@ -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