Expose Conference.code_of_conduct

This commit is contained in:
Henne Vogelsang 2024-06-07 17:35:41 +02:00
parent 85149dc837
commit 9f1e877ea0
No known key found for this signature in database
GPG key ID: 97DDB66BDAF8D4D6
10 changed files with 33 additions and 31 deletions

View file

@ -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'