Sha256: 0620801da3d7b1be70a2935a7f3901ab4e1e99f7f65f02438f7a2dc1f8ebbf40

Contents?: true

Size: 632 Bytes

Versions: 10

Compression:

Stored size: 632 Bytes

Contents

- url = report&.id.blank? ? reports_path : report_path(report)

= form_with(model: report, id: dom_id(report), url: url, local: true ) do |form|
  - if report.errors.any?
    %h2= "#{pluralize(report.errors.count, "error")} prohibited this report from being saved:"
    %ul
      - report.errors.each do |error|
        %li= error.full_message
  %div{class: "space-y-2"}
    %div
      %div{class: "text-gray-500 text-xs"}= form.label :reason, "举报原因"
      %div= form.text_field :reason, class: "border p-1 w-full rounded-md"
    %div
      %div= form.submit "确认", class: "px-2 py-0.5 rounded-md bg-gray-800 text-white"

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
beetle_reporter-0.1.10 app/views/beetle_reporter/reports/_form.html.haml
beetle_reporter-0.1.9 app/views/beetle_reporter/reports/_form.html.haml
beetle_reporter-0.1.8 app/views/beetle_reporter/reports/_form.html.haml
beetle_reporter-0.1.7 app/views/beetle_reporter/reports/_form.html.haml
beetle_reporter-0.1.6 app/views/beetle_reporter/reports/_form.html.haml
beetle_reporter-0.1.5 app/views/beetle_reporter/reports/_form.html.haml
beetle_reporter-0.1.4 app/views/beetle_reporter/reports/_form.html.haml
beetle_reporter-0.1.3 app/views/beetle_reporter/reports/_form.html.haml
beetle_reporter-0.1.2 app/views/beetle_reporter/reports/_form.html.haml
beetle_reporter-0.1.1 app/views/beetle_reporter/reports/_form.html.haml