diff --git a/views/bootstrap/class.Bootstrap.php b/views/bootstrap/class.Bootstrap.php index b7132c9ae..543450f83 100644 --- a/views/bootstrap/class.Bootstrap.php +++ b/views/bootstrap/class.Bootstrap.php @@ -1368,6 +1368,25 @@ background-image: linear-gradient(to bottom, #882222, #111111);; } } /* }}} */ + /** + * Get attributes for a button opening a modal box + * + * @param array $config contains elements + * target: id of modal box + * remote: URL of data to be loaded into box + * @return string + */ + function getModalBoxLinkAttributes($config) { /* {{{ */ + $attrs = array(); + $attrs[] = array('data-target', '#'.$config['target']); + if(isset($config['remote'])) + $attrs[] = array('href', $config['remote']); + $attrs[] = array('data-toggle', 'modal'); + $attrs[] = array('role', 'button'); + $attrs[] = array('class', $config['class']); + return $attrs; + } /* }}} */ + /** * Get html for button opening a modal box * @@ -1380,6 +1399,12 @@ background-image: linear-gradient(to bottom, #882222, #111111);; function getModalBoxLink($config) { /* {{{ */ $content = ''; $content .= "$attrval) $content .= ' '.$attrname.'="'.$attrval.'"'; @@ -1842,8 +1867,8 @@ $(document).ready(function() { case SeedDMS_Core_AttributeDefinition::type_date: $objvalue = $attribute ? (is_object($attribute) ? $attribute->getValue() : $attribute) : ''; $dateformat = getConvertDateFormat($this->params['settings']->_dateformat); - $content .= ' - + $content .= ' + '; break; @@ -2996,6 +3021,11 @@ $('body').on('click', '[id^=\"table-row-folder\"] td:nth-child(2)', function(ev) if($comment) { $content .= "
".htmlspecialchars($comment).""; } + if($categories = $document->getCategories()) { + $content .= "
"; + foreach($categories as $category) + $content .= "".$category->getName()." "; + } if(!empty($extracontent['bottom_title'])) $content .= $extracontent['bottom_title']; $content .= "\n"; diff --git a/views/bootstrap/class.ViewDocument.php b/views/bootstrap/class.ViewDocument.php index ef34e903f..7db4cfa2e 100644 --- a/views/bootstrap/class.ViewDocument.php +++ b/views/bootstrap/class.ViewDocument.php @@ -469,6 +469,40 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Theme_Style { } } /* }}} */ + protected function showActions($items) { /* {{{ */ + print "
"; + return; + print ""; + } /* }}} */ + function show() { /* {{{ */ parent::show(); @@ -649,7 +683,7 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Theme_Style { print "".htmlspecialchars($latestContent->getOriginalFileName())."\n"; // print "".getMLText("file")."\n"; // print "".getMLText("comment")."\n"; - print "\n"; +// print "\n"; print "\n"; print "\n"; print ""; @@ -679,7 +713,6 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Theme_Style { print "\n"; print ""; +// print "\n"; - print ""; +// print ""; if ($file_exists){ - print ""; } - print ""; echo ""; print "\n\n"; $this->contentContainerEnd(); diff --git a/views/bootstrap4/class.Bootstrap4.php b/views/bootstrap4/class.Bootstrap4.php index 5627d5d6b..cca465982 100644 --- a/views/bootstrap4/class.Bootstrap4.php +++ b/views/bootstrap4/class.Bootstrap4.php @@ -305,9 +305,9 @@ background-image: linear-gradient(to bottom, #882222, #111111);; $dms = $this->params['dms']; $accessobject = $this->params['accessobject']; echo "