{* Smarty template *}
{* Begins a row of buttons for cases when there's already one ('Delete all')
button *}
{if !$mdelButtonText}
{message key='common.button.deleteSelected' assign='mdelButtonText'}
{/if}
{if !$dataIsEmpty && !$dontNeedMdelButton}
{assign var=firstButtonExists value=false}
{/if}
{if !$dataIsEmpty && !$dontNeedMdelButton}
{allowed permId=$deletePermId assign=allowedMassDelete}
{if $allowedMassDelete}
{button title=$mdelButtonText class="form_mass_button" onClick="trySubmit('massDeleteForm');"}
{/if}
{/if}
{if !$dontNeedBottomButtons}
{include file="bottom_buttons.tpl"}
{/if}