tiki-payment-list-past.tpl 1.93 KB
Newer Older
1
<table class="normal">
2 3 4 5 6 7 8 9 10 11 12 13
	<tr>
		<th>{tr}ID{/tr}</th>
		<th>{tr}Description{/tr}</th>
		<th>{tr}Amount{/tr}</th>
		<th>{tr}Payment Date{/tr}</th>
		<th>{tr}Payment Type{/tr}</th>
		{if $tiki_p_admin eq 'y'}<th>{tr}User{/tr}</th>{/if}
		{if $tiki_p_admin eq 'y'}<th>{tr}Payer{/tr}</th>{/if}
		<th>{tr}Actions{/tr}</th>
	</tr>
	{foreach from=$payments.data item=payment}
		<tr>
14 15 16 17 18 19 20 21
			<td class="id">{$payment.paymentRequestId}</td>
			<td class="text">{if $payment.paymentRequestId eq $smarty.request.invoice}<strong>{$payment.description|escape}</strong>{else}{$payment.description|escape}{/if}</td>
			<td class="integer">{$payment.amount|escape}&nbsp;{$payment.currency|escape}</td>
			<td class="date">{$payment.payment_date|tiki_short_date|escape}</td>
			<td class="text">{$payment.type|escape}</td>
			{if $tiki_p_admin eq 'y'}<td class="text">{$payment.user|userlink}</td>{/if}
			{if $tiki_p_admin eq 'y'}<td class="text">{$payment.payer|userlink}</td>{/if}
			<td class="action">
22
				{self_link invoice=$payment.paymentRequestId}{icon _id=page class=titletips title="{tr}View payment info{/tr}" alt="{tr}Invoice{/tr}"}{/self_link}
23 24
				{permission type=payment object=$payment.paymentRequestId name=payment_admin}
					<a class="link" href="tiki-objectpermissions.php?objectName={$payment.description|escape:url}&amp;objectType=payment&amp;permType=payment&amp;objectId={$payment.paymentRequestId|escape:"url"}">
25
						{icon _id='key' class=titletips title="{tr}Assign permissions for payments{/tr}" alt="{tr}Permissions{/tr}"}
26 27 28
					</a>
				{/permission}
				{if $cancel and ($payment.user eq $user or $tiki_p_payment_admin)}
29
					{self_link _ajax=n cancel=$payment.paymentRequestId}{icon _id=cross class=titletips title="{tr}Cancel this payment request{/tr}" alt="{tr}Cancel{/tr}"}{/self_link}
30 31 32 33 34
				{/if}
			</td>
		</tr>
	{/foreach}
</table>
35
{pagination_links cant=$payments.cant step=$payments.max offset=$payments.offset offset_arg=$payments.offset_arg}{/pagination_links}