Merge pull request #3538 from alphagov/start-time-hint

Make start time explicit when previewing a broadcast
This commit is contained in:
Chris Hill-Scott
2020-07-29 09:15:21 +01:00
committed by GitHub
3 changed files with 12 additions and 4 deletions

View File

@@ -993,7 +993,7 @@ class ChooseBroadcastDurationForm(StripWhitespaceForm):
)
finishes_at = RadioField(
'When should this broadcast end?',
'End time',
)

View File

@@ -24,11 +24,12 @@
field,
hint=None,
wrapping_class='form-group',
show_now_as_default=True
show_now_as_default=True,
bold_legend=False
) %}
<div class="{{ wrapping_class }} {% if field.errors %} form-group-error{% endif %}">
<fieldset>
<legend class="form-label">
<legend class="form-label {% if bold_legend %}govuk-!-font-weight-bold{% endif %}">
{{ field.label.text }}
{% if field.errors %}
<span class="error-message" data-module="track-error" data-error-type="{{ field.errors[0] }}" data-error-label="{{ field.name }}">

View File

@@ -29,9 +29,16 @@
{{ broadcast_message.template|string }}
{% call form_wrapper() %}
<h3 class="govuk-heading-s govuk-!-margin-top-6 govuk-!-margin-bottom-1">
Start time
</h3>
<p class="govuk-body govuk-!-margin-bottom-4">
Your broadcast will start when its approved by another member of your team.
</p>
{{ radio_select(
form.finishes_at,
show_now_as_default=False
show_now_as_default=False,
bold_legend=True
) }}
{{ page_footer('Submit for approval') }}
{% endcall %}