controller: share
action: path
-
##
## Home Directory Path
##
label: 'Map Home to Drive'
class: big-text
id: account-homedir-path
+
+##
+## Home Directory Path
+##
+groups:
+ type: list
+ help: 'List of Groups that this User belongs to'
+ title: 'Select the Groups that this User will be a part of'
+ name: share_group_list
+ label: 'Groups'
+ class: big-text
+ id: account-insert-groups
+
+ field-ops:
+ - manual-add
+ - user-group-selection
+
+ field-ops-descriptor:
+ user-group-selection:
+ title: 'Open Group Selection Popup'
+ image:
+ name: users.png
+ alt: 'Select Users/Groups Icon'
+ link:
+ controller: share
+ action: users_groups
+ copy-to: account-insert-groups-list
+
+ manual-add:
+ title: 'Assign this Group. Separate by , to add more than one'
+ image:
+ name: plus-small.png
+ alt: 'Add User/Group Icon'
+ link:
+ copy-from: account-insert-groups
+ copy-to: account-insert-groups-list
<li id="content-tab4" class="tab">
<ol class="col-1">
+ <%
+ group_ids = []
+ for g in c.user.group_list:
+ group_ids.append(g.rid)
+ %>
+ <li>${field.put("groups", group_ids)}</li>
</ol>
</li>
</ul>
pathSelectors.each(function(p, i) {
new PathSelector(popupId + "" + (i + 1), p);
});
+
+ var userGroupSelectors = $$("a.user-group-selection");
+ popupId = "usergroup-selector-";
+ userGroupSelectors.each(function(p, i) {
+ new UserGroupSelector(popupId + "" + (i + 1), p);
+ });
+
+ var manualAdd = $$("a.manual-add");
+ manualAdd.each(function(p, i) {
+ var copyfrom = $(getUrlParam(p.getProperty("href"), "copyfrom"));
+ var copyto = $(getUrlParam(p.getProperty("href"), "copyto"));
+
+ new ManualItemList({trigger: p, copyFrom: copyfrom, copyTo: copyto});
+ });
});
</script>