Skip to content

Commit

Permalink
Fixes issues where the wrong values are encoded in frontend
Browse files Browse the repository at this point in the history
Fixes an issue where the wrong values are encoded in the frontend.  Its
trying to set specific point in time formats as all caps when they
shouldn't be.
  • Loading branch information
j-maynard committed Dec 16, 2024
1 parent f15b587 commit 3f380d8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/views/publish/point-in-time-chooser.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<fieldset class="govuk-fieldset">
<div class="govuk-radios" data-module="govuk-radios">
<div class="govuk-radios__item">
<input class="govuk-radios__input" id="quarter-format-2" name="dateFormat" type="radio" value="DD/MM/YYYY">
<input class="govuk-radios__input" id="quarter-format-2" name="dateFormat" type="radio" value="dd/MM/yyyy">
<label class="govuk-label govuk-radios__label" for="quarter-format-2">
DD/MM/YYYY
</label>
Expand All @@ -30,7 +30,7 @@
</div>
</div>
<div class="govuk-radios__item">
<input class="govuk-radios__input" id="quarter-format-3" name="dateFormat" type="radio" value="DD-MM-YYYY">
<input class="govuk-radios__input" id="quarter-format-3" name="dateFormat" type="radio" value="dd-MM-yyyy">
<label class="govuk-label govuk-radios__label" for="quarter-format-3">
DD-MM-YYYY
</label>
Expand All @@ -39,7 +39,7 @@
</div>
</div>
<div class="govuk-radios__item">
<input class="govuk-radios__input" id="quarter-format-4" name="dateFormat" type="radio" value="-YYYY-MM-DD">
<input class="govuk-radios__input" id="quarter-format-4" name="dateFormat" type="radio" value="-yyyy-MM-dd">
<label class="govuk-label govuk-radios__label" for="quarter-format-4">
YYYY-MM-DD
</label>
Expand All @@ -48,7 +48,7 @@
</div>
</div>
<div class="govuk-radios__item">
<input class="govuk-radios__input" id="quarter-format-5" name="dateFormat" type="radio" value="YYYYMMDD">
<input class="govuk-radios__input" id="quarter-format-5" name="dateFormat" type="radio" value="yyyyMMd d">
<label class="govuk-label govuk-radios__label" for="quarter-format-5">
YYYYMMDD
</label>
Expand Down

0 comments on commit 3f380d8

Please sign in to comment.