Sha256: b659f08fbe3d1ce23cc633c47883902323d073954a9f1585ad0f76f8ad755a73

Contents?: true

Size: 915 Bytes

Versions: 4

Compression:

Stored size: 915 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>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
guts-1.0.8 app/views/guts/options/_form.html.erb
guts-1.0.7 app/views/guts/options/_form.html.erb
guts-1.0.5 app/views/guts/options/_form.html.erb
guts-1.0.3 app/views/guts/options/_form.html.erb