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