Added AdminUtilities Smarty plugin, optimized templates
This commit is contained in:
@@ -40,94 +40,75 @@
|
||||
</caption>
|
||||
<tr>
|
||||
<th>
|
||||
{if $order == 'id'}
|
||||
<i class="icon icon-chevron-up"></i>
|
||||
{$order_change = 'id_reverse'}
|
||||
{elseif $order == 'id_reverse'}
|
||||
<i class="icon icon-chevron-down"></i>
|
||||
{$order_change = 'id'}
|
||||
{else}
|
||||
{$order_change = 'id'}
|
||||
{/if}
|
||||
<a href="{url path='/admin/configuration/currencies' order=$order_change}">
|
||||
{intl l="ID"}
|
||||
</a>
|
||||
{admin_sortable_header
|
||||
current_order=$order
|
||||
order='id'
|
||||
reverse_order='id_reverse'
|
||||
path='/admin/configuration/currencies'
|
||||
label="{intl l='ID'}"
|
||||
}
|
||||
</th>
|
||||
|
||||
<th>
|
||||
{if $order == 'alpha'}
|
||||
<i class="icon icon-chevron-up"></i>
|
||||
{$order_change = 'alpha_reverse'}
|
||||
{elseif $order == 'alpha_reverse'}
|
||||
<i class="icon icon-chevron-down"></i>
|
||||
{$order_change = 'alpha'}
|
||||
{else}
|
||||
{$order_change = 'alpha'}
|
||||
{/if}
|
||||
<a href="{url path='/admin/configuration/currencies' order=$order_change}">
|
||||
{intl l="Name"}
|
||||
</a>
|
||||
{admin_sortable_header
|
||||
current_order=$order
|
||||
order='alpha'
|
||||
reverse_order='alpha_reverse'
|
||||
path='/admin/configuration/currencies'
|
||||
label="{intl l='Name'}"
|
||||
}
|
||||
</th>
|
||||
|
||||
<th>
|
||||
{if $order == 'code'}
|
||||
<i class="icon icon-chevron-up"></i>
|
||||
{$order_change = 'code_reverse'}
|
||||
{elseif $order == 'code_reverse'}
|
||||
<i class="icon icon-chevron-down"></i>
|
||||
{$order_change = 'code'}
|
||||
{else}
|
||||
{$order_change = 'code'}
|
||||
{/if}
|
||||
<a href="{url path='/admin/configuration/currencies' order=$order_change}">{intl l="ISO 4217 Code"}</a>
|
||||
<th class="text-center">
|
||||
{admin_sortable_header
|
||||
current_order=$order
|
||||
order='code'
|
||||
reverse_order='code_reverse'
|
||||
path='/admin/configuration/currencies'
|
||||
label="{intl l="ISO 4217 Code"}"
|
||||
}
|
||||
<a title="{intl l='More information about ISO 4217'}" href="http://fr.wikipedia.org/wiki/ISO_4217" target="_blank"><i class="icon icon-question-sign"></i></a>
|
||||
</th>
|
||||
|
||||
<th>
|
||||
{if $order == 'symbol'}
|
||||
<i class="icon icon-chevron-up"></i>
|
||||
{$order_change = 'symbol_reverse'}
|
||||
{elseif $order == 'symbol_reverse'}
|
||||
<i class="icon icon-chevron-down"></i>
|
||||
{$order_change = 'symbol'}
|
||||
{else}
|
||||
{$order_change = 'symbol'}
|
||||
{/if}
|
||||
<a href="{url path='/admin/configuration/currencies' order=$order_change}">
|
||||
{intl l="Symbol"}
|
||||
</a>
|
||||
<th class="text-center">
|
||||
{admin_sortable_header
|
||||
current_order=$order
|
||||
order='symbol'
|
||||
reverse_order='symbol_reverse'
|
||||
path='/admin/configuration/currencies'
|
||||
label="{intl l="Symbol"}"
|
||||
}
|
||||
</th>
|
||||
|
||||
<th>
|
||||
{if $order == 'rate'}
|
||||
<i class="icon icon-chevron-up"></i>
|
||||
{$order_change = 'rate_reverse'}
|
||||
{elseif $order == 'rate_reverse'}
|
||||
<i class="icon icon-chevron-down"></i>
|
||||
{$order_change = 'rate'}
|
||||
{else}
|
||||
{$order_change = 'rate'}
|
||||
{/if}
|
||||
<a href="{url path='/admin/configuration/currencies' order=$order_change}">
|
||||
{intl l="Rate in €"}
|
||||
</a>
|
||||
<th class="text-right">
|
||||
{admin_sortable_header
|
||||
current_order=$order
|
||||
order='rate'
|
||||
reverse_order='rate_reverse'
|
||||
path='/admin/configuration/currencies'
|
||||
label="{intl l="Rate in €"}"
|
||||
}
|
||||
</th>
|
||||
|
||||
<th>
|
||||
{if $order == 'manual'}
|
||||
<i class="icon icon-chevron-up"></i>
|
||||
{$order_change = 'manual_reverse'}
|
||||
{elseif $order == 'manual_reverse'}
|
||||
<i class="icon icon-chevron-down"></i>
|
||||
{$order_change = 'manual'}
|
||||
{else}
|
||||
{$order_change = 'manual'}
|
||||
{/if}
|
||||
|
||||
<a href="{url path='/admin/configuration/currencies' order="$order_change"}">{intl l="Position"}</a>
|
||||
<th class="text-center">
|
||||
{admin_sortable_header
|
||||
current_order=$order
|
||||
order='manual'
|
||||
reverse_order='manual_reverse'
|
||||
path='/admin/configuration/currencies'
|
||||
label="{intl l="Position"}"
|
||||
}
|
||||
</th>
|
||||
|
||||
<th>{intl l="Default"}</th>
|
||||
<th class="text-center">
|
||||
{admin_sortable_header
|
||||
current_order=$order
|
||||
order='is_default'
|
||||
reverse_order='is_default_reverse'
|
||||
path='/admin/configuration/currencies'
|
||||
label="{intl l="Default"}"
|
||||
}
|
||||
</th>
|
||||
|
||||
{module_include location='currencies_table_header'}
|
||||
|
||||
@@ -148,25 +129,24 @@
|
||||
{/elseloop}
|
||||
</td>
|
||||
|
||||
<td>{$ISOCODE}</td>
|
||||
<td class="text-center">{$ISOCODE}</td>
|
||||
|
||||
<td>{$SYMBOL}</td>
|
||||
<td class="text-center">{$SYMBOL}</td>
|
||||
|
||||
<td>{$RATE|string_format:"%.4f"}</td>
|
||||
<td class="text-right">{$RATE|string_format:"%.4f"}</td>
|
||||
|
||||
<td>
|
||||
{loop type="auth" name="can_change" roles="ADMIN" permissions="admin.category.edit"}
|
||||
<a href="{url path='/admin/configuration/currencies/positionUp' currency_id=$ID}"><i class="icon-arrow-up"></i></a>
|
||||
<span class="currencyPositionChange" data-id="{$ID}">{$POSITION}</span>
|
||||
<a href="{url path='/admin/configuration/currencies/positionDown' currency_id=$ID}"><i class="icon-arrow-down"></i></a>
|
||||
{/loop}
|
||||
|
||||
{elseloop rel="can_change"}
|
||||
{$POSITION}
|
||||
{/elseloop}
|
||||
<td class="text-center">
|
||||
{admin_position_block
|
||||
permission="admin.currencies.edit"
|
||||
path="/admin/configuration/currencies"
|
||||
url_parameter="currency_id"
|
||||
in_place_edit_class="currencyPositionChange"
|
||||
position="$POSITION"
|
||||
id="$ID"
|
||||
}
|
||||
</td>
|
||||
|
||||
<td><input type="radio" name="default[{$ID}]" value="1" {if $IS_DEFAULT}checked="checked"{/if}/></td>
|
||||
<td class="text-center"><input type="radio" name="default[{$ID}]" value="1" {if $IS_DEFAULT}checked="checked"{/if}/></td>
|
||||
|
||||
{module_include location='currencies_table_row'}
|
||||
|
||||
@@ -238,6 +218,10 @@
|
||||
|
||||
<div class="controls">
|
||||
{loop type="lang" name="default-lang" default_only="1"}
|
||||
|
||||
{* Switch edition to the current locale *}
|
||||
<input type="hidden" name="edit_language_id" value="{$ID}" />
|
||||
|
||||
{form_field form=$form field='locale'}
|
||||
<input type="hidden" name="{$name}" value="{$LOCALE}" />
|
||||
{/form_field}
|
||||
|
||||
Reference in New Issue
Block a user