Guest User

Untitled

a guest
Jun 20th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. <%#
  2. # To change this template, choose Tools | Templates
  3. # and open the template in the editor.
  4. %>
  5.  
  6. <% form_for(@contact) do |form| %>
  7. <fieldset>
  8. <legend>Please enter contact details</legend>
  9.  
  10. <div>
  11. <%= form.label :name, "Name:" %>
  12. <%= form.text_field :name, %>
  13. </div>
  14.  
  15. <div>
  16. <%= form.label :nickname, "Nickname:" %>
  17. <%= form.text_field :nickname, :size => 40 %>
  18. </div>
  19.  
  20. <div>
  21. <%= form.label :company, "Company:" %>
  22. <%= form.text_field :company, :size => 40 %>
  23. </div>
  24.  
  25. <div>
  26. <%= form.label :email, "Email:" %>
  27. <%= form.text_field :email, :size => 40 %>
  28. </div>
  29.  
  30. <div>
  31. <%= form.label :phone_number, "Phone number:" %>
  32. <%= form.text_field :phone_number, :size => 40 %>
  33. </div>
  34.  
  35. <div>
  36. <%= form.label :address, "Address:" %>
  37. <%= form.text_area :address, :rows => 3, :cols => 40 %>
  38. </div>
  39.  
  40. <div>
  41. <%= form.label :messenger_name, "MSN:" %>
  42. <%= form.text_field :messenger_name, :rows => 3, :cols => 40 %>
  43. </div>
  44.  
  45. <div>
  46. <%= form.label :information, "Information:" %>
  47. <%= form.text_area :information, :rows => 3, :cols => 40 %>
  48. </div>
  49.  
  50. <div>
  51. <%= f.submit "Add contact" %>
  52. </div>
  53. </fieldset>
  54. <% end %>
Add Comment
Please, Sign In to add comment