forked from alphagov/govuk_elements
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This appears in more than one place, create a snippet to keep both examples up-to-date. Also create a date pattern page.
- Loading branch information
Gemma Leigh
committed
Dec 1, 2014
1 parent
7ae9ca1
commit bb6f759
Showing
5 changed files
with
64 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
|
||
{{<govuk_template}} | ||
|
||
{{$cookieMessage}} | ||
{{>cookie_message}} | ||
{{/cookieMessage}} | ||
|
||
{{$head}} | ||
{{>head}} | ||
{{/head}} | ||
|
||
{{$propositionHeader}} | ||
{{>propositional_navigation}} | ||
{{/propositionHeader}} | ||
|
||
{{$headerClass}}with-proposition{{/headerClass}} | ||
|
||
{{$content}} | ||
<main id="content" role="main"> | ||
|
||
<a href="/" class="example-back-link">Back to GOV.UK elements</a> | ||
|
||
<h1 class="heading-xlarge">Date test page</h1> | ||
|
||
<!-- Date of birth --> | ||
{{> form_date }} | ||
|
||
</main><!-- /#content --> | ||
{{/content}} | ||
|
||
{{$bodyEnd}} | ||
{{>scripts}} | ||
{{/bodyEnd}} | ||
|
||
{{/govuk_template}} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<div class="form-group"> | ||
<fieldset> | ||
<legend class="form-label-bold">Date of birth</legend> | ||
|
||
<div class="form-date"> | ||
|
||
<p class="form-hint">For example, 08 04 2014</p> | ||
|
||
<div class="form-group form-group-day"> | ||
<label for="dob-day">Day</label> | ||
<input class="form-control" id="dob-day" type="number" pattern="[0-9]*" min="0" max="31"> | ||
</div> | ||
|
||
<div class="form-group form-group-month"> | ||
<label for="dob-month">Month</label> | ||
<input class="form-control" id="dob-month" type="number" pattern="[0-9]*" min="0" max="12"> | ||
</div> | ||
|
||
<div class="form-group form-group-year"> | ||
<label for="dob-year">Year</label> | ||
<input class="form-control" id="dob-year" type="number" pattern="[0-9]*" min="0" max="2014"> | ||
</div> | ||
</div> | ||
|
||
</fieldset> | ||
</div> |