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 |msg| %>
- <li><%= msg %></li>
- <% end %>
- </ul>
- </div>
- <% end %>
- <div class="field">
- <%= f.label :title %><br />
- <%= f.text_field :title %>
- </div>
- <div class="field">
- <%= f.label :starts_at %><br />
- <%= f.datetime_select :starts_at %>
- </div>
- <div class="field">
- <%= f.label :ends_at %><br />
- <%= f.datetime_select :ends_at %>
- </div>
- <div class="field">
- <%= f.label :all_day %><br />
- <%= f.check_box :all_day %>
- </div>
- <div class="field">
- <%= f.label :description %><br />
- <%= f.text_field :description %>
- </div>
- <div class="actions">
- <%= f.submit %>
- </div>
- <% end %>
Add Comment
Please, Sign In to add comment