Sha256: 12b2cdc42627dd0c2b2158ca59ad63504bd593186ddb06b4561c76457caff470

Contents?: true

Size: 875 Bytes

Versions: 3

Compression:

Stored size: 875 Bytes

Contents

<%= form_with model: item, scope: :item, url: path do |form| %>
  <%= form.hidden_field :container_type %>
  <%= form.hidden_field :container_id %>
  <%= form.hidden_field :type %>

  <%= tag.div class: "errors" do %>
    <% item.errors.full_messages.each do |error| %>
      <li class="error"><%= error %></li>
    <% end %>
  <% end if item.errors.any? %>

  <div class="field">
    <%= form.label :heading %>
    <%= form.text_field :heading %>
  </div>

  <div class="field">
    <%= form.label :show_heading %>
    <%= form.check_box :show_heading %>
  </div>

  <div class="field">
    <%= form.label :background %>
    <%= form.select :background, Katalyst::Content.config.backgrounds %>
  </div>

  <div class="field">
    <%= form.label :visible %>
    <%= form.check_box :visible %>
  </div>

  <%= form.submit "Done" %>
  <%= link_to "Discard", :back %>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
katalyst-content-0.1.2 app/views/katalyst/content/items/_item.html+form.erb
katalyst-content-0.1.1 app/views/katalyst/content/items/_item.html+form.erb
katalyst-content-0.1.0 app/views/katalyst/content/items/_item.html+form.erb