1 {extends file="page.tpl"}
4 <form action="{path_for name="paymentTypes"}" method="post" enctype="multipart/form-data">
5 <table class="listing">
8 <th class="id_row">#</th>
9 <th>{_T string="Name"}</th>
10 <th>{_T string="Actions"}</th>
16 <span class="row-title">
17 {_T string="Add payment type"}
20 <td class="left" data-title="{_T string="Label"}">
21 <input size="20" type="text" name="name"/>
23 <td class="center actions_row">
24 <input type="hidden" name="new" value="1" />
25 <button type="submit" name="valid">
26 <i class="fas fa-plus" aria-disabled="true"></i>
33 {foreach from=$list item=ptype name=alltypes}
34 <tr class="{if $smarty.foreach.alltypes.iteration % 2 eq 0}even{else}odd{/if}">
36 {if $preferences->pref_show_id}
39 {$smarty.foreach.alltypes.iteration}
41 <span class="row-title">
42 <a href="{path_for name="editPaymentType" data=["id" => $ptype->id]}">
43 {_T string="%s payment type" pattern="/%s/" replace=$ptype->getName()}
47 <td class="left" data-title="{_T string="Name"}">{$ptype->getName()}</td>
48 <td class="center actions_row">
50 href="{path_for name="editPaymentType" data=["id" => $ptype->id]}"
51 class="tooltip action"
53 <i class="fas fa-edit"></i>
54 <span class="sr-only">{_T string="Edit '%s' payment type" pattern="/%s/" replace=$ptype->getName()}</span>
57 href="{path_for name="dynamicTranslations" data=["text_orig" => {$ptype->getName(false)|escape}]}"
60 <i class="fas fa-language"></i>
61 <span class="sr-only">{_T string="Translate '%s'" pattern="/%s/" replace=$ptype->getName()}</span>
64 {if $ptype->isSystemType()}
65 <i class="fas fa-fw"> </i>
68 href="{path_for name="removePaymentType" data=["id" => $ptype->id]}"
69 class="delete tooltip"
71 <i class="fa fa-trash fa-fw"></i>
72 <span class="sr-only">{_T string="Delete '%s' payment type" pattern="/%s/" replace=$ptype->getName()}</span>
83 {block name="javascripts"}
84 <script type="text/javascript">
86 {include file="js_removal.tpl"}