diff --git a/app/views/how-tos/index.html b/app/views/how-tos/index.html index ee502cc..0552d63 100755 --- a/app/views/how-tos/index.html +++ b/app/views/how-tos/index.html @@ -90,6 +90,8 @@

General use

  • Adding CSS, JavaScript and images
  • Using components
  • How to use layouts
  • +
  • Change the service name on one page
  • +
  • Passing data page to page
  • Branching – show a different page based on user input
  • diff --git a/app/views/how-tos/layouts.html b/app/views/how-tos/layouts.html index d17e725..ac5f898 100644 --- a/app/views/how-tos/layouts.html +++ b/app/views/how-tos/layouts.html @@ -2,7 +2,7 @@ {% extends 'layout.html' %} {% block pageTitle %} - How to setup Git - NHS prototype kit + How to use layouts - NHS prototype kit {% endblock %} {% block beforeContent %} diff --git a/app/views/how-tos/override-service-name.html b/app/views/how-tos/override-service-name.html new file mode 100644 index 0000000..b68e0c8 --- /dev/null +++ b/app/views/how-tos/override-service-name.html @@ -0,0 +1,32 @@ + +{% extends 'layout.html' %} + +{% block pageTitle %} +Change the service name on one page - NHS prototype kit +{% endblock %} + +{% block beforeContent %} + {% include "how-tos/includes/breadcrumb.html" %} +{% endblock %} + +{% block content %} +
    + +
    + +

    + Change the service name on one page +

    + + +

    You can set a different service name to the rest of your prototype on one page.

    +

    Use this code:

    +
    {{'{% set serviceName %}
    +    Book a test
    +  {% endset%}' | escape }}
    +
    + +
    +
    + + {% endblock %} \ No newline at end of file