Sha256: 72e6115da381bd7dea36f4858a09d0eed854e5ae1dbce1b2259e6cac8d07bdce
Contents?: true
Size: 1.38 KB
Versions: 5
Compression:
Stored size: 1.38 KB
Contents
<%= form_for(@navigation) do |f| %> <div class="small-12 columns"> <%= f.submit('Save', class: 'success button') if can?(:update, Guts::Navigation) || can?(:create, Guts::Navigation) %> <%= 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') if can? :read, Guts::Metafield %> <%= link_to("Media (#{@navigation.media.size})", navigation_media_path(@navigation), class: 'hollow button warning') if can? :read, Guts::Medium %> <% 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
5 entries across 5 versions & 1 rubygems