Пример #1
0
 /**
  *
  */
 public function crudControls($target = null, $id = null, $extras = array())
 {
     // Edit Button
     $html = Button::sm_primary_link("{$target}/edit/{$id}", '<span class="icon-pencil icon-white">', array('class' => 'ui-tooltip', 'data-toggle' => 'tooltip', 'data-placement' => 'bottom', 'data-original-title' => 'Alterar')) . "&nbsp;" . Form::open(array('url' => "{$target}/remove/{$id}", 'method' => 'delete', 'style' => 'display: inline')) . Button::sm_danger_submit('<span class="icon-remove icon-white">', array('class' => 'ui-tooltip', 'data-toggle' => 'tooltip', 'data-placement' => 'bottom', 'data-original-title' => 'Excluir')) . Form::close();
     return $html;
 }