|
1 | 1 | <%= render partial: "event_menu" if @event.persisted? %> |
2 | 2 |
|
3 | 3 | <%= form_for [:admin, @event] do |f| %> |
4 | | -<fieldset> |
| 4 | +<fieldset class="form-border"> |
| 5 | + <legend class="form-title">Workshop</legend> |
5 | 6 | <p><%= f.label(:name, "Name") %></p> |
6 | 7 | <%= error_message(@event, :name) %> |
7 | 8 | <p><%= f.text_field :name %></p> |
|
21 | 22 | <p><%= f.label(:end_time, "Workshop ends at:") %></p> |
22 | 23 | <%= error_message(@event, :end_time) %> |
23 | 24 | <p><%= f.time_select :end_time %></p> |
24 | | - |
| 25 | +</fieldset> |
| 26 | +<fieldset class="form-border"> |
| 27 | + <legend class="form-title">Coach the Coaches</legend> |
25 | 28 | <p><%= f.label(:coach_the_coaches_date, "Coach the Coaches date:") %></p> |
26 | 29 | <%= error_message(@event, :coach_the_coaches_date) %> |
27 | 30 | <p><%= f.date_select :coach_the_coaches_date %></p> |
|
33 | 36 | <p><%= f.label(:coach_the_coaches_end_time, "Coach the coaches ends at:") %></p> |
34 | 37 | <%= error_message(@event, :coach_the_coaches_end_time) %> |
35 | 38 | <p><%= f.time_select :coach_the_coaches_end_time %></p> |
36 | | - |
| 39 | +</fieldset> |
| 40 | +<fieldset class="form-border"> |
| 41 | + <legend class="form-title">Installation Get-Together</legend> |
37 | 42 | <p><%= f.label(:installation_get_together_date, "Installation Get-Together date:") %></p> |
38 | 43 | <%= error_message(@event, :installation_get_together_date) %> |
39 | 44 | <p><%= f.date_select :installation_get_together_date %></p> |
|
45 | 50 | <p><%= f.label(:installation_get_together_end_time, "Installation Get-Together ends at:") %></p> |
46 | 51 | <%= error_message(@event, :installation_get_together_end_time) %> |
47 | 52 | <p><%= f.time_select :installation_get_together_end_time %></p> |
48 | | - |
| 53 | +</fieldset> |
| 54 | +<fieldset class="form-border"> |
| 55 | + <legend class="form-title">Registrations</legend> |
49 | 56 | <p><%= f.label(:application_start, "Applications start on:") %></p> |
50 | 57 | <%= error_message(@event, :application_start) %> |
51 | 58 | <p><%= f.date_select :application_start %></p> |
|
74 | 81 | <%= error_message(@event, :copy_templates_from_event_id) %> |
75 | 82 | <p><%= f.collection_select(:copy_templates_from_event_id, Event.order(:scheduled_at), :id, :name_and_date, prompt: "Leave templates empty") %></p> |
76 | 83 | <% end %> |
77 | | - |
78 | 84 | </fieldset> |
79 | 85 |
|
| 86 | +<br> |
80 | 87 | <div class='button'> |
81 | 88 | <%= f.submit "Save", class: 'commit', type: 'submit' %> |
82 | 89 | </div> |
|
0 commit comments