Skip to content

Commit

Permalink
fix(200-user-error): use index button, override text
Browse files Browse the repository at this point in the history
  • Loading branch information
thekaveman committed Aug 15, 2023
1 parent f08e874 commit 739d0f3
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 5 deletions.
4 changes: 2 additions & 2 deletions benefits/core/templates/core/includes/button--index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% load i18n %}

{% url "core:index" as href %}
{% translate "Return Home" as text %}
{% translate "Return Home" as default_button_text %}

<a href="{{ href }}" class="btn btn-lg btn-primary">{{ text }}</a>
<a href="{{ href }}" class="btn btn-lg btn-primary">{{ button_text | default:default_button_text }}</a>
5 changes: 4 additions & 1 deletion benefits/locale/en/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
msgid ""
msgstr ""
"Report-Msgid-Bugs-To: https://github.com/cal-itp/benefits/issues \n"
"POT-Creation-Date: 2023-08-14 21:37+0000\n"
"POT-Creation-Date: 2023-08-15 05:58+0000\n"
"Language: English\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
Expand Down Expand Up @@ -570,6 +570,9 @@ msgid ""
"will be directed to the beginning of the enrollment process."
msgstr ""

msgid "Start Here"
msgstr ""

msgid "Service is down."
msgstr ""

Expand Down
5 changes: 4 additions & 1 deletion benefits/locale/es/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
msgid ""
msgstr ""
"Report-Msgid-Bugs-To: https://github.com/cal-itp/benefits/issues \n"
"POT-Creation-Date: 2023-08-14 21:37+0000\n"
"POT-Creation-Date: 2023-08-15 05:58+0000\n"
"Language: Español\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
Expand Down Expand Up @@ -699,6 +699,9 @@ msgstr ""
"Para comenzar con Cal-ITP Benefits haga clic en el botón de abajo y será "
"dirigido al comienzo del proceso de inscripción."

msgid "Start Here"
msgstr "Comenzar aquí"

msgid "Service is down."
msgstr "El servicio está inactivo"

Expand Down
5 changes: 5 additions & 0 deletions benefits/templates/200-user-error.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,8 @@
{% translate "To get started with Cal-ITP Benefits please click the button below, and you will be directed to the beginning of the enrollment process." %}
</p>
{% endblock paragraphs %}

{% block button %}
{% translate "Start Here" as button_text %}
{% include "core/includes/button--index.html" with button_text=button_text %}
{% endblock button %}
6 changes: 5 additions & 1 deletion benefits/templates/error.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ <h1 class="icon-title h2 text-center">
</div>

<div class="row pt-8 justify-content-center">
<div class="col-lg-3 col-8">{% include "core/includes/button--origin.html" %}</div>
<div class="col-lg-3 col-8">
{% block button %}
{% include "core/includes/button--origin.html" %}
{% endblock button %}
</div>
</div>
</div>
{% endblock main-content %}

0 comments on commit 739d0f3

Please sign in to comment.