Skip to content

Commit

Permalink
feat: only show the Transit Processor section if the portal field is …
Browse files Browse the repository at this point in the history
…not empty
  • Loading branch information
lalver1 committed Sep 16, 2024
1 parent 671c972 commit 5823a62
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions benefits/templates/admin/agency-dashboard-index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,17 @@ <h2 class="pt-0 pb-2 text-left">In-person enrollment</h2>
</div>
</div>
</div>
<div class="border border-3 p-3">
<h2 class="pt-0 pb-2 text-left">Transit Processor</h2>
<p>Manage fare-calculation, view rider transactions, and process refunds.</p>
<div class="row pt-4">
<div class="col-lg-3">
<a href="{{ transit_processor_portal_url }}" target="_blank" rel="noopener noreferrer" class="btn btn-lg btn-outline-primary">Launch Littlepay Control Portal</a>
{% if transit_processor_portal_url %}
<div class="border border-3 p-3">
<h2 class="pt-0 pb-2 text-left">Transit Processor</h2>
<p>Manage fare-calculation, view rider transactions, and process refunds.</p>
<div class="row pt-4">
<div class="col-lg-3">
<a href="{{ transit_processor_portal_url }}" target="_blank" rel="noopener noreferrer" class="btn btn-lg btn-outline-primary">Launch Littlepay Control Portal</a>
</div>
</div>
</div>
</div>
{% endif %}
{% endif %}
</div>
</div>
Expand Down

0 comments on commit 5823a62

Please sign in to comment.