Пример #1
0
 /**
  * Open up a new HTML form.
  *
  * @param array $options
  * @return string 
  * @static 
  */
 public static function open($options = array())
 {
     //Method inherited from \Illuminate\Html\FormBuilder
     return \Bootstrapper\Form::open($options);
 }
Пример #2
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;
 }