Sha256: 5f2574a735b7ca21ec87bfe590bd46235b87eb4bc2d24095d61230b210586120

Contents?: true

Size: 627 Bytes

Versions: 11

Compression:

Stored size: 627 Bytes

Contents

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

      <ul>
      <% @post.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>
  <%= f.label :title %>
  <%= f.text_field :title %>
  <%= f.label :tag %>
  <%= f.text_field :tag %>
  <%= f.label :author %>
  <%= f.text_field :author %>
  <%= f.label :content %>
  <%= f.text_area :content %>
  <%= f.submit 'Publish' %>
  <%= f.submit 'Save Draft' %>
<% end %>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
fuel-0.3.1 app/views/fuel/admin/posts/_form.html.erb
fuel-0.3.0 app/views/fuel/admin/posts/_form.html.erb
fuel-0.2.9 app/views/fuel/admin/posts/_form.html.erb
fuel-0.2.8 app/views/fuel/admin/posts/_form.html.erb
fuel-0.2.7 app/views/fuel/admin/posts/_form.html.erb
fuel-0.2.6 app/views/fuel/admin/posts/_form.html.erb
fuel-0.2.5 app/views/fuel/admin/posts/_form.html.erb
fuel-0.2.4 app/views/fuel/admin/posts/_form.html.erb
fuel-0.2.3 app/views/fuel/admin/posts/_form.html.erb
fuel-0.2.2 app/views/fuel/admin/posts/_form.html.erb
fuel-0.2.1 app/views/fuel/admin/posts/_form.html.erb