Skip to content

Commit

Permalink
changed page title and h1 on choose.html
Browse files Browse the repository at this point in the history
  • Loading branch information
Beverly Nguyen authored and Beverly Nguyen committed Dec 2, 2024
1 parent 994a314 commit 66c377c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
8 changes: 4 additions & 4 deletions app/templates/components/folder-path.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
service_id,
template_type,
current_user,
link_current_item=False,
root_element='h2'
link_current_item=False
) %}
<{{ root_element }} class="font-body-lg folder-heading margin-bottom-0"{% if root_element == 'h1' %} id="page-header"{% endif %}>

<nav class="navigation-service usa-breadcrumb padding-top-0">
{% for folder in folders %}
{% if loop.last and not link_current_item %}
{% if folder.template_type or not folder.id %}
Expand All @@ -27,7 +27,7 @@
{% if not loop.last %}{{ folder_path_separator() }}{% endif %}
{% endif %}
{% endfor %}
</{{ root_element }}>
</nav>
{% endmacro %}


Expand Down
11 changes: 6 additions & 5 deletions app/templates/views/templates/choose.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% from "components/folder-path.html" import folder_path, page_title_folder_path %}
{% from "components/folder-path.html" import folder_path %}
{% from "components/pill.html" import pill %}
{% from "components/live-search.html" import live_search %}
{% from "components/form.html" import form_wrapper %}
Expand All @@ -11,7 +11,7 @@
{% set page_title = 'Select or create a template' %}

{% block service_page_title %}
{{ page_title_folder_path(template_folder_path) }}
{{page_title}}
{% endblock %}

{% block maincolumn_content %}
Expand All @@ -34,17 +34,18 @@
{% else %}

<div class="grid-row flex-column">
<h1 class="font-body-2xl line-height-sans-2 margin-bottom-1 margin-top-0">Select or create a template</h1>
<h1 class="font-body-2xl line-height-sans-2 margin-bottom-1 margin-top-0">{{page_title}}</h1>
<div class="{% if current_user.has_permissions('manage_templates') %} grid-col-10 {% else %} grid-col-12 {% endif %}">
<p class="margin-top-0 margin-bottom-4">
Every message starts with a template. To send, choose or create a template.
</p>
{{ folder_path(
{# you don't need this unless you're trying to add the parent breadcrumb title to the first page of the flow #}
<!-- {{ folder_path(
folders=template_folder_path,
service_id=current_service.id,
template_type=template_type,
current_user=current_user
) }}
) }} -->
</div>
{% if current_user.has_permissions('manage_templates') and current_template_folder_id and user_has_template_folder_permission %}
<div class="grid-col-2">
Expand Down

0 comments on commit 66c377c

Please sign in to comment.