Skip to content

Commit

Permalink
Fix form rendering of payment details form
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasjuhrich committed Sep 17, 2024
1 parent 53e15a0 commit 484af83
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 4 additions & 6 deletions sipa/templates/usersuite/_payment_details.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@ <h2 id="payment-details">{{ _("Zahlungsdetails") }}</h2>
<form action="#payment-details" method="post" class="form-inline"
aria-label="{{ _("Monate der Beitragszahlung angeben") }}">
{{ payment_form.csrf_token }}
{{ _("Beitrag für") }}
<div class="input-group">
{{ payment_form.months(class_="form-control", size="2", **{'aria-label': _("Monate")}) }}
<span class="input-group-btn">
<button type="submit" class="btn btn-secondary">{{ _("Aktualisieren") }}</button>
</span>
<div class="input-group-text">{{ _("Beitrag für") }}</div>
{{ payment_form.months(render_mode="inline") }}
<div class="input-group-text">{{ _("Monat(e) zahlen.") }}</div>
<button type="submit" class="btn btn-secondary">{{ _("Aktualisieren") }}</button>
</div>
{{ _("Monat(e) zahlen.") }}
</form>
<br>
<div class="card">
Expand Down
2 changes: 1 addition & 1 deletion wtforms_widgets

0 comments on commit 484af83

Please sign in to comment.