/* @var $this yii\web\View */
use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
use yii\bootstrap\Modal;
use app\assets\AppAsset;
AppAsset::register($this);
$this->title = 'CodeNote';
?>
id} ") ?> type== Html::encode("{$folder->type} ") ?> >
= Html::encode("{$folder->fname} ") ?>
Modal::begin([
'header' => '
新建
',
'id' => 'new-modal'
]);?>
'id' => 'folder',
'enableAjaxValidation'=>false,
'enableClientValidation'=>true,
'action' => ['/home/new'],
'layout' => 'horizontal',
'fieldConfig' => [
'template' => "{label}\n
{input}
\n
{error}
",
'labelOptions' => ['class' => 'col-lg-4 control-label '],
],
]); ?>
= $form->field($this->params['new'], 'fname', ['labelOptions' => ['label' => '名字']])->textInput(['autofocus' => true]) ?>
= $form->field($this->params['new'], 'type')->textInput()->hiddenInput(['value'=>'0'])->label(false); ?>
= $form->field($this->params['new'], 'pid')->textInput()->hiddenInput(['value'=>'0'])->label(false); ?>
?>