Sha256: afea310d53a3f7b2692f33309b20bc8cae69bbee5ecf49e4f21d1674853b677d

Contents?: true

Size: 1.02 KB

Versions: 8

Compression:

Stored size: 1.02 KB

Contents

<%= form_for([@object, @metafield]) do |f| %>
  <div class="small-12 columns">
    <%= f.submit 'Save', class: 'success button' %>
    <%= link_to 'Back', url_for([@object, :metafields]), class: 'secondary hollow button' %>
  </div>

  <% if @metafield.errors.any? %>
    <div class="small-12 columns">
      <div class="callout warning">
        <h5><%= pluralize(@metafield.errors.count, 'error') %> prohibited this content from being saved:</h5>

        <ul>
          <% @metafield.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 %>
  </div>

  <div class="small-12 columns">
    <%= f.label :value %>
    <%= f.text_area :value, { class: 'tinymce' } %>
  </div>

  <div class="hide">
    <%= f.text_field :fieldable_id, value: @object.id %>
    <%= f.text_field :fieldable_type, value: @object.class %>
  </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/metafields/_form.html.erb
guts-1.3.1 app/views/guts/metafields/_form.html.erb
guts-1.3.0 app/views/guts/metafields/_form.html.erb
guts-1.2.2 app/views/guts/metafields/_form.html.erb
guts-1.2.1 app/views/guts/metafields/_form.html.erb
guts-1.2.0 app/views/guts/metafields/_form.html.erb
guts-1.1.1 app/views/guts/metafields/_form.html.erb
guts-1.1.0 app/views/guts/metafields/_form.html.erb