Sha256: a10c9241aaab7f072113ec22c829f5a0dbf22872e42e4123d1c321c5500ae499

Contents?: true

Size: 951 Bytes

Versions: 8

Compression:

Stored size: 951 Bytes

Contents

<%= form_for(@option) do |f| %>
  <div class="small-12 columns">
    <%= f.submit 'Save', class: 'success button' %>
    <%= 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 %>

  <div class="small-12 columns">
    <%= f.label :key %>
    <%= f.text_field :key %>
    <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 %>
  </div>

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

Version data entries

8 entries across 8 versions & 1 rubygems

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