replace smarty variable identifier by $

This commit is contained in:
Manuel Raynaud
2013-09-10 16:14:49 +02:00
parent eb7bc62964
commit 5aa49d62fe
6 changed files with 26 additions and 26 deletions

View File

@@ -93,7 +93,7 @@
<td> <td>
{loop type="image" name="cat_image" source="category" source_id="$ID" limit="1" width="50" height="50" resize_mode="crop" backend_context="1"} {loop type="image" name="cat_image" source="category" source_id="$ID" limit="1" width="50" height="50" resize_mode="crop" backend_context="1"}
<a href="{url path='admin/catalog' category_id=$ID}" title="{intl l='Browse this category'}"><img class="img-thumbnail" src="#IMAGE_URL" alt="#TITLE" /></a> <a href="{url path='admin/catalog' category_id=$ID}" title="{intl l='Browse this category'}"><img class="img-thumbnail" src="{$IMAGE_URL}" alt="{$TITLE}" /></a>
{/loop} {/loop}
</td> </td>
@@ -258,7 +258,7 @@
<td> <td>
{loop type="image" name="cat_image" source="product" source_id="$ID" limit="1" width="50" height="50" resize_mode="crop" backend_context="1"} {loop type="image" name="cat_image" source="product" source_id="$ID" limit="1" width="50" height="50" resize_mode="crop" backend_context="1"}
<a href="{url path='admin/product/edit' id=$ID}" title="{intl l='Edit this product'}"> <a href="{url path='admin/product/edit' id=$ID}" title="{intl l='Edit this product'}">
<img src="#IMAGE_URL" alt="#TITLE" /> <img src="{$IMAGE_URL}" alt="{$TITLE}" />
</a> </a>
{/loop} {/loop}

View File

@@ -146,7 +146,7 @@
</label> </label>
<div class="controls"> <div class="controls">
<input type="text" name="id" disabled="disabled" value="#ID" /> <input type="text" name="id" disabled="disabled" value="{$ID}" />
</div> </div>
</div> </div>
</div> </div>
@@ -162,7 +162,7 @@
<option value="0">{intl l="Top level"}</option> <option value="0">{intl l="Top level"}</option>
{loop name="cat-parent" type="category-tree" visible="*" category="0" exclude="{$current_category_id}"} {loop name="cat-parent" type="category-tree" visible="*" category="0" exclude="{$current_category_id}"}
<option value="#ID" style="padding-left: {3 + $LEVEL * 20}px" {if $parent_category_id == $ID}selected="selected"{/if}>{$TITLE}</option> <option value="{$ID}" style="padding-left: {3 + $LEVEL * 20}px" {if $parent_category_id == $ID}selected="selected"{/if}>{$TITLE}</option>
{/loop} {/loop}
</select> </select>

View File

@@ -21,18 +21,18 @@
{loop type="coupon" name="read_coupon" id=1 backend_context="true"} {loop type="coupon" name="read_coupon" id=1 backend_context="true"}
<div class="alert alert-info"> <div class="alert alert-info">
<span class="glyphicon glyphicon-question-sign"></span> <span class="glyphicon glyphicon-question-sign"></span>
{if #IS_ENABLED}{else}This coupon is disabled, you can enable to the bottom of this form.{/if} {if !$IS_ENABLED}This coupon is disabled, you can enable to the bottom of this form.{/if}
</div> </div>
<table class="table table-striped"> <table class="table table-striped">
<tbody> <tbody>
<tr> <tr>
<td>Code</td> <td>Code</td>
<td>#CODE</td> <td>{$CODE}</td>
</tr> </tr>
<tr> <tr>
<td>Title</td> <td>Title</td>
<td>#TITLE</td> <td>{$TITLE}</td>
</tr> </tr>
<tr> <tr>
<td>Expiration date</td> <td>Expiration date</td>
@@ -41,9 +41,9 @@
<tr> <tr>
<td>Usage left</td> <td>Usage left</td>
<td> <td>
{if #USAGE_LEFT} {if $USAGE_LEFT}
<span class="label label-success"> <span class="label label-success">
#USAGE_LEFT {$USAGE_LEFT}
</span> </span>
{else} {else}
<span class="label label-important"> <span class="label label-important">
@@ -53,14 +53,14 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<td colspan="2">#SHORT_DESCRIPTION</td> <td colspan="2">{$SHORT_DESCRIPTION}</td>
</tr> </tr>
<tr> <tr>
<td colspan="2">#DESCRIPTION</td> <td colspan="2">{$DESCRIPTION}</td>
</tr> </tr>
<tr> <tr>
<td colspan="2"> <td colspan="2">
{if #IS_CUMULATIVE} {if $IS_CUMULATIVE}
<span class="label label-success"> <span class="label label-success">
{intl l="May be cumulative"} {intl l="May be cumulative"}
</span> </span>
@@ -73,7 +73,7 @@
</tr> </tr>
<tr> <tr>
<td colspan="2"> <td colspan="2">
{if #IS_REMOVING_POSTAGE} {if $IS_REMOVING_POSTAGE}
<span class="label label-important"> <span class="label label-important">
{intl l="Will remove postage"} {intl l="Will remove postage"}
</span> </span>
@@ -86,7 +86,7 @@
</tr> </tr>
<tr> <tr>
<td>Amount</td> <td>Amount</td>
<td>#AMOUNT</td> <td>{$AMOUNT}</td>
</tr> </tr>
<tr> <tr>
<td>Conditions of application</td> <td>Conditions of application</td>

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}

View File

@@ -18,7 +18,7 @@
{form name="thelia.admin.login"} {form name="thelia.admin.login"}
<form action="{url path='/admin/checklogin'}" method="post" class="well form-inline" {form_enctype form=$form}> <form action="{url path='/admin/checklogin'}" method="post" class="well form-inline" {form_enctype form=$form}>
{if #form_error}<div class="alert alert-error">#form_error_message</div>{/if} {if $form_error}<div class="alert alert-error">{$form_error_message}</div>{/if}
{form_hidden_fields form=$form} {form_hidden_fields form=$form}

View File

@@ -50,7 +50,7 @@
<input type="hidden" name="{$name}" value="{{$edit_language_locale}}" /> <input type="hidden" name="{$name}" value="{{$edit_language_locale}}" />
{/form_field} {/form_field}
{if #form_error}<div class="alert alert-danger">#form_error_message</div>{/if} {if $form_error}<div class="alert alert-danger">{$form_error_message}</div>{/if}
{form_field form=$form field='name'} {form_field form=$form field='name'}
<div class="form-group {if $error}has-error{/if}"> <div class="form-group {if $error}has-error{/if}">