Grosse MàJ
This commit is contained in:
32
P5B/ruby/mon_projet/app/views/admin/addresses/edit.rhtml
Normal file
32
P5B/ruby/mon_projet/app/views/admin/addresses/edit.rhtml
Normal file
@ -0,0 +1,32 @@
|
||||
<h1>Editing address</h1>
|
||||
|
||||
<%= error_messages_for :address %>
|
||||
|
||||
<% form_for(:address, :url => address_path(@address), :html => { :method => :put }) do |f| %>
|
||||
<p>
|
||||
<b>Street</b><br />
|
||||
<%= f.text_area :street %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Postal code</b><br />
|
||||
<%= f.text_field :postal_code %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>City</b><br />
|
||||
<%= f.text_field :city %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Country</b><br />
|
||||
<%= f.text_field :country %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<%= submit_tag "Update" %>
|
||||
</p>
|
||||
<% end %>
|
||||
|
||||
<%= link_to 'Show', address_path(@address) %> |
|
||||
<%= link_to 'Back', addresses_path %>
|
26
P5B/ruby/mon_projet/app/views/admin/addresses/index.rhtml
Normal file
26
P5B/ruby/mon_projet/app/views/admin/addresses/index.rhtml
Normal file
@ -0,0 +1,26 @@
|
||||
<h1>Listing addresses</h1>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<th>Street</th>
|
||||
<th>Postal code</th>
|
||||
<th>City</th>
|
||||
<th>Country</th>
|
||||
</tr>
|
||||
|
||||
<% for address in @addresses %>
|
||||
<tr>
|
||||
<td><%=h address.street %></td>
|
||||
<td><%=h address.postal_code %></td>
|
||||
<td><%=h address.city %></td>
|
||||
<td><%=h address.country %></td>
|
||||
<td><%= link_to 'Show', address_path(address) %></td>
|
||||
<td><%= link_to 'Edit', edit_address_path(address) %></td>
|
||||
<td><%= link_to 'Destroy', address_path(address), :confirm => 'Are you sure?', :method => :delete %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</table>
|
||||
|
||||
<br />
|
||||
|
||||
<%= link_to 'New address', new_address_path %>
|
31
P5B/ruby/mon_projet/app/views/admin/addresses/new.rhtml
Normal file
31
P5B/ruby/mon_projet/app/views/admin/addresses/new.rhtml
Normal file
@ -0,0 +1,31 @@
|
||||
<h1>New address</h1>
|
||||
|
||||
<%= error_messages_for :address %>
|
||||
|
||||
<% form_for(:address, :url => addresses_path) do |f| %>
|
||||
<p>
|
||||
<b>Street</b><br />
|
||||
<%= f.text_area :street %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Postal code</b><br />
|
||||
<%= f.text_field :postal_code %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>City</b><br />
|
||||
<%= f.text_field :city %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Country</b><br />
|
||||
<%= f.text_field :country %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<%= submit_tag "Create" %>
|
||||
</p>
|
||||
<% end %>
|
||||
|
||||
<%= link_to 'Back', addresses_path %>
|
23
P5B/ruby/mon_projet/app/views/admin/addresses/show.rhtml
Normal file
23
P5B/ruby/mon_projet/app/views/admin/addresses/show.rhtml
Normal file
@ -0,0 +1,23 @@
|
||||
<p>
|
||||
<b>Street:</b>
|
||||
<%=h @address.street %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Postal code:</b>
|
||||
<%=h @address.postal_code %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>City:</b>
|
||||
<%=h @address.city %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Country:</b>
|
||||
<%=h @address.country %>
|
||||
</p>
|
||||
|
||||
|
||||
<%= link_to 'Edit', edit_address_path(@address) %> |
|
||||
<%= link_to 'Back', addresses_path %>
|
22
P5B/ruby/mon_projet/app/views/admin/customers/edit.rhtml
Normal file
22
P5B/ruby/mon_projet/app/views/admin/customers/edit.rhtml
Normal file
@ -0,0 +1,22 @@
|
||||
<h1>Editing customer</h1>
|
||||
|
||||
<%= error_messages_for :customer %>
|
||||
|
||||
<% form_for(:customer, :url => customer_path(@customer), :html => { :method => :put }) do |f| %>
|
||||
<p>
|
||||
<b>Firstname</b><br />
|
||||
<%= f.text_field :firstname %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Name</b><br />
|
||||
<%= f.text_field :name %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<%= submit_tag "Update" %>
|
||||
</p>
|
||||
<% end %>
|
||||
|
||||
<%= link_to 'Show', customer_path(@customer) %> |
|
||||
<%= link_to 'Back', customers_path %>
|
22
P5B/ruby/mon_projet/app/views/admin/customers/index.rhtml
Normal file
22
P5B/ruby/mon_projet/app/views/admin/customers/index.rhtml
Normal file
@ -0,0 +1,22 @@
|
||||
<h1>Listing customers</h1>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<th>Firstname</th>
|
||||
<th>Name</th>
|
||||
</tr>
|
||||
|
||||
<% for customer in @customers %>
|
||||
<tr>
|
||||
<td><%=h customer.firstname %></td>
|
||||
<td><%=h customer.name %></td>
|
||||
<td><%= link_to 'Show', customer_path(customer) %></td>
|
||||
<td><%= link_to 'Edit', edit_customer_path(customer) %></td>
|
||||
<td><%= link_to 'Destroy', customer_path(customer), :confirm => 'Are you sure?', :method => :delete %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</table>
|
||||
|
||||
<br />
|
||||
|
||||
<%= link_to 'New customer', new_customer_path %>
|
21
P5B/ruby/mon_projet/app/views/admin/customers/new.rhtml
Normal file
21
P5B/ruby/mon_projet/app/views/admin/customers/new.rhtml
Normal file
@ -0,0 +1,21 @@
|
||||
<h1>New customer</h1>
|
||||
|
||||
<%= error_messages_for :customer %>
|
||||
|
||||
<% form_for(:customer, :url => customers_path) do |f| %>
|
||||
<p>
|
||||
<b>Firstname</b><br />
|
||||
<%= f.text_field :firstname %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Name</b><br />
|
||||
<%= f.text_field :name %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<%= submit_tag "Create" %>
|
||||
</p>
|
||||
<% end %>
|
||||
|
||||
<%= link_to 'Back', customers_path %>
|
13
P5B/ruby/mon_projet/app/views/admin/customers/show.rhtml
Normal file
13
P5B/ruby/mon_projet/app/views/admin/customers/show.rhtml
Normal file
@ -0,0 +1,13 @@
|
||||
<p>
|
||||
<b>Firstname:</b>
|
||||
<%=h @customer.firstname %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Name:</b>
|
||||
<%=h @customer.name %>
|
||||
</p>
|
||||
|
||||
|
||||
<%= link_to 'Edit', edit_customer_path(@customer) %> |
|
||||
<%= link_to 'Back', customers_path %>
|
29
P5B/ruby/mon_projet/app/views/admin/products/_form.rhtml
Normal file
29
P5B/ruby/mon_projet/app/views/admin/products/_form.rhtml
Normal file
@ -0,0 +1,29 @@
|
||||
<p>
|
||||
<b>Designation</b><br />
|
||||
<%= f.text_field :designation %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Description</b><br />
|
||||
<%= f.text_area :description %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Crée le</b><br />
|
||||
<%= f.datetime_select :created_at %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Mis à jour le</b><br />
|
||||
<%= f.datetime_select :updated_at %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Fournisseur</b><br />
|
||||
<%= f.select("supplier_id", Supplier.find(:all).collect {|p| [ p.code, p.id ] }, { :include_blank => true }) %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Type de produit</b><br />
|
||||
<%= select_tag "type", options_for_select([["Voiture", "Voiture"], ["Vélo", "Velo"]]) %>
|
||||
</p>
|
15
P5B/ruby/mon_projet/app/views/admin/products/edit.rhtml
Normal file
15
P5B/ruby/mon_projet/app/views/admin/products/edit.rhtml
Normal file
@ -0,0 +1,15 @@
|
||||
<h1>Edition d'un produit</h1>
|
||||
|
||||
<%= error_messages_for :product %>
|
||||
|
||||
<% form_for(:product, :url => admin_product_path(@product), :html => { :method => :put }) do |f| %>
|
||||
|
||||
<%= render :partial => "form", :locals => { :f => f } %>
|
||||
|
||||
<p>
|
||||
<%= submit_tag "Mise à jour" %>
|
||||
</p>
|
||||
<% end %>
|
||||
|
||||
<%= link_to 'Voir', admin_product_path(@product) %> |
|
||||
<%= link_to 'Retour', admin_products_path %>
|
34
P5B/ruby/mon_projet/app/views/admin/products/index.rhtml
Normal file
34
P5B/ruby/mon_projet/app/views/admin/products/index.rhtml
Normal file
@ -0,0 +1,34 @@
|
||||
<h1>Liste des produits</h1>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<th>Désignation</th>
|
||||
<th>Description</th>
|
||||
<th>Crée le</th>
|
||||
<th>Mis à jour le</th>
|
||||
<th>Fournisseur</th>
|
||||
<th>Type</th>
|
||||
</tr>
|
||||
|
||||
<% for product in @products %>
|
||||
<tr>
|
||||
<td><%=h product.designation %></td>
|
||||
<td><%=h product.description %></td>
|
||||
<td><%=h product.created_at.strftime("le %d/%m/%Y") %></td>
|
||||
<td><%=h product.updated_at.strftime("%d/%m/%Y") %></td>
|
||||
<td><%= link_to product.supplier_id, supplier_path(product.supplier_id) %></td>
|
||||
<td><%=h product.type%></td>
|
||||
<td><%= link_to 'Voir', admin_product_path(product) %></td>
|
||||
<td><%= link_to 'Editer', edit_admin_product_path(product) %></td>
|
||||
<td><%= link_to 'Supprimer', admin_product_path(product), :confirm => 'Etes vous sûr ?', :method => :delete %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</table>
|
||||
|
||||
<br />
|
||||
|
||||
<%= link_to 'Nouveau produit', new_admin_product_path %>
|
||||
<br />
|
||||
|
||||
<p><b>Utilisateur connecté : </b><%= current_utilisateur.login if current_utilisateur %>
|
||||
</p>
|
13
P5B/ruby/mon_projet/app/views/admin/products/new.rhtml
Normal file
13
P5B/ruby/mon_projet/app/views/admin/products/new.rhtml
Normal file
@ -0,0 +1,13 @@
|
||||
<h1>Nouvel élément</h1>
|
||||
|
||||
<%= error_messages_for :product %>
|
||||
|
||||
<% form_for(:product, :url => admin_products_path) do |f| %>
|
||||
|
||||
<%= render :partial => "form", :locals => { :f => f} %>
|
||||
<p>
|
||||
<%= submit_tag "Créer" %>
|
||||
</p>
|
||||
<% end %>
|
||||
|
||||
<%= link_to 'Retour', admin_products_path %>
|
23
P5B/ruby/mon_projet/app/views/admin/products/show.rhtml
Normal file
23
P5B/ruby/mon_projet/app/views/admin/products/show.rhtml
Normal file
@ -0,0 +1,23 @@
|
||||
<p>
|
||||
<b>Désignation:</b>
|
||||
<%=h @product.designation %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Description:</b>
|
||||
<%=h @product.description %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Crée le:</b>
|
||||
<%=h @product.created_at %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Mis à jour le :</b>
|
||||
<%=h @product.updated_at %>
|
||||
</p>
|
||||
|
||||
|
||||
<%= link_to 'Editer', admin_edit_product_path(@product) %> |
|
||||
<%= link_to 'Retour', admin_products_path %>
|
37
P5B/ruby/mon_projet/app/views/admin/suppliers/edit.rhtml
Normal file
37
P5B/ruby/mon_projet/app/views/admin/suppliers/edit.rhtml
Normal file
@ -0,0 +1,37 @@
|
||||
<h1>Editing supplier</h1>
|
||||
|
||||
<%= error_messages_for :supplier %>
|
||||
|
||||
<% form_for(:supplier, :url => supplier_path(@supplier), :html => { :method => :put }) do |f| %>
|
||||
<p>
|
||||
<b>Name</b><br />
|
||||
<%= f.text_field :name %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Description</b><br />
|
||||
<%= f.text_area :description %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Code</b><br />
|
||||
<%= f.text_field :code %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Created at</b><br />
|
||||
<%= f.datetime_select :created_at %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Updated at</b><br />
|
||||
<%= f.datetime_select :updated_at %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<%= submit_tag "Update" %>
|
||||
</p>
|
||||
<% end %>
|
||||
|
||||
<%= link_to 'Show', supplier_path(@supplier) %> |
|
||||
<%= link_to 'Back', suppliers_path %>
|
28
P5B/ruby/mon_projet/app/views/admin/suppliers/index.rhtml
Normal file
28
P5B/ruby/mon_projet/app/views/admin/suppliers/index.rhtml
Normal file
@ -0,0 +1,28 @@
|
||||
<h1>Listing suppliers</h1>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Description</th>
|
||||
<th>Code</th>
|
||||
<th>Created at</th>
|
||||
<th>Updated at</th>
|
||||
</tr>
|
||||
|
||||
<% for supplier in @suppliers %>
|
||||
<tr>
|
||||
<td><%=h supplier.name %></td>
|
||||
<td><%=h supplier.description %></td>
|
||||
<td><%=h supplier.code %></td>
|
||||
<td><%=h supplier.created_at %></td>
|
||||
<td><%=h supplier.updated_at %></td>
|
||||
<td><%= link_to 'Show', supplier_path(supplier) %></td>
|
||||
<td><%= link_to 'Edit', edit_supplier_path(supplier) %></td>
|
||||
<td><%= link_to 'Destroy', supplier_path(supplier), :confirm => 'Are you sure?', :method => :delete %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</table>
|
||||
|
||||
<br />
|
||||
|
||||
<%= link_to 'New supplier', new_supplier_path %>
|
36
P5B/ruby/mon_projet/app/views/admin/suppliers/new.rhtml
Normal file
36
P5B/ruby/mon_projet/app/views/admin/suppliers/new.rhtml
Normal file
@ -0,0 +1,36 @@
|
||||
<h1>New supplier</h1>
|
||||
|
||||
<%= error_messages_for :supplier %>
|
||||
|
||||
<% form_for(:supplier, :url => suppliers_path) do |f| %>
|
||||
<p>
|
||||
<b>Name</b><br />
|
||||
<%= f.text_field :name %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Description</b><br />
|
||||
<%= f.text_area :description %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Code</b><br />
|
||||
<%= f.text_field :code %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Created at</b><br />
|
||||
<%= f.datetime_select :created_at %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Updated at</b><br />
|
||||
<%= f.datetime_select :updated_at %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<%= submit_tag "Create" %>
|
||||
</p>
|
||||
<% end %>
|
||||
|
||||
<%= link_to 'Back', suppliers_path %>
|
28
P5B/ruby/mon_projet/app/views/admin/suppliers/show.rhtml
Normal file
28
P5B/ruby/mon_projet/app/views/admin/suppliers/show.rhtml
Normal file
@ -0,0 +1,28 @@
|
||||
<p>
|
||||
<b>Name:</b>
|
||||
<%=h @supplier.name %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Description:</b>
|
||||
<%=h @supplier.description %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Code:</b>
|
||||
<%=h @supplier.code %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Created at:</b>
|
||||
<%=h @supplier.created_at %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Updated at:</b>
|
||||
<%=h @supplier.updated_at %>
|
||||
</p>
|
||||
|
||||
|
||||
<%= link_to 'Edit', edit_supplier_path(@supplier) %> |
|
||||
<%= link_to 'Back', suppliers_path %>
|
18
P5B/ruby/mon_projet/app/views/layouts/application.rhtml
Normal file
18
P5B/ruby/mon_projet/app/views/layouts/application.rhtml
Normal file
@ -0,0 +1,18 @@
|
||||
<!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="fr" lang="fr">
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
|
||||
<title>Produits: <%= controller.action_name %></title>
|
||||
<%= stylesheet_link_tag 'scaffold' %>
|
||||
<%= javascript_include_tag :defaults %>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p style="color: green"><%= flash[:notice] %></p>
|
||||
|
||||
<%= yield %>
|
||||
|
||||
</body>
|
||||
</html>
|
18
P5B/ruby/mon_projet/app/views/layouts/application.rhtml~
Normal file
18
P5B/ruby/mon_projet/app/views/layouts/application.rhtml~
Normal file
@ -0,0 +1,18 @@
|
||||
<!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="fr" lang="fr">
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
|
||||
<title>Produits: <%= controller.action_name %></title>
|
||||
<%= stylesheet_link_tag 'scaffold' %>
|
||||
<%= javascript_include_tag defaults %>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p style="color: green"><%= flash[:notice] %></p>
|
||||
|
||||
<%= yield %>
|
||||
|
||||
</body>
|
||||
</html>
|
25
P5B/ruby/mon_projet/app/views/products/index.rhtml
Normal file
25
P5B/ruby/mon_projet/app/views/products/index.rhtml
Normal file
@ -0,0 +1,25 @@
|
||||
<h1>Liste des produits</h1>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<th>Désignation</th>
|
||||
<th>Description</th>
|
||||
<th>Fournisseur</th>
|
||||
<th>Type</th>
|
||||
</tr>
|
||||
|
||||
<% for product in @products %>
|
||||
<tr>
|
||||
<%= @product = product %>
|
||||
<td><%= in_place_editor_field :product, :designation %></td>
|
||||
<td><%=h product.description %></td>
|
||||
<td><%= link_to product.supplier_id, supplier_path(product.supplier_id) %></td>
|
||||
<td><%=h product.type%></td>
|
||||
<td><%= link_to 'Voir', product_path(product) %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</table>
|
||||
|
||||
<%= will_paginate @products %>
|
||||
|
||||
<br />
|
25
P5B/ruby/mon_projet/app/views/products/index.rhtml~
Normal file
25
P5B/ruby/mon_projet/app/views/products/index.rhtml~
Normal file
@ -0,0 +1,25 @@
|
||||
<h1>Liste des produits</h1>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<th>Désignation</th>
|
||||
<th>Description</th>
|
||||
<th>Fournisseur</th>
|
||||
<th>Type</th>
|
||||
</tr>
|
||||
|
||||
<% for product in @products %>
|
||||
<tr>
|
||||
<%= @product = product %>
|
||||
<td><%=h in_place_editor_field :product, :designation %></td>
|
||||
<td><%=h product.description %></td>
|
||||
<td><%= link_to product.supplier_id, supplier_path(product.supplier_id) %></td>
|
||||
<td><%=h product.type%></td>
|
||||
<td><%= link_to 'Voir', product_path(product) %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</table>
|
||||
|
||||
<%= will_paginate @products %>
|
||||
|
||||
<br />
|
11
P5B/ruby/mon_projet/app/views/products/show.rhtml
Normal file
11
P5B/ruby/mon_projet/app/views/products/show.rhtml
Normal file
@ -0,0 +1,11 @@
|
||||
<p>
|
||||
<b>Désignation:</b>
|
||||
<%=h @product.designation %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Description:</b>
|
||||
<%=h @product.description %>
|
||||
</p>
|
||||
|
||||
<%= link_to 'Retour', products_path %>
|
14
P5B/ruby/mon_projet/app/views/sessions/new.rhtml
Normal file
14
P5B/ruby/mon_projet/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 @@
|
||||
<%= @utilisateur.login %>, your account has been activated. You may now start adding your plugins:
|
||||
|
||||
<%= @url %>
|
@ -0,0 +1,8 @@
|
||||
Your account has been created.
|
||||
|
||||
Username: <%= @utilisateur.login %>
|
||||
Password: <%= @utilisateur.password %>
|
||||
|
||||
Visit this url to activate your account:
|
||||
|
||||
<%= @url %>
|
16
P5B/ruby/mon_projet/app/views/utilisateurs/new.rhtml
Normal file
16
P5B/ruby/mon_projet/app/views/utilisateurs/new.rhtml
Normal file
@ -0,0 +1,16 @@
|
||||
<%= error_messages_for :utilisateur %>
|
||||
<% form_for :utilisateur, :url => utilisateurs_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 -%>
|
Reference in New Issue
Block a user