Skip to content

Commit

Permalink
Fix errors prototype (#291)
Browse files Browse the repository at this point in the history
  • Loading branch information
bameyrick authored Mar 15, 2019
1 parent 01a8243 commit d9afb07
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
8 changes: 3 additions & 5 deletions src/patterns/error-validation/examples/errors-proto/index.njk
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% extends "./views/layouts/_prototype.njk" %}

{% block prototype_body %}
<div class="page">
<form class="page" action="errors" novalidate>
<div class="page__container container">
<div class="grid">
<div class="grid__col col-8@m">
Expand Down Expand Up @@ -56,14 +56,12 @@
{% from "components/button/_macro.njk" import onsButton %}
{{
onsButton({
"type": 'button',
"text": 'Save and continue',
"classes": 'u-mb-m u-mt-l',
"url": 'errors'
"classes": 'u-mb-m u-mt-l'
})
}}
</div>
</div>
</div>
</div>
</form>
{% endblock %}
10 changes: 1 addition & 9 deletions src/patterns/error-validation/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,7 @@ The prototype provides an example of form validation for missing and invalid inp
</div>
</div>

{% from "components/button/_macro.njk" import onsButton %}
{{
onsButton({
"type": 'button',
"text": 'Launch prototype',
"classes": 'u-mb-m',
"url": '/patterns/error-validation/examples/errors-proto/'
})
}}
<a class="u-mb-m" href="/patterns/error-validation/examples/errors-proto/">Launch prototype</a>

## Research on this component

Expand Down

0 comments on commit d9afb07

Please sign in to comment.