Sha256: 690aa0dde64c274a781ede235b11ac6822354e5feeb265878f4b791d13182bc1

Contents?: true

Size: 1.07 KB

Versions: 8

Compression:

Stored size: 1.07 KB

Contents

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

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

  <div class="field">
    <%= f.label :name %><br />
    <%= f.text_field :name %>
  </div>
  <div class="field">
    <%= f.label :description %><br />
    <%= f.text_area :description %>
  </div>
  <div class="field">
    <%= f.label :title %><br />
    <%= f.text_field :title %>
  </div>
  <div class="field">
    <%= f.label :group %><br />
    <%= f.text_field :group %>
  </div>
  <div class="field">
    <%= f.label :direct %><br />
    <%= f.check_box :direct %>
  </div>
  <div class="field">
    <%= f.label :views %><br />
    <%= f.number_field :views, disabled: true %>
  </div>
  <div class="field">
    <%= f.label :target %><br />
    <%= f.text_field :target %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>

Version data entries

8 entries across 4 versions & 1 rubygems

Version Path
meta_reports-0.0.4 lib/generators/meta_reports/templates/views/_form.html.erb
meta_reports-0.0.4 spec/dummy/app/views/meta_reports/reports/_form.html.erb
meta_reports-0.0.3 lib/generators/meta_reports/templates/views/_form.html.erb
meta_reports-0.0.3 spec/dummy/app/views/meta_reports/reports/_form.html.erb
meta_reports-0.0.2 lib/generators/meta_reports/templates/views/_form.html.erb
meta_reports-0.0.2 spec/dummy/app/views/meta_reports/reports/_form.html.erb
meta_reports-0.0.1 lib/generators/meta_reports/templates/views/_form.html.erb
meta_reports-0.0.1 spec/dummy/app/views/meta_reports/reports/_form.html.erb