Skip to content

Commit

Permalink
Move templates up a level
Browse files Browse the repository at this point in the history
  • Loading branch information
frankieroberto committed Nov 26, 2024
1 parent 16d4dd9 commit 9729500
Show file tree
Hide file tree
Showing 11 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion app/views/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ <h2 class="nhsuk-heading-l">
</ul>

<p>
There is a selection of <a href="/example-templates">example page templates</a> in <strong>/lib/example-templates/views/</strong>. To use these, copy and paste them into <strong>/app/views/</strong>.
There is a selection of <a href="/example-templates">example page templates</a> in <strong>/lib/example-templates/</strong>. To use these, copy and paste them into <strong>/app/views/</strong>.
</p>
<!-- End of content -->

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ <h2 class="nhsuk-heading-m">
Your details with be sent to Rose Medical Practice to begin your registration.
</p>

<a href="/templates/confirmation-page" class="nhsuk-button">
<a href="/example-templates/confirmation-page" class="nhsuk-button">
Accept and send registration
</a>

Expand Down
File renamed without changes.
14 changes: 7 additions & 7 deletions lib/example-templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,18 @@ <h1>Page templates</h1>
<h2>Content pages</h2>

<ul>
<li><a href="/templates/content-page">Blank content page</a></li>
<li><a href="/templates/mini-hub">Mini hub</a></li>
<li><a href="/example-templates/content-page">Blank content page</a></li>
<li><a href="/example-templates/mini-hub">Mini hub</a></li>
</ul>

<h2>Transactional journeys</h2>

<ul>
<li><a href="/templates/blank-transactional">Blank transactional</a></li>
<li><a href="/templates/start-page">Start page</a></li>
<li><a href="/templates/question-page">Question page</a></li>
<li><a href="/templates/check-your-answers">Check your answers</a></li>
<li><a href="/templates/confirmation-page">Confirmation</a></li>
<li><a href="/example-templates/blank-transactional">Blank transactional</a></li>
<li><a href="/example-templates/start-page">Start page</a></li>
<li><a href="/example-templates/question-page">Question page</a></li>
<li><a href="/example-templates/check-your-answers">Check your answers</a></li>
<li><a href="/example-templates/confirmation-page">Confirmation</a></li>
</ul>
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@ <h1>
{{ contentsList({
items: [
{
href: "/templates/mini-hub/page-1",
href: "/example-templates/mini-hub/page-1",
text: "Main page",
current: "true"
},
{
href: "/templates/mini-hub/page-2",
href: "/example-templates/mini-hub/page-2",
text: "Page two"
},
{
href: "/templates/mini-hub/page-3",
href: "/example-templates/mini-hub/page-3",
text: "Page three"
}
]
Expand All @@ -51,7 +51,7 @@ <h1>
</p>

{{ pagination({
"nextUrl": "/templates/mini-hub/page-2",
"nextUrl": "/example-templates/mini-hub/page-2",
"nextPage": "Page two"
}) }}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
text: "Home"
}
],
href: "/templates/mini-hub",
href: "/example-templates/mini-hub",
text: "Main page"
}) }}
{% endblock %}
Expand All @@ -31,16 +31,16 @@ <h1>
{{ contentsList({
items: [
{
href: "/templates/mini-hub",
href: "/example-templates/mini-hub",
text: "Main page"
},
{
href: "/templates/mini-hub/page-2",
href: "/example-templates/mini-hub/page-2",
text: "Page two",
current: "true"
},
{
href: "/templates/mini-hub/page-3",
href: "/example-templates/mini-hub/page-3",
text: "Page three"
}
]
Expand All @@ -57,9 +57,9 @@ <h1>
</p>

{{ pagination({
"previousUrl": "/templates/mini-hub",
"previousUrl": "/example-templates/mini-hub",
"previousPage": "Main page",
"nextUrl": "/templates/mini-hub/page-3",
"nextUrl": "/example-templates/mini-hub/page-3",
"nextPage": "Page two"
}) }}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
text: "Home"
}
],
href: "/templates/mini-hub",
href: "/example-templates/mini-hub",
text: "Main page"
}) }}
{% endblock %}
Expand All @@ -31,15 +31,15 @@ <h1>
{{ contentsList({
items: [
{
href: "/templates/mini-hub",
href: "/example-templates/mini-hub",
text: "Main page"
},
{
href: "/templates/mini-hub/page-2",
href: "/example-templates/mini-hub/page-2",
text: "Page two"
},
{
href: "/templates/mini-hub/page-3",
href: "/example-templates/mini-hub/page-3",
text: "Page three",
current: "true"
}
Expand All @@ -57,7 +57,7 @@ <h1>
</p>

{{ pagination({
"previousUrl": "/templates/mini-hub/page-2",
"previousUrl": "/example-templates/mini-hub/page-2",
"previousPage": "Page two"
}) }}

Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 9729500

Please sign in to comment.