diff --git a/views/bootstrap/class.FolderAttributeGroup.php b/views/bootstrap/class.FolderAttributeGroup.php index cb9487f46..d4f8b8502 100644 --- a/views/bootstrap/class.FolderAttributeGroup.php +++ b/views/bootstrap/class.FolderAttributeGroup.php @@ -79,7 +79,6 @@ $(document).ready(function() { $this->pageNavigation($this->getFolderPathHTML($folder, true), "view_folder", $folder); $this->contentHeading(getMLText("edit_existing_attribute_groups")); - $this->contentContainerStart(); $attrgrpIDs = array(); @@ -101,7 +100,7 @@ $(document).ready(function() { print "\n"; print "getID()."\">\n"; print ""; - print ""; + print ""; print ""; print "\n"; }else print ""; @@ -122,35 +121,31 @@ $(document).ready(function() { ?>
-
+ - - - - - - - - - - - -
: - -
">
+ + +contentContainerStart(); + $options = array(); + $options[] = array(0, getMLText('select_one')); + foreach($allGroups as $groupObj) { + $options[] = array($groupObj->getID(), htmlspecialchars($groupObj->getName()), $user->isAdmin() && in_array($groupObj->getID(), $attrgrpIDs)); + } + $this->formField( + getMLText("group"), + array( + 'element'=>'select', + 'name'=>'groupid', + 'options'=>$options + ) + ); + $this->contentContainerEnd(); + $this->formSubmit(' '.getMLText("add")); +?>
contentContainerEnd(); $this->contentEnd(); $this->htmlEndPage(); } /* }}} */