Advertisement
Guest User

Untitled

a guest
Oct 6th, 2015
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.59 KB | None | 0 0
  1. <%= form_for(@event) do |f| %>
  2. <% if @event.errors.any? %>
  3. <div id="error_explanation">
  4. <h2><%= pluralize(@event.errors.count, "error") %> prohibited this event from being saved:</h2>
  5.  
  6. <ul>
  7. <% @event.errors.full_messages.each do |message| %>
  8. <li><%= message %></li>
  9. <% end %>
  10. </ul>
  11. </div>
  12. <% end %>
  13.  
  14. <div class="field">
  15. <%= f.label :title %><br>
  16. <%= f.text_field :title %>
  17. </div>
  18. <div class="field">
  19. <%= f.label :datetime %><br>
  20. <%= f.datetime_select :datetime, class: "datepicker" %>
  21. </div>
  22. <div class="field">
  23. <%= f.label :date %><br>
  24. <%= f.date_select :date, class: "datetimepicker-rails" %>
  25. </div>
  26. <div class="field">
  27. <%= f.label :time %><br>
  28. <%= f.time_select :time %>
  29. </div>
  30. <div class="field">
  31. <%= f.label :address %><br>
  32. <%= f.text_field :address %>
  33. </div>
  34. <div class="field">
  35. <%= f.label :cost %><br>
  36. <%= f.text_field :cost %>
  37. </div>
  38. <div class="field">
  39. <%= f.label :category %><br>
  40. <%= f.text_field :category %>
  41. </div>
  42. <div class="field">
  43. <%= f.label :tags %><br>
  44. <%= f.text_field :tags %>
  45. </div>
  46. <div class="field">
  47. <%= f.label :image %><br>
  48. <%= f.text_field :image %>
  49. </div>
  50. <div class="field">
  51. <%= f.label :description %><br>
  52. <%= f.text_area :description %>
  53. </div>
  54. <div class="actions">
  55. <%= f.submit %>
  56. </div>
  57. <% end %>
  58.  
  59. <input type="date" class="datepicker">
  60.  
  61. <%= f.date_select :date, class: "datepicker"%>
  62.  
  63. <input type="text" class="datepicker"> #Notice the input type
  64.  
  65. <%= f.text_field :date, class: "datepicker"%>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement