Sha256: 96e5582399e7b09d5c05659df8b42ff1a672ba6d3eb6dd1c92f3c7d928056354
Contents?: true
Size: 1.2 KB
Versions: 1
Compression:
Stored size: 1.2 KB
Contents
<%= form_for(@option) do |f| %> <div class="small-12 columns"> <%= f.submit('Save', class: 'success button') if can?(:update, Guts::Option) || can?(:create, Guts::Option) %> <%= link_to 'Back', options_path, class: 'secondary hollow button' %> </div> <% if @option.errors.any? %> <div class="small-12 columns"> <div class="callout warning"> <h5><%= pluralize(@option.errors.count, 'error') %> prohibited this content from being saved:</h5> <ul> <% @option.errors.full_messages.each do |message| %> <li><%= message %></li> <% end %> </ul> </div> </div> <% end %> <% if notice %> <div class="small-12 columns"> <div class="callout success notice"> <p><%= notice %></p> </div> </div> <% end %> <div class="small-12 columns"> <%= f.label :key %> <%= f.text_field :key, required: true %> <p class="help-text">Keys must be all lowercase with no spaces or special characters (example: facebook_url)</p> </div> <div class="small-12 columns"> <%= f.label :value %> <%= f.text_area :value %> <%= toggle_tinymce 'option_value' %> </div> <%= current_site_form_field f %> <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
guts-2.1.0 | app/views/guts/options/_form.html.erb |