change variable identifier in customer template

This commit is contained in:
Manuel Raynaud
2013-09-10 15:17:55 +02:00
parent 88bb6001ac
commit c7544faf65

View File

@@ -61,14 +61,14 @@
<tbody> <tbody>
{loop name="customer_list" type="customer" current="false" visible="*" last_order="1" backend_context="1" page={$customer_page} limit={$display_customer}} {loop name="customer_list" type="customer" current="false" visible="*" last_order="1" backend_context="1" page={$customer_page} limit={$display_customer}}
<tr> <tr>
<td>{#REF}</td> <td>{$REF}</td>
<td> <td>
{#COMPANY} {$COMPANY}
</td> </td>
<td class="object-title"> <td class="object-title">
{#FIRSTNAME} {#LASTNAME} {$FIRSTNAME} {$LASTNAME}
</td> </td>
{module_include location='customer_list_row'} {module_include location='customer_list_row'}
@@ -87,7 +87,7 @@
<a class="btn btn-default btn-xs" title="{intl l='Edit this customer'}" href="{url path="/admin/customer/update/{$ID}" }"><i class="glyphicon glyphicon-edit"></i></a> <a class="btn btn-default btn-xs" title="{intl l='Edit this customer'}" href="{url path="/admin/customer/update/{$ID}" }"><i class="glyphicon glyphicon-edit"></i></a>
{/loop} {/loop}
{loop type="auth" name="can_send_mail" roles="ADMIN" permissions="admin.customer.sendMail"} {loop type="auth" name="can_send_mail" roles="ADMIN" permissions="admin.customer.sendMail"}
<a class="btn btn-default btn-xs" title="{intl l="Send a mail to this customer"}" href="mailto:{#EMAIL}"><span class="glyphicon glyphicon-envelope"></span></a> <a class="btn btn-default btn-xs" title="{intl l="Send a mail to this customer"}" href="mailto:{$EMAIL}"><span class="glyphicon glyphicon-envelope"></span></a>
{/loop} {/loop}
{loop type="auth" name="can_delete" roles="ADMIN" permissions="admin.customer.delete"} {loop type="auth" name="can_delete" roles="ADMIN" permissions="admin.customer.delete"}
<a class="btn btn-default btn-xs customer-delete" title="{intl l='Delete this customer and all his orders'}" href="#delete_customer_dialog" data-id="{$ID}" data-toggle="modal"><i class="glyphicon glyphicon-trash"></i></a> <a class="btn btn-default btn-xs customer-delete" title="{intl l='Delete this customer and all his orders'}" href="#delete_customer_dialog" data-id="{$ID}" data-toggle="modal"><i class="glyphicon glyphicon-trash"></i></a>
@@ -110,21 +110,21 @@
<div class="col-md-12 text-center"> <div class="col-md-12 text-center">
<ul class="pagination pagination-centered"> <ul class="pagination pagination-centered">
{if #customer_page != 1} {if $customer_page != 1}
<li><a href="{url path="/admin/customers" page="1"}">&laquo;</a></li> <li><a href="{url path="/admin/customers" page="1"}">&laquo;</a></li>
{else} {else}
<li class="disabled"><a href="#">&laquo;</a></li> <li class="disabled"><a href="#">&laquo;</a></li>
{/if} {/if}
{pageloop rel="customer_list"} {pageloop rel="customer_list"}
{if #PAGE != #CURRENT} {if $PAGE != $CURRENT}
<li><a href="{url path="/admin/customers" page="#PAGE"}">#PAGE</a></li> <li><a href="{url path="/admin/customers" page="{$PAGE}"}">{$PAGE}</a></li>
{else} {else}
<li class="active"><a href="#">#PAGE</a></li> <li class="active"><a href="#">{$PAGE}</a></li>
{/if} {/if}
{if #PAGE == #LAST && #LAST != #CURRENT} {if $PAGE == $LAST && $LAST != $CURRENT}
<li><a href="{url path="/admin/customers" page="#PAGE"}">&raquo;</a></li> <li><a href="{url path="/admin/customers" page="{$PAGE}"}">&raquo;</a></li>
{else} {else}
<li class="disabled"><a href="#">&raquo;</a></li> <li class="disabled"><a href="#">&raquo;</a></li>
{/if} {/if}