Sha256: ffea2a499abc19304c3aff8325b675c197c1df20a986801a47ed5cbc66409d47

Contents?: true

Size: 1.39 KB

Versions: 4

Compression:

Stored size: 1.39 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="field">
    <% formats = @report.formats %>
    <% for format in Report::FORMATS.sort %>
      <%= check_box_tag "report[formats][]", format, formats.include?(format) %>
      <span class='bold'><%= format.humanize %></span>
      <br />
    <% end %>
    <%= hidden_field_tag "report[formats][]", "" %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
meta_reports-0.1.3 spec/dummy/app/views/reports/_form.html.erb
meta_reports-0.1.2 spec/dummy/app/views/reports/_form.html.erb
meta_reports-0.1.1 spec/dummy/app/views/reports/_form.html.erb
meta_reports-0.1.0 spec/dummy/app/views/reports/_form.html.erb