Skip to content

Commit

Permalink
Add required fields and update submit button label
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmir authored and oliverguenther committed Jan 20, 2025
1 parent b8666f5 commit 4f29680
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
)) do
if @meeting.persisted?
I18n.t(:button_save)
elsif @meeting.is_a?(RecurringMeeting)
I18n.t(:label_recurring_meeting_series_create)
else
I18n.t(:label_meeting_create)
end
Expand Down
1 change: 1 addition & 0 deletions modules/meeting/app/forms/recurring_meeting/end_after.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class RecurringMeeting::EndAfter < ApplicationForm
form do |meeting_form|
meeting_form.select_list(
name: "end_after",
required: true,
label: I18n.t("activerecord.attributes.recurring_meeting.end_after"),
data: {
target_name: "end_after",
Expand Down
1 change: 1 addition & 0 deletions modules/meeting/app/forms/recurring_meeting/frequency.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class RecurringMeeting::Frequency < ApplicationForm
form do |meeting_form|
meeting_form.select_list(
name: "frequency",
required: true,
label: I18n.t("activerecord.attributes.recurring_meeting.frequency"),
data: {
target_name: "frequency",
Expand Down
1 change: 1 addition & 0 deletions modules/meeting/app/forms/recurring_meeting/interval.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class RecurringMeeting::Interval < ApplicationForm
form do |meeting_form|
meeting_form.text_field(
name: :interval,
required: true,
type: :number,
step: 1,
max: RecurringMeeting::MAX_INTERVAL,
Expand Down
1 change: 1 addition & 0 deletions modules/meeting/config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ en:
label_recurring_meeting_more_past: "There are %{count} more past meetings."
label_recurring_meeting_more_past_singular: "There is %{count} more past meeting."
label_recurring_meeting_show_more: "Show more"
label_recurring_meeting_series_create: "Create meeting series"
label_recurring_meeting_series_edit: "Edit meeting series"
label_recurring_meeting_series_delete: "Delete meeting series"
label_my_meetings: "My meetings"
Expand Down

0 comments on commit 4f29680

Please sign in to comment.