OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Hide attended column in participants in template
Oliver Günther1abfbc9f32a6
diff --git a/modules/meeting/app/components/meetings/side_panel/participants_dialog.html.erb b/modules/meeting/app/components/meetings/side_panel/participants_dialog.html.erbindex 2530eaa4a4f..5fd081e9c14 100644--- a/modules/meeting/app/components/meetings/side_panel/participants_dialog.html.erb+++ b/modules/meeting/app/components/meetings/side_panel/participants_dialog.html.erb@@ -24,8 +24,10 @@render(Primer::Beta::Text.new(font_weight: :emphasized)) { t("description_invite").capitalize }end- header.with_column(style: "width: 90px;", text_align: :center) do- render(Primer::Beta::Text.new(font_weight: :emphasized)) { t("description_attended").capitalize }+ unless @meeting.template?+ header.with_column(style: "width: 90px;", text_align: :center) do+ render(Primer::Beta::Text.new(font_weight: :emphasized)) { t("description_attended").capitalize }+ endendendend@@ -71,12 +73,14 @@# unchecked_value: ""# ))end- existing_participant.with_column(style: "width: 90px;", text_align: :center) do- styled_check_box_tag "meeting[participants_attributes][][attended]",- value = 1,- checked = participant.attended?,- id: "checkbox_attended_#{participant.user.id}",- disabled: [email protected]?+ unless @meeting.template?+ existing_participant.with_column(style: "width: 90px;", text_align: :center) do+ styled_check_box_tag "meeting[participants_attributes][][attended]",+ value = 1,+ checked = participant.attended?,+ id: "checkbox_attended_#{participant.user.id}",+ disabled: [email protected]?+ endendendend@@ -99,12 +103,14 @@disabled: [email protected]?end- new_participant.with_column(style: "width: 90px;", text_align: :center) do- styled_check_box_tag "meeting[participants_attributes][][attended]",- value = "1",- checked = false,- id: "checkbox_attended_#{user.id}",- disabled: [email protected]?+ unless @meeting.template?+ new_participant.with_column(style: "width: 90px;", text_align: :center) do+ styled_check_box_tag "meeting[participants_attributes][][attended]",+ value = "1",+ checked = false,+ id: "checkbox_attended_#{user.id}",+ disabled: [email protected]?+ endendendend