Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <%= form_for(@event) do |f| %>
- <% if @event.errors.any? %>
- <div id="error_explanation">
- <h2><%= pluralize(@event.errors.count, "error") %> prohibited this event from being saved:</h2>
- <ul>
- <% @event.errors.full_messages.each do |message| %>
- <li><%= message %></li>
- <% end %>
- </ul>
- </div>
- <% end %>
- <div class="field">
- <%= f.label :title %><br>
- <%= f.text_field :title %>
- </div>
- <div class="field">
- <%= f.label :datetime %><br>
- <%= f.datetime_select :datetime, class: "datepicker" %>
- </div>
- <div class="field">
- <%= f.label :date %><br>
- <%= f.date_select :date, class: "datetimepicker-rails" %>
- </div>
- <div class="field">
- <%= f.label :time %><br>
- <%= f.time_select :time %>
- </div>
- <div class="field">
- <%= f.label :address %><br>
- <%= f.text_field :address %>
- </div>
- <div class="field">
- <%= f.label :cost %><br>
- <%= f.text_field :cost %>
- </div>
- <div class="field">
- <%= f.label :category %><br>
- <%= f.text_field :category %>
- </div>
- <div class="field">
- <%= f.label :tags %><br>
- <%= f.text_field :tags %>
- </div>
- <div class="field">
- <%= f.label :image %><br>
- <%= f.text_field :image %>
- </div>
- <div class="field">
- <%= f.label :description %><br>
- <%= f.text_area :description %>
- </div>
- <div class="actions">
- <%= f.submit %>
- </div>
- <% end %>
- <input type="date" class="datepicker">
- <%= f.date_select :date, class: "datepicker"%>
- <input type="text" class="datepicker"> #Notice the input type
- <%= f.text_field :date, class: "datepicker"%>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement