Commit 66437ae7 by Damien Moulard

adhésion désactivée quand pas de paiement CB

parent f0598687
......@@ -6,6 +6,7 @@
<h4 class='mt-3'><b>{{'Adhérer'|trans }}</b></h4>
</div>
<p>
{% if isPayzenEnabled() %}
{{form_start(form)}}
{{ form_row(form.user) }}
{% if form.groupe is defined %}
......@@ -20,6 +21,11 @@
{{ form_row(form.save) }}
</div>
{{form_end(form)}}
{% else %}
<div class='text-center mb-5 mt-2'>
<p><i>Vous ne pouvez malheureusement pas adhérer ici, le paiement n'est pas configuré sur cette application.</i></p>
</div>
{% endif %}
</p>
</div>
{% endblock %}
......@@ -7,7 +7,8 @@
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav ml-auto">
{% if app.user is null %}
{% if app.user is null and isPayzenEnabled() %}
<li class="nav-item dropdownmenu-item has-child dropdown" role="menu-item">
<a href="#" id="navbarDropdown1" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="nav-link parent dropdown-toggle ">{{ 'Adhérer'|trans }}</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown1">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment