Sha256: 99a74d1df7a753f2bae926c9a4c5696f6e1d43bad042cd68b37a632b3f62996a

Contents?: true

Size: 1.21 KB

Versions: 8

Compression:

Stored size: 1.21 KB

Contents

<%= form_for(@group) do |f| %>
  <div class="small-12 columns">
    <%= f.submit 'Save', class: 'success button' %>
    <%= link_to 'Back', groups_path, class: 'secondary hollow button' %>
    <% unless @group.new_record? %>
      <%= link_to "Records (#{@group.users.size})", users_path(group: @group.id), class: 'hollow button warning' %>
      <%= link_to "Metafields (#{@group.metafields.size})", group_metafields_path(@group), class: 'hollow button' %>
      <%= link_to "Media (#{@group.media.size})", group_media_path(@group), class: 'hollow button alert' %>
    <% end %>
  </div>

  <% if @group.errors.any? %>
    <div class="small-12 columns">
      <div class="callout warning">
        <h5><%= pluralize(@group.errors.count, 'error') %> prohibited this content from being saved:</h5>

        <ul>
          <% @group.errors.full_messages.each do |message| %>
            <li><%= message %></li>
          <% end %>
        </ul>
      </div>
    </div>
  <% end %>

  <div class="small-12 columns">
    <%= f.label :title %>
    <%= f.text_field :title %>
  </div>

  <% unless @group.new_record? %>
    <div class="small-12 columns">
      <%= f.label :slug %>
      <%= f.text_field :slug %>
    </div>
  <% end %>
<% end %>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
guts-1.3.2 app/views/guts/groups/_form.html.erb
guts-1.3.1 app/views/guts/groups/_form.html.erb
guts-1.3.0 app/views/guts/groups/_form.html.erb
guts-1.2.2 app/views/guts/groups/_form.html.erb
guts-1.2.1 app/views/guts/groups/_form.html.erb
guts-1.2.0 app/views/guts/groups/_form.html.erb
guts-1.1.1 app/views/guts/groups/_form.html.erb
guts-1.1.0 app/views/guts/groups/_form.html.erb