From 9c98104bfa329687f5d4b5b39502734018dc93f5 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Thu, 19 Mar 2020 15:56:35 +0100 Subject: [PATCH] sync with other Mgr pages --- views/bootstrap/class.AttributeGroupMgr.php | 79 ++++++++++++--------- 1 file changed, 46 insertions(+), 33 deletions(-) diff --git a/views/bootstrap/class.AttributeGroupMgr.php b/views/bootstrap/class.AttributeGroupMgr.php index 5047cbe07..6efb19c0b 100644 --- a/views/bootstrap/class.AttributeGroupMgr.php +++ b/views/bootstrap/class.AttributeGroupMgr.php @@ -101,9 +101,11 @@ $(document).ready( function() { $( "#selector" ).change(function() { $('div.ajax').trigger('update', {attrdefgroupid: $(this).val()}); + window.history.pushState({"html":"","pageTitle":""},"", '../out/out.AttributeGroupMgr.php?attrdefgroupid=' + $(this).val()); }); }); printClickFolderJs(); } /* }}} */ function info() { /* {{{ */ @@ -133,13 +135,30 @@ $(document).ready( function() { } } /* }}} */ + function actionmenu() { /* {{{ */ + $dms = $this->params['dms']; + $user = $this->params['user']; + $selgroup = $this->params['selattrdefgroup']; + + if($selgroup) { +?> +
+ + + + +
+params['dms']; $user = $this->params['user']; $allUsers = $this->params['attrdefs']; $groups = $this->params['attrdefgroups']; ?> -
+ formField( + getMLText("name"), + array( + 'element'=>'input', + 'type'=>'text', + 'name'=>'name', + 'value'=>($group ? htmlspecialchars($group->getName()) : '') + ) + ); + $this->formField( + getMLText("comment"), + array( + 'element'=>'textarea', + 'name'=>'comment', + 'rows'=>5, + 'value'=>($group ? htmlspecialchars($group->getComment()) : '') + ) + ); + $this->formSubmit(' '.getMLText('save')); ?> - -check_access('RemoveAttributeDefinitionGroup')) { -?> - - - - - - - - - - - - - - - - - -
html_link('RemoveAttributeDefinitionGroup', array('attrdefgroupid'=>$group->getID()), array('class'=>'btn'), ' '.getMLText("rm_attrdefgroup"), false); ?>
:
:
-
-: - +
+ + +
getID()."\"" : "") ?>>
check_view_access($this, array('action'=>'info'))) { ?>
getID()."\"" : "") ?>>
@@ -360,4 +374,3 @@ $(document).ready( function() { $this->htmlEndPage(); } /* }}} */ } -?>