Created
January 23, 2015 01:11
-
-
Save jonvargas/74e5606b8805485bf1af to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use yii\web\View; | |
use yii\bootstrap\Progress; | |
use kartik\helpers\Html; | |
use kartik\grid\GridView; | |
use app\models\SampleTask; | |
use kartik\datecontrol\DateControl; | |
use kartik\widgets\ActiveForm; | |
use kartik\builder\Form; | |
use kartik\widgets\DatePicker; | |
use kartik\widgets\FileInput; | |
use kartik\widgets\Select2; | |
use kartik\widgets\SwitchInput; | |
use yii\helpers\ArrayHelper; | |
use app\models\search\UserSearch; | |
?> | |
<?php | |
$form = ActiveForm::begin([ | |
'validateOnSubmit' => true, | |
'type' => ActiveForm::TYPE_VERTICAL, | |
'options' => ['class' => 'main-task-form'] | |
]); | |
echo Form::widget([ | |
'model' => $modelData, | |
'form' => $form, | |
'columns' => 2, | |
'attributes' => [ | |
'closeDate' => [ | |
'type'=> 'widget', | |
'widgetClass'=> DatePicker::className(), | |
'options'=>[ | |
'type' => DatePicker::TYPE_COMPONENT_APPEND, | |
'pluginOptions' => [ | |
'autoclose' => true, | |
'language' => 'es', | |
'format' => 'dd-mm-yyyy', | |
'todayBtn' => 'linked', | |
], | |
], | |
], | |
'descriptionClose' => [ | |
'type'=>'textarea', | |
'options' => [ | |
'rows' => 3, | |
], | |
], | |
], | |
]); | |
?> | |
<?php ActiveForm::end() ?> | |
<!-- Form Ends Here --> | |
<!-- Submit Button Outside Form --> | |
<?= Html::button('Completar Tarea', ['class' => 'btn btn-primary btn-task-form']) ?> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment