Display Committee Review on #show and #edit.

Also show submission_text on the #show page for authors.
This commit is contained in:
Michael Ball 2021-04-16 00:33:47 -07:00
parent 0e74c2e296
commit 9786843eac
3 changed files with 33 additions and 7 deletions

View file

@ -28,11 +28,18 @@
= render 'proposals/submission_type_content_form', f: f, program: @program
-# TODO-SNAPCON: Extract this to be a `conference_committee_role?`
- read_only = !current_user.has_any_role? :admin, { name: :organizer, resource: @conference }, { name: :cfp, resource: @conference }
- if current_user.has_any_role?(:admin, { name: :organizer, resource: @conference }, { name: :cfp, resource: @conference })
%br
= f.input :committee_review,
input_html: { rows: 5, data: { provide: 'markdown' }, readonly: read_only },
input_html: { rows: 5, data: { provide: 'markdown' } },
hint: markdown_hint('This field is shared with the submission authors.')
- elsif @event.committee_review.present?
%br
%strong.control-label Committee Review
%small
Use this feedback to improve your submission.
.well
= markdown(@event.committee_review)
- if @program.cfp&.enable_registrations?
= f.inputs 'Enable pre-registration' do