Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide attended column in participants in template #17414

Merged
merged 1 commit into from
Dec 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading