Sha256: fca63f0fbe6af605e26a15b402211e99ef1ade99b95a68c001bbb4ec8b6ed319

Contents?: true

Size: 1.25 KB

Versions: 1

Compression:

Stored size: 1.25 KB

Contents

<%= form_for(@navigation) do |f| %>
  <div class="small-12 columns">
    <%= f.submit 'Save', class: 'success button' %>
    <%= link_to 'Back', navigations_path, class: 'secondary hollow button' %>
    <% unless @navigation.new_record? %>
      <%= link_to "Metafields (#{@navigation.metafields.size})", navigation_metafields_path(@navigation), class: 'hollow button' %>
      <%= link_to "Media (#{@navigation.media.size})", navigation_media_path(@navigation), class: 'hollow button warning' %>
    <% end %>
  </div>

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

        <ul>
          <% @navigation.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, required: true %>
  </div>

  <% unless @navigation.new_record? %>
    <div class="small-12 columns">
      <%= f.label :slug %>
      <%= f.text_field :slug, readonly: true, disabled: true %>
    </div>
  <% end %>

  <%= current_site_form_field f %>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
guts-1.3.6 app/views/guts/navigations/_form.html.erb