]> git.agnieray.net Git - galette.git/blob - galette/templates/default/pages/configuration_payment_type_form.html.twig
8195129a7f49a9808d1ac4c274e0d0816e2c9678
[galette.git] / galette / templates / default / pages / configuration_payment_type_form.html.twig
1 {% extends (mode == 'ajax') ? "ajax.html.twig" : "page.html.twig" %}
2
3 {% block content %}
4 <form action="{{ url_for('editPaymentType', {'id': ptype.__get('id')}) }}" method="post" class="ui form">
5 {% if mode != 'ajax' %}
6 <div class="ui segment" id="general">
7 {% endif %}
8 <div class="required field inline">
9 <label for="name" class="" title="{{ _T("Original string for name, that will be used for translations.") }}">{{ _T("Name:") }}</label>
10 <div class="ui right corner labeled input">
11 <div class="ui corner label">
12 <i class="circular inverted primary link icon info tooltip" title="{{ _T("Original string for name, that will be used for translations.") }}"></i>
13 </div>
14 <input type="text" name="name" id="name" value="{{ ptype.__get('name') }}" required="required" />
15 </div>
16 </div>
17 {% if mode != 'ajax' %}
18 </div>
19 <div class="ui basic center aligned segment">
20 <button type="submit" class="ui labeled icon primary button action">
21 <i class="save icon"></i> {{ _T("Save") }}
22 </button>
23 <input type="submit" name="cancel" value="{{ _T("Cancel") }}" class="ui button"/>
24 {% endif %}
25 <input type="hidden" name="id" id="id" value="{{ ptype.__get('id') }}"/>
26 {% include 'components/forms/csrf.html.twig' %}
27 {% if mode != 'ajax' %}
28 </div>
29 {% endif %}
30 </form>
31 {% endblock %}