Skip to content

Commit

Permalink
Use HTML not macro for form example
Browse files Browse the repository at this point in the history
  • Loading branch information
quis committed Oct 4, 2018
1 parent 49f599d commit 6e94e90
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions docs/documentation/using-notify.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,17 +74,14 @@ var NotifyClient = require('notifications-node-client').NotifyClient,
Make a page with a form to collect the user’s email address. For
example:
```
{% from "input/macro.njk" import govukInput %}
<form class="form" method="post">
{{ govukInput({
label: {
text: "Email address"
},
id: "emailAddress",
name: "emailAddress"
}) }}
<div class="govuk-form-group">
<label class="govuk-label" for="email-address">
Email address
</label>
<input class="govuk-input" id="email-address" name="emailAddress" type="text">
</div>
<button class="govuk-button">Continue</button>
Expand Down

0 comments on commit 6e94e90

Please sign in to comment.