Sha256: 96ef50367b4176b0e00286657c05447b2927fdfd16aea44de5378ba39626ed1f

Contents?: true

Size: 814 Bytes

Versions: 3

Compression:

Stored size: 814 Bytes

Contents

<%= form_for(@static_block) do |f| %>
  <% if @static_block.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@static_block.errors.count, "error") %> prohibited this static_block from being saved:</h2>

      <ul>
      <% @static_block.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= f.label :title %>
    <%= f.text_field :title %>
  </div>
  <div class="field">
    <%= f.label :content %>
    <%= f.text_area :content, :class => 'wysihtml5' %>
  </div>
  <div class="field">
    <%= f.label :status %>
    <%= f.select(:status, [['Draft', 'draft'], ['Published', 'published']]) %>
  </div>
  <div class="actions">
    <%= f.submit 'Submit', class: "btn btn-primary" %>
  </div>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
static_blocks-0.0.3 app/views/static_blocks/static_blocks/_form.html.erb
static_blocks-0.0.2 app/views/static_blocks/static_blocks/_form.html.erb
static_blocks-0.0.1 app/views/static_blocks/static_blocks/_form.html.erb