diff --git a/Products/zms/plugins/www/zmi.core.css b/Products/zms/plugins/www/zmi.core.css index c57a97057..3b76156c6 100644 --- a/Products/zms/plugins/www/zmi.core.css +++ b/Products/zms/plugins/www/zmi.core.css @@ -520,9 +520,6 @@ footer .back-to-top.hide { margin-top: -2px; display: inline-block; } -.btn-group.managing, .btn-group.packaging { - margin-right:0.2rem; -} .center h1 { line-height:1.4em; font-size:x-large; diff --git a/Products/zms/plugins/www/zmi.core.scss b/Products/zms/plugins/www/zmi.core.scss index f56e012ea..916dc303a 100644 --- a/Products/zms/plugins/www/zmi.core.scss +++ b/Products/zms/plugins/www/zmi.core.scss @@ -84,10 +84,6 @@ nav .nav-tabs .nav-link.active { opacity:0.5; } -.btn-group.managing, .btn-group.packaging { - margin-right:0.2em; -} - .center h1 { line-height:1.4em; font-size:x-large; diff --git a/Products/zms/zpt/ZMS/manage_users.zpt b/Products/zms/zpt/ZMS/manage_users.zpt index 16f4ccbe9..75be79311 100644 --- a/Products/zms/zpt/ZMS/manage_users.zpt +++ b/Products/zms/zpt/ZMS/manage_users.zpt @@ -40,7 +40,7 @@ tal:define="name python:search_param[0]; label python:search_param[1]" tal:attributes="value name; selected python:['','selected'][request.get('search_param',here.getConfProperty('LDAPUserFolder.uid_attr',''))==name]" tal:content="python:label"> - the search-param + the search-param @@ -58,11 +58,11 @@ res valid_userids/records; dummy0 python:[here.operator_setitem(x,'__id__',x['name']) for x in res]" > + metaObjAttrIds=metaObjAttrIds, + metaObjAttrs=metaObjAttrs, + records=res, + actions=['select']+[[],['insert']][int(userAdderPlugin is not None)], + insert='zmiModalAddUserOpen();')"> metaobj_recordset_main_grid @@ -96,28 +96,28 @@ function zmiModalInsertUserLoad(url) { } } $("input:text").each(function() { - data[$(this).attr("name")] = $(this).val(); + data[$(this).attr("name")] = $(this).val(); }); $("select option:selected").each(function() { - data[$(this).parent().attr("name")] = $(this).val(); + data[$(this).parent().attr("name")] = $(this).val(); }); $('#zmiModalinsertUser .modal-body').html('' +getZMILangStr('MSG_LOADING')); $.get(self.location.href,data,function(result) { $('#zmiModalinsertUser .modal-body').html(result); $("#zmiModalinsertUser #insertUserForm .btn-group") .mouseover( function(evt) { - $(this).parents(".ZMSRecordSet.main_grid").css({overflow:"visible"}); + $(this).parents(".ZMSRecordSet.main_grid").css({overflow:"visible"}); }); $("#zmiModalinsertUser #insertUserForm input:radio").change(function() { - self.location.href = zmiParams['base_url'] - +'?lang='+getZMILang() - +'&id='+$(this).prop("value"); + self.location.href = zmiParams['base_url'] + +'?lang='+getZMILang() + +'&id='+$(this).prop("value"); }); $("#zmiModalinsertUser #insertUserForm a").each(function() { - var href = $(this).attr("href"); - $(this) - .click(function() {return zmiModalInsertUserLoad(href);}) - .attr("href","javascript:;"); + var href = $(this).attr("href"); + $(this) + .click(function() {return zmiModalInsertUserLoad(href);}) + .attr("href","javascript:;"); }); }); return false; @@ -130,13 +130,13 @@ function zmiModalInsertUserOpen(context) { + userFolder python:here.getUserFolder(); + userAdderPlugin python:here.getUserAdderPlugin(); + userDefs python:here.getSecurityUsers(request.get('show_acquired',False)); + roleDefs python:here.getSecurityRoles(); + userNames python:here.sort_list(list(userDefs)); + langs_optpl python:[[x,here.getLanguageLabel(x)] for x in here.getLanguages(request)]; + roles_optpl python:[(x,here.getRoleName(x)) for x in ['ZMSAdministrator','ZMSEditor','ZMSAuthor','ZMSSubscriber','ZMSUserAdministrator']+list(roleDefs)]">
@@ -161,10 +161,10 @@ function zmiModalInsertUserOpen(context) {
+ tal:define="editUser python:request.get('id') not in here.getRootElement().getSecurityRoles(); + editRole python:not editUser; + action python: editUser and 'manage_userProperties' or 'manage_roleProperties'; + multilang python:editUser and len(here.getLangIds())>1">
@@ -302,17 +302,17 @@ function zmiModalInsertUserOpen(context) {
- -    + tal:define=" + security_roles python:here.getRootElement().getSecurityRoles().get(request['id'],{}); + nodes python:list(security_roles.get('nodes',{})); + security_users python:here.getConfProperty('ZMS.security.users',{}).values(); + is_deletable python:len(list(nodes))==0 and not len([x for x in security_users if len([y for y in x.get('nodes',{}).values() if request['id'] in y['roles']])>0])>0"> + +   
@@ -340,22 +340,22 @@ function zmiModalInsertUserOpen(context) {
@@ -372,14 +372,14 @@ function zmiModalInsertUserOpen(context) {
@@ -471,18 +471,22 @@ function zmiModalInsertUserOpen(context) { -
- +
+ + +
+
- - - - + - - -
+ + +
+
+ + +
@@ -491,14 +495,14 @@ function zmiModalInsertUserOpen(context) { userNames python:[x for x in userNames if not securityUsers[x].get('nodes',{})] if request.get('show_filter',False) else userNames;"> . diff --git a/Products/zms/zpt/ZMSFormatProvider/manage_charformats.zpt b/Products/zms/zpt/ZMSFormatProvider/manage_charformats.zpt index fb49247c0..2b562d4a3 100644 --- a/Products/zms/zpt/ZMSFormatProvider/manage_charformats.zpt +++ b/Products/zms/zpt/ZMSFormatProvider/manage_charformats.zpt @@ -72,7 +72,7 @@
-
+
@@ -130,11 +130,13 @@
-
- - - - +
+ + +
+
+ +
diff --git a/Products/zms/zpt/ZMSFormatProvider/manage_textformats.zpt b/Products/zms/zpt/ZMSFormatProvider/manage_textformats.zpt index 9e6e26545..291578c28 100644 --- a/Products/zms/zpt/ZMSFormatProvider/manage_textformats.zpt +++ b/Products/zms/zpt/ZMSFormatProvider/manage_textformats.zpt @@ -136,11 +136,13 @@
-
- - - - +
+ + +
+
+ +
diff --git a/Products/zms/zpt/ZMSMetacmdProvider/manage_main.zpt b/Products/zms/zpt/ZMSMetacmdProvider/manage_main.zpt index 9b91b8ddb..93037fd6d 100644 --- a/Products/zms/zpt/ZMSMetacmdProvider/manage_main.zpt +++ b/Products/zms/zpt/ZMSMetacmdProvider/manage_main.zpt @@ -247,17 +247,15 @@
- +
+ + +
+
+ + + +
diff --git a/Products/zms/zpt/ZMSMetamodelProvider/manage_main.zpt b/Products/zms/zpt/ZMSMetamodelProvider/manage_main.zpt index 1d947e936..dbea3908b 100644 --- a/Products/zms/zpt/ZMSMetamodelProvider/manage_main.zpt +++ b/Products/zms/zpt/ZMSMetamodelProvider/manage_main.zpt @@ -516,21 +516,19 @@
- +
+ + +
+
+ + + +
+
+ + +
@@ -1058,7 +1056,7 @@ transition: width 0.5s ease-in-out; } .zmi .fa-filter.tablefilter { - margin: 0.1rem -2.25rem 0 1.25rem; + margin: 0.1rem -2.25rem 0 0.25rem; opacity:.3; cursor:pointer; }