You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

51 lines
3.1 KiB

<div id="{$table_id}-div" class="{if $js}table-responsive{/if} ts-wrapperdiv" {if $ts.enabled}style="visibility:hidden;"{/if}>
<table id="{$table_id}" class="table table-striped table-hover" data-count="{$payments.cant|escape}">
<thead>
<tr>
<th id="id">{tr}ID{/tr}</th>
<th id="description">{tr}Description{/tr}</th>
<th id="amount">{tr}Amount{/tr}</th>
<th id="req_date">{tr}Request Date{/tr}</th>
{if $tiki_p_admin eq 'y'}<th id="user">{tr}User{/tr}</th>{/if}
<th id="actions"></th>
</tr>
</thead>
<tbody>
{foreach from=$payments.data item=payment}
<tr>
<td class="id">{$payment.paymentRequestId}</td>
<td class="text">{if isset($smarty.request.invoice) && $payment.paymentRequestId eq $smarty.request.invoice}<strong>{$payment.description|escape}</strong>{else}{self_link invoice=$payment.paymentRequestId}{$payment.description|escape}{/self_link}{/if}</td>
<td class="integer">{$payment.amount|escape}&nbsp;{$payment.currency|escape}</td>
<td class="date">{if !empty($payment.request_date)}{if $prefs.jquery_timeago eq 'y'}{$payment.request_date|tiki_short_date}{else}{$payment.request_date|tiki_short_date|escape}{/if}{/if}</td>
{if $tiki_p_admin eq 'y'}<td class="text">{$payment.user|userlink}</td>{/if}
<td class="action">
{actions}
{strip}
<action>
{self_link invoice=$payment.paymentRequestId _icon_name='textfile' _menu_text='y' _menu_icon='y'}
{tr}View payment request{/tr}
{/self_link}
</action>
{permission type=payment object=$payment.paymentRequestId name=payment_admin}
<action>
{permission_link type="payment" id=$payment.paymentRequestId title=$payment.description mode=text}
</action>
{/permission}
{if isset($cancel) and ($payment.user eq $user or $tiki_p_payment_admin)}
<action>
{self_link _ajax=n cancel=$payment.paymentRequestId _icon_name='remove' _menu_text='y' _menu_icon='y'}
{tr}Cancel this payment request{/tr}
{/self_link}
</action>
{/if}
{/strip}
{/actions}
</td>
</tr>
{/foreach}
</tbody>
</table>
</div>
{if !$ts.enabled}
{pagination_links cant=$payments.cant step=$payments.max offset=$payments.offset offset_arg=$payments.offset_arg}{/pagination_links}
{/if}