本文整理汇总了PHP中Collective\Html\FormBuilder::close方法的典型用法代码示例。如果您正苦于以下问题:PHP FormBuilder::close方法的具体用法?PHP FormBuilder::close怎么用?PHP FormBuilder::close使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Collective\Html\FormBuilder
的用法示例。
在下文中一共展示了FormBuilder::close方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: close
public function close()
{
$results = '';
if (Generator::END == $this->gen->getCodePosition()) {
$results .= $this->generateClientValidatorCode();
}
$results .= parent::close();
return $results;
}
示例2: close
/**
* Close the current form.
*
* @return string
* @static
*/
public static function close()
{
return \Collective\Html\FormBuilder::close();
}
示例3: close
/**
* Reset and close the form.
*
* @return string
*/
public function close()
{
$this->type = null;
$this->leftColumnClass = $this->rightColumnClass = null;
return $this->form->close();
}
示例4: close
/**
* Closes form and reset $this->rules
*
* @see Collective\Html\FormBuilder
*/
public function close()
{
$this->resetValidation();
return parent::close();
}
示例5: close
/**
* Return the closing form tag.
*
* @return string
*/
public function close()
{
return $this->html->close();
}
示例6: function
$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> ' . $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> ' . $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> ' . $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 = '') {