diff --git a/views/bootstrap/class.ViewDocument.php b/views/bootstrap/class.ViewDocument.php index 2dd3e79b0..35f72c94b 100644 --- a/views/bootstrap/class.ViewDocument.php +++ b/views/bootstrap/class.ViewDocument.php @@ -83,6 +83,21 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Theme_Style { } } /* }}} */ + /** + * Output a single attribute in the document info section + * + * @param object $attribute attribute + */ + protected function printAttribute($attribute) { /* {{{ */ + $attrdef = $attribute->getAttributeDefinition(); +?> + + getName()); ?>: + getAttributeValue($attribute); ?> + +getAttributeDefintionGroupList(true, $f); diff --git a/views/bootstrap/class.ViewFolder.php b/views/bootstrap/class.ViewFolder.php index 29a88571e..65384a113 100644 --- a/views/bootstrap/class.ViewFolder.php +++ b/views/bootstrap/class.ViewFolder.php @@ -98,6 +98,21 @@ class SeedDMS_View_ViewFolder extends SeedDMS_Theme_Style { } } /* }}} */ + /** + * Output a single attribute in the document info section + * + * @param object $attribute attribute + */ + protected function printAttribute($attribute) { /* {{{ */ + $attrdef = $attribute->getAttributeDefinition(); +?> + + getName()); ?>: + getAttributeValue($attribute); ?> + +params['user']; $node = $this->params['node']; @@ -236,16 +251,6 @@ $('body').on('click', '.order-btn', function(ev) { $this->printDeleteDocumentButtonJs(); } /* }}} */ - protected function printAttribute($attribute) { /* {{{ */ - $attrdef = $attribute->getAttributeDefinition(); -?> - - getName()); ?>: - getAttributeValue($attribute); ?> - -params['dms']; $user = $this->params['user'];