Sha256: f8f23e9cf54075a3d554a2c937abbd30ef9c85297b81a4d26e49f2660d34708c

Contents?: true

Size: 606 Bytes

Versions: 1

Compression:

Stored size: 606 Bytes

Contents

<h1>Edit list of categories</h1>

<% form_for(@categorylist, :url => eventable_event_categorylist_path(@event)) do |f| %>
  <%= f.error_messages %>
  <% @categorylist.items.group_by(&:group).each do |group, items| %>
    <h3><%=h group -%></h3>
    <% f.fields_for :items do |cif| %>
      <% if cif.object.group == group %>
        <%= cif.hidden_field :id -%>
        <%= cif.check_box :active -%>
        <%=h cif.object.name -%>
        <br/>
      <% end %>
    <% end %>
  <% end %>
  <p>
    <%= f.submit 'Update' %>
  </p>
<% end %>
<%= link_to 'Back', eventable_event_categorylist_path(@event) %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dcs-eventable-0.0.8 app/views/eventable/categorylists/edit.html.erb