Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /* @var $this OrderController */
- /* @var $model Order */
- /* @var $form CActiveForm */
- ?>
- <div class="form">
- <?php
- $this->renderPartial('../mediafile/upload',array('model'=>$model->mediafiles,'multiple'=>'single'));
- $form=$this->beginWidget('bootstrap.widgets.TbActiveForm', array(
- 'id'=>'order-form',
- // Please note: When you enable ajax validation, make sure the corresponding
- // controller action is handling ajax validation correctly.
- // There is a call to performAjaxValidation() commented in generated controller code.
- // See class documentation of CActiveForm for details on this.
- 'enableAjaxValidation'=>false,
- 'htmlOptions' => array('enctype' => 'multipart/form-data')
- )); ?>
- <?php
- //display error/succes messages after save/update
- $this->renderPartial('../errors/_postMessage',array('model'=>$model));
- $this->widget(
- 'bootstrap.widgets.TbTabs',
- array(
- 'type' => 'tabs', // 'tabs' or 'pills'
- 'tabs' => array(
- array('label' => 'Details', 'content' => $this->renderPartial('_credit',array('model'=>$model,"form"=>$form,'person'=>$person,'mediaFile'=>$mediaFile), true), 'active' => true ),
- ),
- )
- );
- ?>
- <div class="row buttons">
- <?php
- $this->widget(
- 'bootstrap.widgets.TbButton',
- array('buttonType' => 'submit', 'label' => $model->isNewRecord ? 'Create' : 'Save','htmlOptions'=>array('name'=>'save'))
- );
- $this->widget(
- 'bootstrap.widgets.TbButton',
- array('buttonType' => 'submit', 'label' => $model->isNewRecord ? 'Create and Close' : 'Save and Close','htmlOptions'=>array('name'=>'saveAndClose','style'=>'margin-left:10px;'))
- );
- ?>
- </div>
- <?php $this->endWidget(); ?>
- </div><!-- form -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement