Skip to content

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

Update recurring meeting form for create and edit

Mir Bhatiab762c8801b21
diff --git a/modules/meeting/app/components/meetings/index/form_component.html.erb b/modules/meeting/app/components/meetings/index/form_component.html.erb
index f54aca3dff8..a08ea8fdcb4 100644
--- a/modules/meeting/app/components/meetings/index/form_component.html.erb
+++ b/modules/meeting/app/components/meetings/index/form_component.html.erb
@@ -29,6 +29,12 @@
end
end
+ if @meeting.is_a?(RecurringMeeting) && @meeting.persisted?
+ modal_body.with_row(mb: 3) do
+ render(Meetings::EmailUpdatesBannerComponent.new(@meeting))
+ end
+ end
+
if @project.nil?
modal_body.with_row(mb: 3) do
render(Meeting::ProjectAutocompleter.new(f))
@@ -117,33 +123,35 @@
end
end
- modal_body.with_row(mt: 3) do
- render(Meeting::SendEmailUpdates.new(f, meeting: @meeting))
- end
+ if (@meeting.is_a?(RecurringMeeting) && [email protected]?) || @meeting.is_a?(Meeting)
+ modal_body.with_row(mt: 3) do
+ render(Meeting::SendEmailUpdates.new(f, meeting: @meeting))
+ end
- modal_body.with_row(
- mt: 3,
- data: {
- "show-when-checked-target-name": "notification-banner",
- "show-when-checked-target": "effect",
- "show-when": "checked",
- visibility_class: "d-none"
- }
- ) do
- render(Meetings::EmailUpdatesBannerComponent.new(@meeting, override: :enabled))
- end
+ modal_body.with_row(
+ mt: 3,
+ data: {
+ "show-when-checked-target-name": "notification-banner",
+ "show-when-checked-target": "effect",
+ "show-when": "checked",
+ visibility_class: "d-none"
+ }
+ ) do
+ render(Meetings::EmailUpdatesBannerComponent.new(@meeting, override: :enabled))
+ end
- modal_body.with_row(
- mt: 3,
- classes: "d-none",
- data: {
- "show-when-checked-target-name": "notification-banner",
- "show-when-checked-target": "effect",
- "show-when": "unchecked",
- visibility_class: "d-none"
- }
- ) do
- render(Meetings::EmailUpdatesBannerComponent.new(@meeting, override: :muted))
+ modal_body.with_row(
+ mt: 3,
+ classes: "d-none",
+ data: {
+ "show-when-checked-target-name": "notification-banner",
+ "show-when-checked-target": "effect",
+ "show-when": "unchecked",
+ visibility_class: "d-none"
+ }
+ ) do
+ render(Meetings::EmailUpdatesBannerComponent.new(@meeting, override: :muted))
+ end
end
if @copy_from