<?
if ( $this -> _back || $this -> _save || $this -> _save_ajax || $this -> _cancel || $this -> _add || $this -> _update || $this -> _delete_ajax )
{
  ?>
  <div class="action-icons">
    <? if ( $this -> _back ):?>
      <a class="button button_cancel" href="./?act=back">Wstecz</a>
    <? endif;?>
    
    <? if ( $this -> _save ):?>
      <a class="button button_add" href="#" onclick='$( "#<?= $this -> _id_form;?>" ).submit(); return false;'>
        <?= $this -> _save === true ? $tmp = 'Zatwierdź' : $tmp = $this -> _save;?>
      </a>
    <? endif;?>
      
    <? if ( $this -> _save_ajax ):?>
      <a class='button' onClick='<?= $this -> _save_ajax;?>'>Zastosuj</a>
    <? endif;?>
      
    <? if ( $this -> _cancel ):?>
      <a href="./" class="button button_cancel">Anuluj</a>
    <? endif;?>
      
    <? if ( $this -> _add ):?>
      <a href="./?rw=add" class="button button_add"><?= $this -> _add === true ? $tmp = 'Dodaj' : $tmp = $this -> _add;?></a>
    <? endif;?>
    
    <? if ( $this -> _update ):?>
      <a class='button' href="./?rw=update">Aktualizuj</a>
    <? endif;?>
    
    <? if ( $this -> _checkbox ):?>
      <a class='button button_delete' onClick='<?= $this -> _checkbox['action'];?>'><?= $this -> _checkbox['name'];?></a>
    <? endif;?>
      
    <? if ( $this -> _delete_ajax ):?>
      <a class='button button_delete' onClick="<?= $this -> _delete_ajax;?>">Usuń wybrane</a>
    <? endif;?>
  </div>
  <?
}