56 lines
2.3 KiB
HTML
56 lines
2.3 KiB
HTML
{% load i18n %}
|
|
{% if title %}<h2>{{ title }}</h2>{% endif %}
|
|
<div>
|
|
{% trans "Introduction" context "tipi" as tipi_intro %}
|
|
{% placeholder "tipi_text" name=tipi_intro %}
|
|
|
|
<form name="tipi_form" id="tipi_form" data-url="{{ url }}" data-saisie="{{ mode }}" data-pesv2="{{ pesv2 }}">
|
|
<ul class="errorlist" id="popup_warning" style="display: none">
|
|
<li>{% trans "Your browser is blocking popups but they are required to start the payment, make sure they are allowed for this site." %}</li>
|
|
</ul>
|
|
{% if regies|length > 1 %}
|
|
<p><label>{% trans "Community identifier" %}</label>
|
|
<select id="numcli">
|
|
{% for id in regies %}
|
|
<option value="{{ id }}">{{ id }}</option>
|
|
{% endfor %}
|
|
</select>
|
|
</p>
|
|
{% else %}
|
|
<input type="hidden" id="numcli" value="{{ regies.0 }}" />
|
|
{% endif %}
|
|
<ul class="errorlist" id="refdet_error" style="display: none">
|
|
<li>{% trans "invalid reference" %}</li>
|
|
</ul>
|
|
<p>
|
|
<label>{% trans "Reference" %}</label>
|
|
{% regroup reference_fields by protocol as fields %}
|
|
{% for field in fields %}
|
|
{% for f in field.list %}
|
|
{% if field.grouper == control_protocol or field.grouper == 'any' %}
|
|
<input type="text" id="{{ f.name }}" required pattern="{{ f.pattern }}" maxlength="{{ f.length }}" size="{{ f.length }}" placeholder="{{ f.placeholder }}" {% if f.default %}value="{{ f.default }}" readonly {% endif %}/>{% if field.grouper == 'any' or not forloop.last %} - {% endif %}
|
|
{% endif %}
|
|
{% endfor %}
|
|
{% endfor %}
|
|
</p>
|
|
<ul class="errorlist" id="montant_error" style="display: none">
|
|
<li>{% trans "invalid amount" %}</li>
|
|
</ul>
|
|
<p>
|
|
<label>{% trans "Amount" %}</label>
|
|
<input type="text" required pattern="[0-9]+" id="montant_euros" size="4" maxlength="4" placeholder="0000" /> ,
|
|
<input type="text" required pattern="[0-9]+" id="montant_cents" size="2" maxlength="2" placeholder="00" value="00" /> €
|
|
</p>
|
|
<ul class="errorlist" id="mel_error" style="display: none">
|
|
<li>{% trans "invalid email" %}</li>
|
|
</ul>
|
|
<p>
|
|
<label>{% trans "Email" %}</label>
|
|
<input type="email" id="mel" required {% if request.user.email %}value="{{ request.user.email }}" {% endif %} />
|
|
</p>
|
|
<p>
|
|
<button>{% trans "Pay" %}</button>
|
|
</p>
|
|
</form>
|
|
</div>
|