Sha256: f2107aed2270fd95e1c123db7fcc6530e1858021d41236be389a98cea2b24c94

Contents?: true

Size: 1.21 KB

Versions: 3

Compression:

Stored size: 1.21 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 %>
    </div>
  <% end %>

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
guts-1.3.5 app/views/guts/navigations/_form.html.erb
guts-1.3.4 app/views/guts/navigations/_form.html.erb
guts-1.3.3 app/views/guts/navigations/_form.html.erb