demo-orgs: Update demo organization navbar alert text and links.

Updates the demo organization navbar alert for the deletion deadline
to link to the help center doc for converting it to a permanent org.
Also removes the "Hide notice" text since the "X" close button is
sufficient for users who want to close the notice.
This commit is contained in:
Lauryn Menard 2023-09-29 17:41:45 +02:00 committed by Tim Abbott
parent a1de07ba98
commit de4e369ece
2 changed files with 3 additions and 8 deletions

View File

@ -203,11 +203,6 @@ export function initialize() {
$(window).trigger("resize");
});
$(".hide-demo-organization-notice").on("click", function () {
$(this).closest(".alert").hide();
$(window).trigger("resize");
});
$(".accept-bankruptcy").on("click", function (e) {
e.preventDefault();
const $process = $(this).closest("[data-process]");

View File

@ -1,7 +1,7 @@
<div data-step="1">
{{#tr}}
This is a <z-link>demo organization</z-link> and will be automatically deleted in {days_remaining} days.
{{#*inline "z-link"}}<a class="alert-link" href="/help/demo-organizations" target="_blank" rel="noopener noreferrer" role="button" tabindex=0>{{> @partial-block}}</a>{{/inline}}
This is a <z-link-general>demo organization</z-link-general> and will be automatically deleted in {days_remaining} days, unless it's <z-link-convert>converted into a permanent organization</z-link-convert>.
{{#*inline "z-link-general"}}<a class="alert-link" href="/help/demo-organizations" target="_blank" rel="noopener noreferrer" role="button" tabindex=0>{{> @partial-block}}</a>{{/inline}}
{{#*inline "z-link-convert"}}<a class="alert-link" href="/help/demo-organizations#convert-a-demo-organization-to-a-permanent-organization" target="_blank" rel="noopener noreferrer" role="button" tabindex=0>{{> @partial-block}}</a>{{/inline}}
{{/tr}}
<a class="alert-link hide-demo-organization-notice" role="button" tabindex=0>{{t "Hide notice" }}</a>
</div>