Expose Conference.code_of_conduct
This commit is contained in:
parent
85149dc837
commit
9f1e877ea0
10 changed files with 33 additions and 31 deletions
|
|
@ -1,16 +1,14 @@
|
|||
- unless @conference.code_of_conduct.blank?
|
||||
- code_of_conduct_link = link_to 'Code of Conduct', '#',
|
||||
data: { toggle: 'modal', target: '#modal-code-of-conduct'}
|
||||
- if @conference.code_of_conduct.present?
|
||||
- if @registration.accepted_code_of_conduct
|
||||
= icon 'fa-solid', 'square-check'
|
||||
I have read and accepted the
|
||||
= code_of_conduct_link
|
||||
= link_to "Code of Conduct", code_of_conduct_conference_path(@conference.short_title)
|
||||
- else
|
||||
.checkbox
|
||||
%label
|
||||
= f.check_box :accepted_code_of_conduct, required: true
|
||||
I have read and accept the
|
||||
= code_of_conduct_link
|
||||
= link_to "Code of Conduct", code_of_conduct_conference_path(@conference.short_title)
|
||||
%abbr{title: 'This field is required'} *
|
||||
|
||||
- if @conference.program.events.with_registration_open.any? || @registration.events.any?
|
||||
|
|
@ -26,5 +24,3 @@
|
|||
- if event.scheduled?
|
||||
(Scheduled on: #{event.time.to_date})
|
||||
%br
|
||||
|
||||
= render 'conferences/code_of_conduct'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue