Sha256: a7b58ac57310ac2279b54089c3a1ae7dfae5ef65cddc2ff0c515a10cb373d584
Contents?: true
Size: 1.4 KB
Versions: 1
Compression:
Stored size: 1.4 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 MetaReports::Base::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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
meta_reports-0.0.5 | lib/generators/meta_reports/templates/views/_form.html.erb |