Created
January 23, 2015 01:02
-
-
Save jonvargas/55cb77a55186220bc3a1 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, | |
'enableAjaxValidation' => 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::submitButton('Completar Tarea', ['class' => 'btn btn-primary btn-task-form', 'data-confirm' => 'Esta acción finalizará la tarea actual y continuará el flujo de ejecución definido en el proceso. ¿Desea continuar?']) ?> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment