53 lines
2.4 KiB
HTML
Executable File
53 lines
2.4 KiB
HTML
Executable File
{*
|
|
A toolbar displayed in forms, to display language change flags, submit and close buttons.
|
|
|
|
Parameters:
|
|
|
|
- hide_flags: true / false. If true, the flags will not be visible
|
|
- hide_submit_buttons: true / false. If true, only the close button will be deplayed.
|
|
- show_currencies: true/false. If true, show the currency selection bar
|
|
- page_url: the current page URL. Dafault id $current_url. Used to switchedition anguage.
|
|
- close_url: no default. URL displayed when close button is clicked. If empty, the close button is not displayed.
|
|
*}
|
|
|
|
<div class="row inner-toolbar">
|
|
<div class="col-md-3 inner-actions">
|
|
{if $hide_flags != true}
|
|
<ul class="nav nav-pills">
|
|
{loop name="lang_list" type="lang"}
|
|
<li {if $ID == $edit_language_id}class="active"{/if}>
|
|
<a href="{url path={$page_url|default:$current_url} edit_language_id=$ID}" title="{intl l='Edit information in %lng' lng=$TITLE}">
|
|
<img src="{image file="../assets/img/flags/{$CODE}.gif"}" alt="{intl l=$TITLE}" />
|
|
</a>
|
|
</li>
|
|
{/loop}
|
|
</ul>
|
|
{/if}
|
|
</div>
|
|
|
|
<div class="col-md-3 inner-actions">
|
|
{if $show_currencies == true}
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="button-group">
|
|
{loop name="currency_list" type="currency"}
|
|
<a class="btn btn-sm {if $ID == $edit_currency_id}btn-primary{else}btn-default{/if}" href="{url noamp=1 path='/admin/products/update' edit_currency_id=$ID product_id=$product_id current_tab='details'}" title="{intl l='Edit prices in %curr' curr=$NAME}">
|
|
{$SYMBOL}
|
|
</a>
|
|
{/loop}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{/if}
|
|
</div>
|
|
|
|
<div class="col-md-6 inner-actions">
|
|
{if $hide_submit_buttons != true}
|
|
<button type="submit" name="save_mode" value="stay" class="btn btn-default btn-success" title="{intl l='Save'}">{intl l='Save'} <span class="glyphicon glyphicon-ok"></span></button>
|
|
<button type="submit" name="save_mode" value="close" class="btn btn-default btn-info" title="{intl l='Save and close'}">{intl l='Save and close'} <span class="glyphicon glyphicon-remove"></span></button>
|
|
{/if}
|
|
{if ! empty($close_url)}
|
|
<a href="{$close_url}" class="btn btn-default">{intl l='Close'} <span class="glyphicon glyphicon-remove"></span></a>
|
|
{/if}
|
|
</div>
|
|
</div> |