Added hide_save_buttons and hide_save_and_close_button parameters
This commit is contained in:
@@ -4,7 +4,9 @@ A toolbar displayed in forms, to display language change flags, submit and close
|
|||||||
Parameters:
|
Parameters:
|
||||||
|
|
||||||
- hide_flags: true / false. If true, the flags will not be visible
|
- 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.
|
- hide_submit_buttons: true / false. If true, only the close button will be displayed.
|
||||||
|
- hide_save_buttons: true / false. If true, the "Save" button will be hidden
|
||||||
|
- hide_save_and_close_button: true / false. If true, the "Save and close" button will be hidden
|
||||||
- show_currencies: true/false. If true, show the currency selection bar
|
- show_currencies: true/false. If true, show the currency selection bar
|
||||||
- page_url: the current page URL. Default is $current_url. Used to switchedition anguage.
|
- page_url: the current page URL. Default is $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.
|
- close_url: no default. URL displayed when close button is clicked. If empty, the close button is not displayed.
|
||||||
@@ -48,8 +50,12 @@ Parameters:
|
|||||||
|
|
||||||
<div class="col-md-6 inner-actions">
|
<div class="col-md-6 inner-actions">
|
||||||
{if $hide_submit_buttons != true}
|
{if $hide_submit_buttons != true}
|
||||||
<button type="submit" name="save_mode" value="stay" class="form-submit-button btn btn-sm btn-default btn-success" title="{intl l='Save'}">{intl l='Save'} <span class="glyphicon glyphicon-ok"></span></button>
|
{if $hide_save_buttons != true}
|
||||||
<button type="submit" name="save_mode" value="close" class="form-submit-button btn btn-sm btn-default btn-info" title="{intl l='Save and close'}">{intl l='Save and close'} <span class="glyphicon glyphicon-remove"></span></button>
|
<button type="submit" name="save_mode" value="stay" class="form-submit-button btn btn-sm btn-default btn-success" title="{intl l='Save'}">{intl l='Save'} <span class="glyphicon glyphicon-ok"></span></button>
|
||||||
|
{/if}
|
||||||
|
{if $hide_save_and_close_button != true}
|
||||||
|
<button type="submit" name="save_mode" value="close" class="form-submit-button btn btn-sm btn-default btn-info" title="{intl l='Save and close'}">{intl l='Save and close'} <span class="glyphicon glyphicon-remove"></span></button>
|
||||||
|
{/if}
|
||||||
{/if}
|
{/if}
|
||||||
{if ! empty($close_url)}
|
{if ! empty($close_url)}
|
||||||
<a href="{$close_url}" class="page-close-button btn btn-sm btn-default">{intl l='Close'} <span class="glyphicon glyphicon-remove"></span></a>
|
<a href="{$close_url}" class="page-close-button btn btn-sm btn-default">{intl l='Close'} <span class="glyphicon glyphicon-remove"></span></a>
|
||||||
|
|||||||
Reference in New Issue
Block a user