Skip to content

Commit

Permalink
fix(form): undo form refactoring for now
Browse files Browse the repository at this point in the history
  • Loading branch information
machikoyasuda committed Dec 18, 2024
1 parent ec05326 commit dce769c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion benefits/core/templates/core/includes/form.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{% url form.action_url as form_action %}

<form id="{{ form.id }}"
class="col-lg-6 {{ form.classes }}"
class="{{ form.classes }}"
action="{{ form_action }}"
method="{{ form.method | default:"post" | upper }}"
role="form">
Expand Down
4 changes: 3 additions & 1 deletion benefits/eligibility/templates/eligibility/confirm.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ <h1>{{ form.headline }}</h1>
{% endblock explanatory-text-wrapper %}

{% block inner-content %}
{% include "core/includes/form.html" with form=form %}
<div class="row justify-content-center">
<div class="col-lg-6">{% include "core/includes/form.html" with form=form %}</div>
</div>
{% endblock inner-content %}

{% comment %} Override with empty block to prevent rendering empty divs {% endcomment %}
Expand Down
4 changes: 3 additions & 1 deletion benefits/eligibility/templates/eligibility/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ <h1>{% translate "Choose the transit benefit you would like to enroll in" %}</h1
{% endblock explanatory-text-wrapper %}

{% block inner-content %}
{% include "core/includes/form.html" with form=form %}
<div class="row justify-content-center">
<div class="col-lg-6">{% include "core/includes/form.html" with form=form %}</div>
</div>
<script nonce="{{ request.csp_nonce }}">
$(".modal").on("click", function(event) {
if (!(event.target instanceof HTMLAnchorElement)) {
Expand Down

0 comments on commit dce769c

Please sign in to comment.