mirror of
https://github.com/pretix/pretix.git
synced 2026-05-07 15:34:02 +00:00
Collappse payment provider settings by default
This commit is contained in:
@@ -2,10 +2,10 @@
|
|||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load bootstrap3 %}
|
{% load bootstrap3 %}
|
||||||
{% block inside %}
|
{% block inside %}
|
||||||
<form action="" method="post" class="form-horizontal form-plugins">
|
<form action="" method="post" class="form-horizontal form-plugins">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend>{% trans "Payment settings" %}</legend>
|
<legend>{% trans "Payment settings" %}</legend>
|
||||||
{% bootstrap_field sform.payment_term_days layout="horizontal" %}
|
{% bootstrap_field sform.payment_term_days layout="horizontal" %}
|
||||||
{% bootstrap_field sform.payment_term_last layout="horizontal" %}
|
{% bootstrap_field sform.payment_term_last layout="horizontal" %}
|
||||||
{% bootstrap_field sform.payment_term_weekdays layout="horizontal" %}
|
{% bootstrap_field sform.payment_term_weekdays layout="horizontal" %}
|
||||||
@@ -26,30 +26,36 @@
|
|||||||
legal advice. If in doubt, consult a lawyer or refrain from charging payment fees.
|
legal advice. If in doubt, consult a lawyer or refrain from charging payment fees.
|
||||||
{% endblocktrans %}
|
{% endblocktrans %}
|
||||||
</div>
|
</div>
|
||||||
{% for provider in providers %}
|
{% for provider in providers %}
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<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">
|
||||||
</div>
|
<a data-toggle="collapse" href="#{{ provider.identifier }}">
|
||||||
</div>
|
{{ provider.verbose_name }}
|
||||||
</div>
|
</a>
|
||||||
<div class="panel-body">
|
</h3>
|
||||||
{% bootstrap_form provider.form layout='horizontal' %}
|
</div>
|
||||||
{% with c=provider.settings_content %}
|
</div>
|
||||||
{% if c %}{{ c|safe }}{% endif %}
|
</div>
|
||||||
{% endwith %}
|
<div id="{{ provider.identifier }}" class="panel-collapse collapse">
|
||||||
</div>
|
<div class="panel-body">
|
||||||
</div>
|
{% bootstrap_form provider.form layout='horizontal' %}
|
||||||
|
{% with c=provider.settings_content %}
|
||||||
|
{% if c %}{{ c|safe }}{% endif %}
|
||||||
|
{% endwith %}
|
||||||
|
</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 %}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<div class="form-group submit-group">
|
<div class="form-group submit-group">
|
||||||
<button type="submit" class="btn btn-primary btn-save">
|
<button type="submit" class="btn btn-primary btn-save">
|
||||||
{% trans "Save" %}
|
{% trans "Save" %}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
Reference in New Issue
Block a user