×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: ActionScript
Posted by: Việt Hưng
Added: Dec 26, 2014 3:49 PM
Views: 6
Tags: no tags
  1. <?= $form->field($model, 'status')->widget(SwitchInput::className(), [
  2.                 'containerOptions' => [
  3.                         'class' => '',
  4.                 ]
  5.         ]) ?>
  6.  
  7.         <?= $form->field($model, 'created')->textInput() ?>
  8.  
  9.         <?= $form->field($model, 'created_at')->widget(DateTimePicker::className()) ?>
  10.  
  11.         <?= $form->field($model, 'updated')->textInput() ?>
  12.  
  13.         <?= $form->field($model, 'updated_at')->widget(DateTimePicker::className()) ?>
  14.  
  15.         <div class="form-group">
  16.                 <?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
  17.         </div>