Sha256: 8a3bb1a781b045716a7142871e1839d476eeb01e6f7eeea34eb0cca59269b77e
Contents?: true
Size: 744 Bytes
Versions: 10
Compression:
Stored size: 744 Bytes
Contents
= form_for @report do |f| - if @report.errors.any? #error_explanation h2 = "#{pluralize(@report.errors.count, "error")} prohibited this report from being saved:" ul - @report.errors.full_messages.each do |message| li = message .grid-x.grid-margin-x .cell.medium-6 .field = f.label :city = f.collection_select :city_id, apply_authz_scopes(on: City).order(name: :asc), :id, :name .cell.medium-6 .field = f.label :clearance = f.collection_select :clearance_id, apply_authz_scopes(on: Clearance).order(name: :asc), :id, :name .field = f.label :title = f.text_field :title .field = f.label :body = f.text_area :body .actions = f.submit
Version data entries
10 entries across 10 versions & 1 rubygems