Sha256: 7550a5bbb8e8903df75dbae55bea239315e4bda1ca3042256f6c8faa64e5974e
Contents?: true
Size: 961 Bytes
Versions: 1
Compression:
Stored size: 961 Bytes
Contents
<h1>List of opening times</h1> <h3><%= link_to 'Edit', edit_eventable_opening_period_opening_timelist_path(@opening_period) %></h3> <table> <tr> <th>Day of week</th> <th>Open</th> <th>Closed</th> </tr> <% @opening_timelist.items.each do |opening_time| %> <tr> <td><%= t('date.day_names')[opening_time.day_of_week] %></td> <td><%= opening_time.open_at %></td> <td><%= opening_time.closed_at %></td> <td><%= button_to 'Remove', eventable_opening_period_opening_time_path(@opening_period, opening_time, :list => true), :confirm => 'Are you sure?', :method => :delete %></td> </tr> <% end %> </table> <br/> <strong>Add a new opening time:</strong> <% form_for(@new_opening_time, :url => eventable_opening_period_opening_times_path(@opening_period, :list => true)) do |f| %> <%= f.error_messages %> <%= render :partial => 'eventable/opening_times/form', :object => f %> <p> <%= f.submit 'Create' %> </p> <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dcs-eventable-0.0.8 | app/views/eventable/opening_timelists/show.html.erb |