Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add template pages for content and questions #369

Merged
merged 2 commits into from
Apr 4, 2017

Conversation

edwardhorsford
Copy link
Contributor

Add two new template pages to the kit.

For links (back links, action urls, etc), I've gone with href="/url/of/previous/page". Does this seem correct?

Using POSTs

These templates work with #340 and start moving us towards using POSTs. That PR should probably get merged first.

Template content page

A basic content page - useful for things like:

  • eligible / ineligible pages
  • 404 / error pages

Looks like:
screen shot 2017-04-03 at 17 12 00

Template question page blank

A basic question page, containing:

  • Heading
  • Continue button
  • Form element with POST method

Will be useful for people grabbing snippets from Elements.

Looks like:
screen shot 2017-04-03 at 17 12 18

@joelanman
Copy link
Contributor

for prototyping, I'd use onclick="javascript:window.history.back()" for back links - much less effort to keep updating them, and they can easily break if you use URLs and change page orders

@edwardhorsford
Copy link
Contributor Author

@joelanman could we look at the javascript back as a separate PR? Other pages in the kit do it manually, and would be better to tackle in one go.

@edwardhorsford
Copy link
Contributor Author

Updated index:
screen shot 2017-04-03 at 17 36 40

@joelanman
Copy link
Contributor

I think the examples are in rough order of where they appear in a transaction, so maybe Content page and Question pages should come just after Task list?

Heading goes here
</h1>

<p>This is the a paragraph of text. It explains in more detail what has happened and wraps across several lines.</p>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo - the a


<p>[Insert question content here]</p>

<p>[See <a href="http://govuk-elements.herokuapp.com/form-elements/">GOV.UK Elements</a> for examples]</p>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change to https

@joelanman
Copy link
Contributor

Looks good, thanks!

@edwardhorsford edwardhorsford merged commit 7f40c22 into master Apr 4, 2017
@joelanman joelanman mentioned this pull request Apr 5, 2017
@gemmaleigh gemmaleigh deleted the add_content_question_pages branch June 16, 2017 06:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants