Merge pull request #3563 from hennevogel/bugfix/3552

Fix code of conduct during the registration
This commit is contained in:
Henne Vogelsang 2025-01-30 17:24:49 +01:00 committed by GitHub
commit bb59c9a4d9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 10 deletions

View file

@ -1,8 +1,11 @@
- if @conference.code_of_conduct.present? - if @conference.code_of_conduct.present?
%h4
Code of Conduct for
= @conference.short_title
= markdown @conference.code_of_conduct
- if @registration.accepted_code_of_conduct - if @registration.accepted_code_of_conduct
= icon 'fa-solid', 'square-check' = icon 'fa-solid', 'square-check'
I have read and accepted the I have read and accepted the Code of Conduct
= link_to "Code of Conduct", code_of_conduct_conference_path(@conference.short_title)
- else - else
.checkbox .checkbox
%label %label

View file

@ -21,23 +21,20 @@
.fa-stack .fa-stack
.fa-solid.fa-square-dashed .fa-solid.fa-square-dashed
.fa-solid.fa-handshake .fa-solid.fa-handshake
Code of Conduct = link_to code_of_conduct_conference_path(@conference.short_title) do
Code of Conduct
%ul.fa-ul %ul.fa-ul
- if @registration.accepted_code_of_conduct - if @registration.accepted_code_of_conduct
%li.text-info %li.text-info
%span.fa-li %span.fa-li
= icon('fa-solid', 'check') = icon('fa-solid', 'check')
You have accepted the You have accepted the Code of Conduct
= link_to 'Code of Conduct', '#',
data: { toggle: 'modal', target: '#modal-code-of-conduct'}
- else - else
%li.text-warning %li.text-warning
%span.fa-li %span.fa-li
= icon('fa-solid', 'circle-exclamation') = icon('fa-solid', 'circle-exclamation')
You need to accept the You need to accept the Code of Conduct. Please
= link_to 'Code of Conduct', '#', = link_to 'edit your Registration.', edit_conference_conference_registration_path(@conference.short_title), disabled: @conference.end_date < Date.today
data: { toggle: 'modal', target: '#modal-code-of-conduct'}
= render 'conferences/code_of_conduct'
- if @conference.surveys.for_registration.any? - if @conference.surveys.for_registration.any?
.row .row
.col-md-12 .col-md-12