mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-16 20:49:00 -04:00
Merge pull request #3581 from alphagov/remove-end-time
Remove choice of ‘End time’ from broadcast journey
This commit is contained in:
@@ -1387,24 +1387,6 @@ class ChooseTimeForm(StripWhitespaceForm):
|
||||
)
|
||||
|
||||
|
||||
class ChooseBroadcastDurationForm(StripWhitespaceForm):
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
super().__init__(*args, **kwargs)
|
||||
self.finishes_at.choices = [
|
||||
get_time_value_and_label(hour) for hour in get_next_hours_until(
|
||||
get_furthest_possible_scheduled_time()
|
||||
)
|
||||
]
|
||||
self.finishes_at.categories = get_next_days_until(
|
||||
get_furthest_possible_scheduled_time()
|
||||
)
|
||||
|
||||
finishes_at = RadioField(
|
||||
'End time',
|
||||
)
|
||||
|
||||
|
||||
class CreateKeyForm(StripWhitespaceForm):
|
||||
def __init__(self, existing_keys, *args, **kwargs):
|
||||
self.existing_key_names = [
|
||||
|
||||
Reference in New Issue
Block a user