Sha256: 2eed1a983688f6297ce54653ba12ed941493e77fbd35d1fd8d6dff33a38327c8

Contents?: true

Size: 872 Bytes

Versions: 10

Compression:

Stored size: 872 Bytes

Contents

<% Detour.config.flaggable_types.each do |type| %>
  <h1><%= type %> Groups</h1>

  <%= content_tag :ul, class: "groups" do %>
    <%= render @groups.select { |group| group.flaggable_type == type } %>
  <% end %>
<% end %>

<%= content_tag :span, "Create a Group", class: "btn btn-default", data: { toggle: "modal", target: "#create-group" } %>

<%= modal title: "Create a Group", id: "create-group", fade: true do %>
  <%= form_for Detour::Group.new, remote: true do |form| %>
    <%= form.text_field :name, class: "form-control", placeholder: "Group Name" %>
    <%= form.select :flaggable_type, Detour.config.flaggable_types, class: "form-control" %>

    <%= modal_footer do %>
      <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
      <%= form.submit "Create Group", class: "btn btn-primary" %>
    <% end %>
  <% end %>
<% end %>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
detour-0.0.15 app/views/detour/groups/index.html.erb
detour-0.0.14 app/views/detour/groups/index.html.erb
detour-0.0.13 app/views/detour/groups/index.html.erb
detour-0.0.12 app/views/detour/groups/index.html.erb
detour-0.0.11 app/views/detour/groups/index.html.erb
detour-0.0.10 app/views/detour/groups/index.html.erb
detour-0.0.9 app/views/detour/groups/index.html.erb
detour-0.0.7 app/views/detour/groups/index.html.erb
detour-0.0.6 app/views/detour/groups/index.html.erb
detour-0.0.5 app/views/detour/groups/index.html.erb