-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove save on signout functionality
- Loading branch information
1 parent
cdf61f7
commit 330e404
Showing
16 changed files
with
111 additions
and
372 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ msgid "" | |
msgstr "" | ||
"Project-Id-Version: PROJECT VERSION\n" | ||
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" | ||
"POT-Creation-Date: 2020-06-03 09:10+0100\n" | ||
"POT-Creation-Date: 2020-06-09 13:22+0100\n" | ||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | ||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||
"Language-Team: LANGUAGE <[email protected]>\n" | ||
|
@@ -584,12 +584,12 @@ msgstr "" | |
msgid "Save and sign out" | ||
msgstr "" | ||
|
||
#: templates/layouts/configs/_save-sign-out-button.html:18 | ||
msgid "Sign out" | ||
#: templates/layouts/configs/_save-sign-out-button.html:7 | ||
msgid "Save and complete later" | ||
msgstr "" | ||
|
||
#: templates/layouts/configs/_save-sign-out-button.html:32 | ||
msgid "Save and complete later" | ||
#: templates/layouts/configs/_save-sign-out-button.html:24 | ||
msgid "Sign out" | ||
msgstr "" | ||
|
||
#: templates/partials/answer-guidance.html:13 | ||
|
@@ -607,23 +607,23 @@ msgid "" | |
" of the section</a>" | ||
msgstr "" | ||
|
||
#: templates/partials/question.html:39 | ||
#: templates/partials/question.html:48 | ||
msgid "Selecting this will clear your answer" | ||
msgstr "" | ||
|
||
#: templates/partials/question.html:40 | ||
#: templates/partials/question.html:49 | ||
msgid "cleared" | ||
msgstr "" | ||
|
||
#: templates/partials/question.html:43 | ||
#: templates/partials/question.html:52 | ||
msgid "Selecting this will deselect any selected options" | ||
msgstr "" | ||
|
||
#: templates/partials/question.html:44 templates/partials/question.html:52 | ||
#: templates/partials/question.html:53 templates/partials/question.html:61 | ||
msgid "deselected" | ||
msgstr "" | ||
|
||
#: templates/partials/question.html:48 | ||
#: templates/partials/question.html:57 | ||
msgid "Or" | ||
msgstr "" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,37 @@ | ||
{% if current_user.is_authenticated %} | ||
{% if account_service_log_out_url %} | ||
{% if current_user.is_authenticated and not hide_signout_button %} | ||
|
||
{% if save_on_signout %} | ||
{% if account_service_log_out_url %} | ||
{% set button_text = _("Save and sign out") %} | ||
{% else %} | ||
{% set button_text = _("Save and complete later") %} | ||
{% endif %} | ||
{% do pageConfig | setAttribute("signoutButton", { | ||
"text": _("Save and sign out"), | ||
"name": "action[save_sign_out]", | ||
"text": button_text, | ||
"name": "btn-save-sign-out", | ||
"classes": "js-btn-save", | ||
"url": "/signed-out", | ||
"url": "/sign-out", | ||
"attributes": { | ||
"data-qa": "btn-save-sign-out", | ||
"data-ga": "click", | ||
"data-ga-category": "Navigation", | ||
"data-ga-action": "Save and sign out click" | ||
} | ||
}) %} | ||
|
||
{% else %} | ||
{% do pageConfig | setAttribute("signoutButton", { | ||
"text": _("Sign out"), | ||
"name": "action[sign_out]", | ||
"url": "/signed-out", | ||
"name": "btn-sign-out", | ||
"url": "/sign-out", | ||
"attributes": { | ||
"data-qa": "btn-sign-out", | ||
"data-ga": "click", | ||
"data-ga-category": "Navigation", | ||
"data-ga-action": "Sign out click" | ||
} | ||
}) %} | ||
|
||
{% endif %} | ||
{% else %} | ||
{% if save_on_signout %} | ||
{% do pageConfig | setAttribute("signoutButton", { | ||
"text": _("Save and complete later"), | ||
"name": "action[save_sign_out]", | ||
"classes": "js-btn-save", | ||
"url": "/signed-out", | ||
"attributes": { | ||
"data-qa": "btn-save-sign-out", | ||
"data-ga": "click", | ||
"data-ga-category": "Navigation", | ||
"data-ga-action": "Save and sign out click" | ||
} | ||
}) %} | ||
{% endif %} | ||
{% endif %} | ||
|
||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.