ebs/templates/components/group/_modal_offers.html.twig
Sarahshr 20251f6caf
Feat/adhesion payante front (#716)
* list only user groups with enabled services in create and edit service forms

* feat: add platform membership payment (wip)

* WIP

* revert mollie api key

* remove all option for visibility in services forms

* add quit platform membership

* remove quit platform feature

* fix good route name for payment

* fix review

* fix review 2
2024-10-08 09:48:47 +02:00

49 lines
2.4 KiB
Twig

<div class="modal fade"
id="offersModal"
tabindex="-1"
aria-labelledby="offersModal"
aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h1 class="modal-title fs-5" id="exampleModalLabel">
{{ (i18n_prefix ~ '.choose_offer')|trans }}
</h1>
<button type="button"
class="btn-close"
data-bs-dismiss="modal"
aria-label="Close"></button>
</div>
<div class="modal-body">
<ul class="list-group">
{% for offer in offers %}
<li class="list-group-item">
<div class="row">
<div class="col col-lg-7 d-flex flex-column">
<p class="text-dark text-center fs-6 fw-bolder m-0">{{ offer.name }}</p>
<span class="text-gray fs-6 text-center">
{{ offer.actualPrice|format_currency(offer.currency) }} /
{{ (i18n_prefix ~ '.type.' ~ offer.type.value)|trans }}
</span>
</div>
<div class="col col-lg-5 d-flex align-items-center justify-content-center mt-3 mt-lg-0">
<form action="{{ path(prepare_path, {id: offer.id}) }}" method="post">
<input type="hidden" name="token" value="{{ csrf_token('payment_prepare') }}"/>
<input class="btn btn-primary" type="submit"
value="{{ (i18n_prefix ~ '.payment_prepare.form.submit')|trans }}">
</form>
</div>
</div>
</li>
{% endfor %}
</ul>
</div>
<div class="modal-footer">
<button type="button"
class="btn btn-secondary"
data-bs-dismiss="modal">{{ (i18n_prefix ~ '.close')|trans }}
</button>
</div>
</div>
</div>
</div>