<%= form_with model: @reminder, local: true do |f| %>
Reminder Content <%= f.form_group :summary, required: true do %> <%= f.label :summary %> <%= f.text_field :summary %> <%= f.errors :summary %> <% end %> <%= f.form_group :location, required: true do %> <%= f.label :location %> <%= f.text_field :location %> <%= f.errors :location %> <% end %> <%= f.form_group :description do %> <%= f.label :description %> <%= f.text_area :description %> <%= f.errors :description %> <% end %> <%= f.form_group :start_time, required: true do %> <%= f.label :start_time %> <%= f.datetime_select :start_time, include_blank: true %> <%= f.errors :start_time %> <% end %> <%= f.form_group :end_time, required: true do %> <%= f.label :end_time %> <%= f.datetime_select :end_time, include_blank: true %> <%= f.errors :end_time %> <% end %> <%= f.form_group :time_zone, required: true do %> <%= f.label :time_zone %> <%= f.select :time_zone, MrCommon::Timezone.time_zone_select_options, include_blank: true %> <%= f.errors :time_zone %> <% end %> <%= f.form_group :all_day do %> <%= f.check_box :all_day %> <%= f.label :all_day %> <%= f.errors :all_day %> <% end %>
Meta <%= f.form_group :slug, required: true do %> <%= f.label :slug %> <%= f.text_field :slug %> <%= f.errors :slug %> <% end %> <%= f.form_group :include_in_confirmation_mailer do %> <%= f.check_box :include_in_confirmation_mailer %> <%= f.label :include_in_confirmation_mailer %> <%= f.errors :include_in_confirmation_mailer %> <% end %>
<%= f.submit "Save" %> <% if @reminder.new_record? %> <%= link_to "Cancel", reminders_path, class: 'button-secondary' %> <% else %> <%= link_to "Cancel", reminder_path(@reminder), class: 'button-secondary' %> <% end %>
<% end %>