Sha256: 80f58719d9fa78969924838aa9fec3eed0fce329720911f12b5aee65ebf203d7

Contents?: true

Size: 720 Bytes

Versions: 2

Compression:

Stored size: 720 Bytes

Contents

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

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

  <div class="field">
    <%= f.label :name %><br>
    <%= f.text_field :name %>
  </div>
  <div class="field">
    <%= f.label :desc %><br>
    <%= f.text_area :desc %>
  </div>
  <div class="field">
    <%= f.label :publish_at %><br>
    <%= f.date_select :publish_at %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
adminscaffold-1.0.1 test/dummy/app/views/admin/books/_form.html.erb
adminscaffold-1.0.0 test/dummy/app/views/admin/books/_form.html.erb