<div class="form-group"> <?php echo $form->label($model, 'tags', array('class' => 'control-label col-lg-2')); ?> <div class="col-lg-10"> <?php echo $form->hiddenField($model, 'tag_names'); ?> </div> </div> <?php if (Yii::app()->user->checkAccess('Admin')) { ?> <?php echo BsHtml::dropDownListControlGroup('role', $model->getRole(), CHtml::listData(Yii::app()->authManager->getRoles(), 'name', 'name'), array('formLayout' => $form->layout, 'label' => 'Role')); ?> <fieldset> <legend>Delivery Addresses</legend> <?php echo $form->dropDownListControlGroup($model, 'delivery_location_key', $model->getDeliveryLocations(), array('help' => 'Changing this will update all your order locations')); ?> <div class="row"> <div class="col-md-offset-2 col-md-10"> <p><?php echo CHtml::link('Add a location', array('userLocation/create', 'custId' => $model->id), array('class' => 'btn btn-sm btn-primary')); ?> </p> <div class="row">
</a> <div id="repeat-order" class="panel-collapse collapse"> <div class="panel-body"> <?php $form = $this->beginWidget('CActiveForm', array('id' => 'checkout-form', 'enableAjaxValidation' => false)); ?> <div class="dropDownPanel" id="repeatOrderDropdown"> <div class="row"> <div class="col-md-4"> <?php echo BsHtml::dropDownListControlGroup('months_advance', null, array(1 => '1 Month', 3 => '3 Months', 6 => '6 Months'), array('label' => 'Order in advance for', 'prompt' => 'Don\'t order in advance')); ?> </div> <div class="col-md-3"> <?php echo BsHtml::dropDownListControlGroup('every', 1, array('week' => 'week', 'fortnight' => 'fortnight'), array('label' => 'Every')); ?> </div> <div class="col-md-2"> <div class="form-group no-label"> <?php echo CHtml::submitButton('Update order', array('name' => 'btn_recurring', 'class' => 'btn btn-default', 'id' => 'btn-recurring')); ?> </div> </div> </div> </div> <?php if ($BoxoCart->DeliveryDate) { ?> <p class="help-block">This form will copy your order from <strong><?php