0
0
mirror of https://github.com/salesagility/SuiteCRM.git synced 2024-11-22 16:02:36 +00:00
salesagility_SuiteCRM/themes/SuiteP/include/DetailView/actions_buttons.tpl
2023-07-18 15:54:18 +01:00

26 lines
1.1 KiB
Smarty

<div class="buttons">
{{if !isset($form.buttons)}}
{{sugar_button module="$module" id="EDIT" view="$view" form_id="formDetailView"}}
{{sugar_button module="$module" id="DUPLICATE" view="EditView" form_id="formDetailView"}}
{{sugar_button module="$module" id="DELETE" view="$view" form_id="formDetailView"}}
{{else}}
{{counter assign="num_buttons" start=0 print=false}}
{{foreach from=$form.buttons key=val item=button}}
{{if !is_array($button) && in_array($button, $built_in_buttons)}}
{{counter print=false}}
{{sugar_button module="$module" id=$button view="EditView" form_id="formDetailView"}}
{{/if}}
{{/foreach}}
{{if count($form.buttons) > $num_buttons}}
{{foreach from=$form.buttons key=val item=button}}
{{if is_array($button) && $button.customCode}}
{{sugar_button module="$module" id=$button view="EditView" form_id="formDetailView"}}
{{/if}}
{{/foreach}}
{{/if}}
{{if empty($form.hideAudit) || !$form.hideAudit}}
{{sugar_button module="$module" id="Audit" view="EditView" form_id="formDetailView"}}
{{/if}}
{{/if}}
</div>