Skip to content

Commit

Permalink
Update example templates folder reference
Browse files Browse the repository at this point in the history
In the new version of the kit the example templates have moved from `docs/views/examples/` to `lib/example-templates`.

This updates the folder references.

The `/page-templates` page mentions the previous location for anyone using an older version of the kit.
  • Loading branch information
frankieroberto committed Dec 13, 2024
1 parent bcb8f0f commit 5408dc6
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 15 deletions.
4 changes: 0 additions & 4 deletions app/views/how-tos/branching.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ <h1>Branching</h1>

<p><a href="/examples/branching">You can see an example here</a></p>

<p>The code for the example can be found in:</p>

<pre class="app-pre"><code class="app-code">/documentation_routes.js<br>docs/views/examples/branching</code></pre>

</div>
</div>
{% endblock %}
2 changes: 1 addition & 1 deletion app/views/how-tos/build-basic-prototype/branching.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ <h2 id="create-an-ineligible-page">Create an ineligible page</h2>
Make an
<code class="language-markup">{{exampleIneligible.url}}.html</code> page
by copying <code class="language-markup">content-page.html</code> from
<code class="language-markup">docs/views/templates</code> to
<code class="language-markup">lib/example-templates</code> to
<code class="language-markup">app/views</code>.
</p>
</li>
Expand Down
8 changes: 4 additions & 4 deletions app/views/how-tos/build-basic-prototype/create-pages.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<h3 id="create-a-start-page">Create a start page</h3>
<p>
Copy the <code class="language-markup">{{exampleStart.url}}.html</code> file
from <code class="language-markup">docs/views/templates</code> to
from <code class="language-markup">lib/example-templates</code> to
<code class="language-markup">app/views</code>.
</p>
<p>
Expand Down Expand Up @@ -52,7 +52,7 @@ <h3 id="question-pages">Question pages</h3>
<p>
Make 2 copies of the
<code class="language-markup">question-page.html</code> file from
<code class="language-markup">docs/views/templates</code> to
<code class="language-markup">lib/example-templates</code> to
<code class="language-markup">app/views</code>.
</p>
<p>Rename the 2 file copies to:</p>
Expand Down Expand Up @@ -91,7 +91,7 @@ <h3 id="{{exampleCheckAnswers.url}}-page">Check answers page</h3>
<p>
Copy the
<code class="language-markup">{{exampleCheckAnswers.url}}.html</code> file
from <code class="language-markup">docs/views/templates</code> to
from <code class="language-markup">lib/example-templates</code> to
<code class="language-markup">app/views</code>.
</p>
<p>
Expand All @@ -106,7 +106,7 @@ <h3 id="confirmation-page">Confirmation page</h3>
<p>
Copy the
<code class="language-markup">{{exampleConfirmation.url}}.html</code> file
from <code class="language-markup">docs/views/templates</code> to
from <code class="language-markup">lib/example-templates</code> to
<code class="language-markup">app/views</code>.
</p>
<p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ <h2 class="nhsuk-heading-m">Overview of folders in the prototype kit</h2>
example, if a user should go to one page or another based on their answers (we'll cover this later)
</li>
<li>
<code class="language-markup">/docs/views/templates</code> has template
<code class="language-markup">/lib/example-templates</code> has template
pages for you to copy into your prototype
</li>
</ul>
Expand Down
4 changes: 0 additions & 4 deletions app/views/how-tos/passing-data-page.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ <h1>Passing data page to page</h1>

<p><a href="/examples/passing-data/passing-data-question-name">You can see an example here</a></p>

<p>The code for the example can be found in:</p>

<pre class="app-pre"><code>docs/views/examples/passing-data</code></pre>

<h2>How to use</h2>

<p>The kit stores data from inputs using the name attribute of the input.</p>
Expand Down
4 changes: 3 additions & 1 deletion app/views/page-templates.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@

<h1 class="nhsuk-heading-xl">Page templates</h1>

<p>You can find some example templates for pages in the <strong>/docs/views/templates</strong> folder within your prototype. These include:</p>
<p>You can find some example templates for pages in the <strong>/lib/example-templates</strong> folder within your prototype (or /docs/templates in older versions of the kit).</p>

<p>These include:</p>

<ul>
<li>content pages</li>
Expand Down

0 comments on commit 5408dc6

Please sign in to comment.