Advertisement
Guest User

Untitled

a guest
Jul 14th, 2014
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.87 KB | None | 0 0
  1. <?php
  2. /* @var $this OrderController */
  3. /* @var $model Order */
  4. /* @var $form CActiveForm */
  5. ?>
  6.  
  7. <div class="form">
  8.  
  9. <?php
  10. $this->renderPartial('../mediafile/upload',array('model'=>$model->mediafiles,'multiple'=>'single'));
  11.  
  12. $form=$this->beginWidget('bootstrap.widgets.TbActiveForm', array(
  13. 'id'=>'order-form',
  14. // Please note: When you enable ajax validation, make sure the corresponding
  15. // controller action is handling ajax validation correctly.
  16. // There is a call to performAjaxValidation() commented in generated controller code.
  17. // See class documentation of CActiveForm for details on this.
  18. 'enableAjaxValidation'=>false,
  19. 'htmlOptions' => array('enctype' => 'multipart/form-data')
  20. )); ?>
  21.  
  22. <?php
  23. //display error/succes messages after save/update
  24. $this->renderPartial('../errors/_postMessage',array('model'=>$model));
  25.  
  26. $this->widget(
  27. 'bootstrap.widgets.TbTabs',
  28. array(
  29. 'type' => 'tabs', // 'tabs' or 'pills'
  30. 'tabs' => array(
  31. array('label' => 'Details', 'content' => $this->renderPartial('_credit',array('model'=>$model,"form"=>$form,'person'=>$person,'mediaFile'=>$mediaFile), true), 'active' => true ),
  32. ),
  33. )
  34. );
  35. ?>
  36.  
  37. <div class="row buttons">
  38. <?php
  39. $this->widget(
  40. 'bootstrap.widgets.TbButton',
  41. array('buttonType' => 'submit', 'label' => $model->isNewRecord ? 'Create' : 'Save','htmlOptions'=>array('name'=>'save'))
  42. );
  43. $this->widget(
  44. 'bootstrap.widgets.TbButton',
  45. array('buttonType' => 'submit', 'label' => $model->isNewRecord ? 'Create and Close' : 'Save and Close','htmlOptions'=>array('name'=>'saveAndClose','style'=>'margin-left:10px;'))
  46. );
  47. ?>
  48. </div>
  49.  
  50.  
  51. <?php $this->endWidget(); ?>
  52.  
  53. </div><!-- form -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement