Sha256: 80d25ba1794f7b7faed51e5c6bf2979af0c581b3188646bf67131f7dbeb2cf65
Contents?: true
Size: 1.13 KB
Versions: 1
Compression:
Stored size: 1.13 KB
Contents
= form_for @report, role: "form" do |f| = hidden_field_tag "return_path", @return_path .form-group = f.label :name = f.text_field :name, class: "form-control" - if administrator_class .form-group = f.label :administrator_id, "Administrator" = f.select :administrator_id, options_for_select([["Everybody", nil]] + administrator_class.all.map { |x| [x.name, x.id] }, f.object.new_record? ? nil : f.object.administrator_id), class: "form-control" .form-group = f.label :category = f.text_field :category, class: "form-control" .form-group = f.label :description = f.text_area :description, rows: 5, class: 'form-control' .form-group = f.label :scope = f.text_area :scope, rows: 10, class: 'form-control', style: 'font-family: monospace;' .form-group = f.label :columns_yaml, "Columns" = f.text_area :columns_yaml, class: "columns", rows: 20, class: 'form-control', style: 'font-family: monospace;' = f.submit "Save report", class: "btn btn-success" h3 Advanced .checkbox = f.label :has_checklist do = f.check_box :has_checklist, {}, true, false | Has checklist
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
custom_report-0.0.2 | app/views/custom_report/reports/_form.html.slim |