Skip to content

Commit ea65236

Browse files
authored
RAS-1502 Apply Dynamic Navigation 'Share access to my surveys' (#1046)
1 parent b882c9b commit ea65236

File tree

5 files changed

+26
-60
lines changed

5 files changed

+26
-60
lines changed

frontstage/templates/surveys/surveys-share/business-select.html

+5-19
Original file line numberDiff line numberDiff line change
@@ -4,30 +4,16 @@
44
{% from "components/checkboxes/_macro.njk" import onsCheckboxes %}
55
{% from "components/button/_macro.njk" import onsButton %}
66
{% set page_title = "Survey share business select" %}
7-
{% set breadcrumbsData = [
8-
{
9-
"text": "Surveys",
10-
"url": "/surveys/todo",
11-
"id": "b-item-1"
12-
},
13-
{
14-
"text": "Account",
15-
"url": "/my-account",
16-
"id": "b-item-2"
17-
},
18-
{
19-
"text": "Share Surveys",
20-
"url": "/my-account/share-surveys",
21-
"id": "b-item-3"
22-
}
23-
] %}
24-
257
{% block breadcrumbs %}
268
{{
279
onsBreadcrumbs({
2810
"ariaLabel": "Breadcrumbs",
2911
"id": "breadcrumbs",
30-
"itemsList": breadcrumbsData
12+
"itemsList": [{
13+
"text": "Back",
14+
"url": "/my-account/share-surveys",
15+
"id": "b-item"
16+
}]
3117
})
3218
}}
3319
{% endblock breadcrumbs %}

frontstage/templates/surveys/surveys-share/overview.html

+6-14
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,17 @@
44
{% from "components/list/_macro.njk" import onsList %}
55

66
{% set page_title = "Share surveys overview" %}
7-
{% set breadcrumbsData = [
8-
{
9-
"text": "Surveys",
10-
"url": "/surveys/todo",
11-
"id": "b-item-1"
12-
},
13-
{
14-
"text": "Account",
15-
"url": "/my-account",
16-
"id": "b-item-2"
17-
},
18-
] %}
197

208
{% block breadcrumbs %}
219
{{
2210
onsBreadcrumbs({
2311
"ariaLabel": "Breadcrumbs",
2412
"id": "breadcrumbs",
25-
"itemsList": breadcrumbsData
13+
"itemsList": [{
14+
"text": "Back",
15+
"url": "/surveys/todo",
16+
"id": "b-item"
17+
}]
2618
})
2719
}}
2820
{% endblock breadcrumbs %}
@@ -64,7 +56,7 @@ <h2 class="ons-u-fs-m ons-u-mt-m">What will happen</h2>
6456
}}
6557
{{
6658
onsButton({
67-
"url": url_for('account_bp.account'),
59+
"url": "/surveys/todo",
6860
"text": 'Cancel',
6961
"variants": 'secondary',
7062
"noIcon": true

frontstage/templates/surveys/surveys-share/recipient-email-address.html

+5-9
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,16 @@
88

99
{% set page_title = "New respondents email address" %}
1010

11-
{% set breadcrumbsData = [
12-
{
13-
"text": "Back",
14-
"url": "/my-account/share-surveys/survey-selection",
15-
"id": "b-item-4"
16-
}
17-
] %}
18-
1911
{% block breadcrumbs %}
2012
{{
2113
onsBreadcrumbs({
2214
"ariaLabel": "Breadcrumbs",
2315
"id": "breadcrumbs",
24-
"itemsList": breadcrumbsData
16+
"itemsList": [{
17+
"text": "Back",
18+
"url": "/my-account/share-surveys/survey-selection",
19+
"id": "b-item"
20+
}]
2521
})
2622
}}
2723
{% endblock breadcrumbs %}

frontstage/templates/surveys/surveys-share/send-instructions.html

+5-9
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,16 @@
88

99
{% set page_title = "Send instructions" %}
1010

11-
{% set breadcrumbsData = [
12-
{
13-
"text": "Back",
14-
"url": "/my-account/share-surveys/recipient-email-address",
15-
"id": "b-item-4"
16-
}
17-
] %}
18-
1911
{% block breadcrumbs %}
2012
{{
2113
onsBreadcrumbs({
2214
"ariaLabel": "Breadcrumbs",
2315
"id": "breadcrumbs",
24-
"itemsList": breadcrumbsData
16+
"itemsList": [{
17+
"text": "Back",
18+
"url": "/my-account/share-surveys/recipient-email-address",
19+
"id": "b-item"
20+
}]
2521
})
2622
}}
2723
{% endblock breadcrumbs %}

frontstage/templates/surveys/surveys-share/survey-select.html

+5-9
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,16 @@
88

99
{% set page_title = "Share access to surveys" %}
1010

11-
{% set breadcrumbsData = [
12-
{
13-
"text": "Back",
14-
"url": "/my-account/share-surveys/business-selection",
15-
"id": "b-item-4"
16-
}
17-
] %}
18-
1911
{% block breadcrumbs %}
2012
{{
2113
onsBreadcrumbs({
2214
"ariaLabel": "Breadcrumbs",
2315
"id": "breadcrumbs",
24-
"itemsList": breadcrumbsData
16+
"itemsList": [{
17+
"text": "Back",
18+
"url": "/my-account/share-surveys/business-selection",
19+
"id": "b-item"
20+
}]
2521
})
2622
}}
2723
{% endblock breadcrumbs %}

0 commit comments

Comments
 (0)