if ($error) { ?> <div> <?php echo Helper::translate('srbac', 'There is an error in your configuration'); ?> <?php $disabled = array('disabled' => true); ?> </div> <?php } ?> <?php echo SHtml::hiddenField("action", "Install"); ?> <?php echo SHtml::checkBox("demo", false, $disabled); echo Helper::translate('srbac', 'Create demo authItems?'); ?> <br /> <?php echo SHtml::submitButton(Helper::translate('srbac', 'Install'), $disabled); ?> </div> <?php echo SHtml::endForm(); ?> </div>
$cb_title = $delete ? "Delete Tasks" : "Create tasks"; ?> <?php $button_title = $delete ? "Delete" : "Create"; ?> <?php $button_action = $delete ? "autoDeleteItems" : "autoCreateItems"; ?> <?php if (!$taskViewingExists || !$taskAdministratingExists || $delete) { ?> <?php echo Helper::translate('srbac', $cb_title); ?> <?php echo SHtml::checkBox("createTasks", true, array("id" => "cb_createTasks")); ?> <?php } ?> </div> <?php if ($taskViewingExists && $delete || !$taskViewingExists && !$delete) { ?> <div class="simple"> <?php echo SHtml::textField("tasks[user]", $task . "Viewing", array("id" => "userTask", "readonly" => true)); ?> </div> <?php }
</tr> <tr valign="top"> <td><?php echo SHtml::activeDropDownList(Assignments::model(), 'itemname', SHtml::listData(AuthItem::model()->findAll($criteria), 'name', 'name'), array('size' => $this->module->listBoxNumberOfLines, 'class' => 'dropdown', 'ajax' => array('type' => 'POST', 'url' => array('getOpers'), 'update' => '#operations', 'beforeSend' => 'function(){ $("#loadMessTask").addClass("srbacLoading"); }', 'complete' => 'function(){ $("#loadMessTask").removeClass("srbacLoading"); }'))); ?> <div> <?php echo Helper::translate("srbac", "Clever Assigning"); ?> : <?php echo SHtml::checkBox("clever", Yii::app()->getGlobalState("cleverAssigning")); ?> </div> </td> </tr> </table> <br /> <div class="message" id="loadMessTask"> <?php echo $message; ?> </div> <?php echo SHtml::endForm(); ?>
if ($error) { ?> <div> <?php echo Helper::translate('srbac', 'There is an error in your configuration'); ?> <?php $disabled = array('disabled' => true); ?> </div> <?php } ?> <?php echo SHtml::hiddenField("action", "Install"); ?> <?php echo SHtml::checkBox("demo", true, $disabled); echo Helper::translate('srbac', 'Create demo authItems?'); ?> <br /> <?php echo SHtml::submitButton(Helper::translate('srbac', 'Install'), $disabled); ?> </div> <?php echo SHtml::endForm(); ?> </div>