Advertisement
Guest User

Untitled

a guest
Aug 23rd, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. $attributes = [
  2. ...
  3. 'birthday',
  4. ...
  5. ];
  6. echo DetailView::widget([
  7. 'model'=>$model,
  8. 'attributes'=>$attributes,
  9. 'condensed'=>true,
  10. 'hover'=>true,
  11. 'hAlign'=>'left',
  12. 'mode'=>DetailView::MODE_VIEW,
  13. 'panel'=>[
  14. 'heading'=>'Анкета # ' . $model->id,
  15. 'type'=>DetailView::TYPE_INFO,
  16. ]
  17.  
  18. echo DatePicker::widget([
  19. 'name' => 'dp_3',
  20. 'type' => DatePicker::TYPE_COMPONENT_APPEND,
  21. 'pluginOptions' => [
  22. 'autoclose'=>true,
  23. 'format' => 'dd-M-yyyy'
  24. ]
  25. ]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement