Collappse payment provider settings by default

This commit is contained in:
Raphael Michel
2017-06-29 11:40:17 +02:00
parent fc12a8f549
commit 9007501d81

View File

@@ -31,10 +31,15 @@
<div class="panel-heading"> <div class="panel-heading">
<div class="row"> <div class="row">
<div class="col-sm-10"> <div class="col-sm-10">
<h3 class="panel-title">{{ provider.verbose_name }}</h3> <h3 class="panel-title">
<a data-toggle="collapse" href="#{{ provider.identifier }}">
{{ provider.verbose_name }}
</a>
</h3>
</div> </div>
</div> </div>
</div> </div>
<div id="{{ provider.identifier }}" class="panel-collapse collapse">
<div class="panel-body"> <div class="panel-body">
{% bootstrap_form provider.form layout='horizontal' %} {% bootstrap_form provider.form layout='horizontal' %}
{% with c=provider.settings_content %} {% with c=provider.settings_content %}
@@ -42,6 +47,7 @@
{% endwith %} {% endwith %}
</div> </div>
</div> </div>
</div>
{% empty %} {% empty %}
<em>{% trans "There are no payment providers available. Please go to the plugin settings and activate one or more payment plugins." %}</em> <em>{% trans "There are no payment providers available. Please go to the plugin settings and activate one or more payment plugins." %}</em>
{% endfor %} {% endfor %}