protected function renderRightSideFormLayoutForEdit($form) { assert('$form instanceof ZurmoActiveForm'); $content = parent::renderRightSideFormLayoutForEdit($form); $content .= "<h3>" . Zurmo::t('Core', 'Quick Tip') . '</h3>'; $content .= ZurmoHtml::tag('p', array(), Zurmo::t('UsersModule', 'Users cannot be deleted. You can however change their status to inactive.')); return $content; }
protected function renderRightSideFormLayoutForEdit($form) { assert('$form instanceof ZurmoActiveForm'); $content = parent::renderRightSideFormLayoutForEdit($form); $content .= "<h3>" . Zurmo::t('ZurmoModule', 'Rights and Permissions') . '</h3><div id="owner-box">'; $element = new UserElement($this->getModel(), 'owner', $form); $element->editableTemplate = '{label}{content}{error}'; $content .= $element->render() . '</div>'; $element = new DerivedExplicitReadWriteModelPermissionsElement($this->getModel(), 'null', $form); $element->editableTemplate = '{label}{content}{error}'; $content .= $element->render(); return $content; }