Skip to content

Commit

Permalink
fix(elig-start): override entire call-to-action area
Browse files Browse the repository at this point in the history
  • Loading branch information
machikoyasuda committed Aug 1, 2023
1 parent e608212 commit b693c3a
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ <h1>{% translate "eligibility.pages.start.mst_courtesy_card.headline" %}</h1>
{% include "eligibility/includes/media-item--idcardcheck--start--mst-courtesy-card.html" %}
{% endblock media-item %}

{% block call-to-action-button %}
{% url "eligibility:confirm" as button_url %}
<a href="{{ button_url }}" class="btn btn-lg btn-primary" role="button">{% translate "eligibility.buttons.continue" %}</a>
{% endblock call-to-action-button %}
{% block call-to-action %}
<div class="row d-flex flex-column-reverse justify-content-lg-end flex-lg-row">
<div class="col-lg-3 offset-2 offset-sm-2 offset-lg-0 col-sm-8 col-8">
{% url "eligibility:confirm" as button_url %}
<a href="{{ button_url }}" class="btn btn-lg btn-primary" role="button">{% translate "eligibility.buttons.continue" %}</a>
</div>
</div>
{% endblock call-to-action %}
14 changes: 9 additions & 5 deletions benefits/eligibility/templates/eligibility/start--veteran.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,12 @@ <h1>{% translate "eligibility.pages.start.veteran.headline" %}</h1>
{% include "eligibility/includes/media-item--idcardcheck--start--veteran.html" %}
{% endblock media-item %}

{% block call-to-action-button %}
{% url "oauth:login" as button_url %}
{% translate "eligibility.buttons.veteran.signin" as button_text %}
<a href="{{ button_url }}" class="btn btn-lg btn-primary" role="button">{{ button_text }}</a>
{% endblock call-to-action-button %}
{% block call-to-action %}
<div class="row d-flex flex-column-reverse justify-content-lg-end flex-lg-row">
<div class="col-lg-3 offset-2 offset-sm-2 offset-lg-0 col-sm-8 col-8">
{% url "oauth:login" as button_url %}
{% translate "eligibility.buttons.veteran.signin" as button_text %}
<a href="{{ button_url }}" class="btn btn-lg btn-primary" role="button">{{ button_text }}</a>
</div>
</div>
{% endblock call-to-action %}
3 changes: 0 additions & 3 deletions benefits/eligibility/templates/eligibility/start.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,3 @@ <h2 class="media-title p-sm">{% translate "eligibility.pages.start.sub_headline"

{% block call-to-action %}
{% endblock call-to-action %}

{% block call-to-action-button %}
{% endblock call-to-action-button %}

0 comments on commit b693c3a

Please sign in to comment.