/**
  * Creates the form to edit an existing aspect or to create a new one
  *
  * @param string $strMode
  * @param class_admin_formgenerator $objFormManager
  *
  * @return string
  * @permissions right5
  */
 protected function actionNewAspect($strMode = "new", class_admin_formgenerator $objFormManager = null)
 {
     $objAspect = null;
     if ($strMode == "new") {
         $objAspect = new class_module_system_aspect();
     } else {
         if ($strMode == "edit") {
             $objAspect = new class_module_system_aspect($this->getSystemid());
             if (!$objAspect->rightEdit()) {
                 $objAspect = null;
             }
         }
     }
     if ($objAspect != null) {
         if ($objFormManager == null) {
             $objFormManager = $this->getFormForAspect($objAspect);
         }
         $objFormManager->addField(new class_formentry_hidden("", "mode"))->setStrValue($strMode);
         $strReturn = $objFormManager->renderForm(class_link::getLinkAdminHref($this->getArrModule("modul"), "saveAspect"));
     } else {
         $strReturn = $this->getLang("commons_error_permissions");
     }
     return $strReturn;
 }