Skip to content

Commit

Permalink
Hide attended column in participants in template
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverguenther committed Dec 9, 2024
1 parent 7686dda commit 1abfbc9
Showing 1 changed file with 20 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
end
end
end
end
Expand Down Expand Up @@ -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]?
end
end
end
end
Expand All @@ -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]?
end
end
end
end
Expand Down

0 comments on commit 1abfbc9

Please sign in to comment.