Commit 66437ae7 by Damien Moulard

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

parent f0598687
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
<h4 class='mt-3'><b>{{'Adhérer'|trans }}</b></h4> <h4 class='mt-3'><b>{{'Adhérer'|trans }}</b></h4>
</div> </div>
<p> <p>
{% if isPayzenEnabled() %}
{{form_start(form)}} {{form_start(form)}}
{{ form_row(form.user) }} {{ form_row(form.user) }}
{% if form.groupe is defined %} {% if form.groupe is defined %}
...@@ -20,6 +21,11 @@ ...@@ -20,6 +21,11 @@
{{ form_row(form.save) }} {{ form_row(form.save) }}
</div> </div>
{{form_end(form)}} {{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> </p>
</div> </div>
{% endblock %} {% endblock %}
...@@ -7,7 +7,8 @@ ...@@ -7,7 +7,8 @@
<div class="collapse navbar-collapse" id="navbarSupportedContent"> <div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav ml-auto"> <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"> <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> <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"> <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