echo $form->checkBox($model, 'allDay', array('onChange' => 'giveSaveButtonFocus();')); ?> </div> <div class="cell dialog-cell"> <?php echo $form->label($model, 'priority', array('class' => 'dialog-label')); ?> <?php echo $form->dropDownList($model, 'priority', array('Low' => Yii::t('actions', 'Low'), 'Medium' => Yii::t('actions', 'Medium'), 'High' => Yii::t('actions', 'High')), array('onChange' => 'giveSaveButtonFocus();')); ?> <?php echo $form->label($model, 'color', array('class' => 'dialog-label')); ?> <?php echo $form->dropDownList($model, 'color', Actions::getColors(), array('onChange' => 'giveSaveButtonFocus();')); ?> </div> <div class="cell dialog-cell"> <?php if ($model->assignedTo == null && is_numeric($model->calendarId)) { // assigned to calendar instead of user? $model->assignedTo = $model->calendarId; } ?> <?php echo $form->label($model, 'assignedTo', array('class' => 'dialog-label')); ?> <?php echo $form->dropDownList($model, 'assignedTo', $users + X2Calendar::getEditableCalendarNames(), array('id' => 'dialog_actionsAssignedToDropdown', 'onChange' => 'giveSaveButtonFocus();'));
?> </div> <div class="cell"> <?php echo $form->label($event, 'priority'); ?> <?php echo $form->dropDownList($event, 'priority', array('Low' => Yii::t('actions', 'Low'), 'Medium' => Yii::t('actions', 'Medium'), 'High' => Yii::t('actions', 'High'))); //echo $form->error($actionModel,'priority'); ?> <?php echo $form->label($event, 'color'); ?> <?php echo $form->dropDownList($event, 'color', Actions::getColors()); ?> </div> <div class="cell"> <?php echo $form->label($event, 'assignedTo'); ?> <?php echo $form->dropDownList($event, 'assignedTo', $users + X2Calendar::getEditableCalendarNames(), array('id' => 'actionsAssignedToDropdown')); ?> <?php //echo $form->error($actionModel,'assignedTo'); ?> <?php /* x2temp */ echo "<br />";