<?php

use yii\helpers\Html;
use yii\helpers\Url;
use yii\widgets\ActiveForm;
use yii\web\View;
use sjaakp\taggable\TagEditor;

/* @var $this yii\web\View */
/* @var $model common\models\ServicesLeftColumn */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="services-left-column-form">

    <?php $form = ActiveForm::begin(); ?>

    <?= $form->field($model, 'title')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'items')->widget(TagEditor::className(), [
        'tagEditorOptions' => [
        ]
    ]) ?>

    <div class="form-group">
        <?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
    </div>

    <?php ActiveForm::end(); ?>

</div>
<!--?php
$this->registerJs('
		$("#btnadd").click(function () {
    $(".field-servicesleftcolumn-items").append("<input type=\"text\" class=\"form-control\" name=\"ServicesLeftColumn[items]\" id=\"\" value=\"\" /> <br>");
    
});
		
		', View::POS_END);
	
?-->
