close() public method

Close the current form.
public close ( ) : string
return string
 public function close()
 {
     $results = '';
     if (Generator::END == $this->gen->getCodePosition()) {
         $results .= $this->generateClientValidatorCode();
     }
     $results .= parent::close();
     return $results;
 }
 /**
  * Close the current form.
  *
  * @return string 
  * @static 
  */
 public static function close()
 {
     return \Collective\Html\FormBuilder::close();
 }
 /**
  * Reset and close the form.
  *
  * @return string
  */
 public function close()
 {
     $this->type = null;
     $this->leftColumnClass = $this->rightColumnClass = null;
     return $this->form->close();
 }
 /**
  * Closes form and reset $this->rules
  *
  * @see Collective\Html\FormBuilder
  */
 public function close()
 {
     $this->resetValidation();
     return parent::close();
 }
 /**
  * Return the closing form tag.
  *
  * @return string
  */
 public function close()
 {
     return $this->html->close();
 }
Beispiel #6
0
    $out .= '<button data-toggle="tooltip" data-placement="top" data-original-title="' . $tooltip . '" type="submit" data-id="' . $id . '" class="btn btn-danger btn-sm ' . ($icon ? 'btn-fw' : '') . '">';
    $out .= $icon ? '<i class="fa fa-times"></i> &nbsp;' . $text : $text;
    $out .= '</button>';
    $out .= Form::close();
    return $out;
});
Form::macro('undelete', function ($route, $id, $text = '', $tooltip = false) {
    $model = explode('.', $route);
    $model = ucfirst(substr($model[1], 0, -1));
    $tooltip = $tooltip ? $tooltip : 'Reativar ' . $model;
    $out = Form::open(['route' => [$route . '.undestroy', $id], 'method' => 'PUT', 'data-confirm' => $id . '-ativar', 'style' => 'display: inline-block']);
    $out .= '<button data-toggle="tooltip" data-placement="top"
        data-original-title="' . $tooltip . '" type="submit" data-confirm="' . $id . '-ativar" class="btn btn-warning btn-fw btn-sm">';
    $out .= '<i class="fa fa-undo"></i> &nbsp;' . $text;
    $out .= '</button>';
    $out .= Form::close();
    return $out;
});
Form::macro('edit', function ($route, $id, $text = '', $tooltip = false) {
    $model = explode('.', $route);
    $model = ucfirst(substr($model[1], 0, -1));
    $tooltip = $tooltip ? $tooltip : 'Editar ' . $model;
    $out = '<a data-toggle="tooltip" data-placement="top" data-original-title="' . $tooltip . '" href="' . route($route . '.edit', $id) . '" class="btn btn-fw btn-success btn-sm">';
    $out .= '<i class="fa fa-pencil"></i> &nbsp;' . $text;
    $out .= '</a>';
    return $out;
});
HTML::macro('dataBr', function ($data_from_bd) {
    return Carbon\Carbon::createFromFormat('Y-m-d', $data_from_bd)->format('d/m/Y');
});
HTML::macro('cancel', function ($route, $title = 'Cancelar', $tooltip = '') {