From 2810de59a004e80a0c131bc2f9225b5a45012e57 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Wed, 4 Jan 2017 07:03:05 +0100 Subject: [PATCH] replace table by div-control-group in forms --- views/bootstrap/class.AddFile.php | 53 ++++---- views/bootstrap/class.AddSubFolder.php | 51 +++---- views/bootstrap/class.AttributeMgr.php | 127 +++++++++--------- views/bootstrap/class.Categories.php | 58 ++++---- views/bootstrap/class.EditFolder.php | 55 ++++---- views/bootstrap/class.EditUserData.php | 121 +++++++++-------- views/bootstrap/class.GroupMgr.php | 42 +++--- views/bootstrap/class.SetWorkflow.php | 29 ++-- views/bootstrap/class.UserDefaultKeywords.php | 116 ++++++++-------- views/bootstrap/class.WorkflowMgr.php | 43 +++--- 10 files changed, 368 insertions(+), 327 deletions(-) diff --git a/views/bootstrap/class.AddFile.php b/views/bootstrap/class.AddFile.php index ff54da928..7811e15d5 100644 --- a/views/bootstrap/class.AddFile.php +++ b/views/bootstrap/class.AddFile.php @@ -98,30 +98,37 @@ $(document).ready( function() { $this->contentContainerStart(); ?> -
+ - - - - - - - - - - - - - - - - - -
: -printFileChooser('userfile', false); -?> -
:
:
">
+ +
+ +
+ printFileChooser('userfile', false); ?> +
+
+ + +
+ +
+ +
+
+ + +
+ +
+ +
+
+ + +
+ "> +
+
contentContainerEnd(); diff --git a/views/bootstrap/class.AddSubFolder.php b/views/bootstrap/class.AddSubFolder.php index 6f5e74b55..105a1145c 100644 --- a/views/bootstrap/class.AddSubFolder.php +++ b/views/bootstrap/class.AddSubFolder.php @@ -103,40 +103,43 @@ $(document).ready( function() { $this->contentContainerStart(); ?> -
+ - - - - - - - - - - - - - - - + + + +
+ +
+
+ +
+ +
+
+ +
+ +
printSequenceChooser($folder->getSubFolders('s')); if($orderby != 's') echo "
".getMLText('order_by_sequence_off');?>
+
getAllAttributeDefinitions(array(SeedDMS_Core_AttributeDefinition::objtype_folder, SeedDMS_Core_AttributeDefinition::objtype_all)); if($attrdefs) { foreach($attrdefs as $attrdef) { ?> - - - - +
+ +
printAttributeEditField($attrdef, '') ?>
+
- - - -
:
:
:printSequenceChooser($folder->getSubFolders('s')); if($orderby != 's') echo "
".getMLText('order_by_sequence_off');?>
getName()); ?>:printAttributeEditField($attrdef, '') ?>
">
+ +
+ "> +
+
contentContainerEnd(); diff --git a/views/bootstrap/class.AttributeMgr.php b/views/bootstrap/class.AttributeMgr.php index bfb80af3a..1d2c019b7 100644 --- a/views/bootstrap/class.AttributeMgr.php +++ b/views/bootstrap/class.AttributeMgr.php @@ -166,7 +166,7 @@ $(document).ready( function() { -
+ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+
+ +
-
+ + + + + +
+
- -
- : - + +
+ +
+ + + +
+ +
-
+ + + +
+
+ +
getMultipleValues()) ? "checked" : "" ?>/> -
- : - + + + + +
+ +
-
+ + + + +
+
+ +
-
+ + + + +
+
+ + +
getValueSet()) > 30) { ?> -
+ + + + +
+
+ +
-
- -
+ + + +
+ +
- - - - - - - - - -
+
+ + +
isUsed()) { + if($category->isUsed()) { ?>

@@ -76,30 +77,35 @@ $(document).ready( function() {
-
: -
- - - - - - - - + + + + + + + + + + + + + +
+ +
  - - -
+ + +
+
+ +
+
+ + contentHeading(getMLText("edit_folder_props")); $this->contentContainerStart(); ?> -
- - - - - - - - - - - + + + +
+ +
+ +
+
+
+ +
+ +
+
getID() == $rootfolderid) ? false : $folder->getParent(); if ($parent && $parent->getAccessMode($user) > M_READ) { - print ""; - print ""; - print "\n"; + print "\n"; } if($attrdefs) { foreach($attrdefs as $attrdef) { ?> - - - - - + +
+ printAttributeEditField($attrdef, $folder->getAttributeValue($attrdef)) ?> +
+ + - - - - -
:
:
" . getMLText("sequence") . ":"; + print "
"; + print ""; + print "
"; $this->printSequenceChooser($parent->getSubFolders('s'), $folder->getID()); if($orderby != 's') echo "
".getMLText('order_by_sequence_off'); - print "
getName()); ?>printAttributeEditField($attrdef, $folder->getAttributeValue($attrdef)) ?>
+
+ +
contentContainerEnd(); diff --git a/views/bootstrap/class.EditUserData.php b/views/bootstrap/class.EditUserData.php index 632d4ec58..af6ccd32a 100644 --- a/views/bootstrap/class.EditUserData.php +++ b/views/bootstrap/class.EditUserData.php @@ -118,73 +118,84 @@ $(document).ready( function() { $this->contentHeading(getMLText("edit_user_details")); $this->contentContainerStart(); ?> -
- - - - - - - - - + +
+ +
+ +
+
+
+ +
+ +
+
- - - - + + - - - - - - - - - - - - - - - - +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
- - - - - - - - + + - - - - + + - - - - + + - - - - -
:
:
: +
+ +
-
:
:
:
:
: +
+ +
hasImage()) print ""; else printMLText("no_user_image"); ?> -
: + + +
+ +
printFileChooser('userfile', false, "image/jpeg"); ?> -
: +
+ +
-
: +
+ +
-
+
+ +
params['allusers']; $groups = $this->params['allgroups']; ?> -
+ - + - - - - +
+
+ +
+
- - - - - - - - - - - - -
:
:
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
getAllWorkflows(); if($workflows) { ?> -
+ - - - - - - - - - -
-
:
-
+ +
+ +
"; $mandatoryworkflow = $user->getMandatoryWorkflow(); @@ -99,14 +99,13 @@ $(document).ready( function() { } echo ""; ?> -
- ">
+ + + +
+ "> +
+
contentHeading(getMLText("edit_default_keywords")); ?>
-
-
-: - +
-
+ +
+ + + + -
-
+
+
- - + getOwner(); if ($owner->getID() != $user->getID()) continue; - print " + -
getID()."\" style=\"display : none;\">"; + print "
getID()."\" style=\"display : none;\">"; ?> - - - - - - - - - - - - - - - - - + -
-
- - - - -
-
: -
getID()?>"> +
+ + + + + + +
+ +
getID()?>"> +
+ +
- -
: + + + +
+ +
getKeywordLists(); if (count($lists) == 0) @@ -175,11 +178,9 @@ $(document).ready(function() {
-
+ + +
"> @@ -187,13 +188,10 @@ $(document).ready(function() { ">
-
-
diff --git a/views/bootstrap/class.WorkflowMgr.php b/views/bootstrap/class.WorkflowMgr.php index fe02ab698..6844cd1ce 100644 --- a/views/bootstrap/class.WorkflowMgr.php +++ b/views/bootstrap/class.WorkflowMgr.php @@ -135,13 +135,13 @@ $(document).ready(function() { } ?>
-
+ - - + + - + isUsed()) { ?> - +
+ +
- - - - - - - - + + + + +
+ +
- - - - -
:">
:"> + + +
+ +
+