aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/templates
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2013-03-04 17:15:22 +0000
committerOlivier Lamy <olamy@apache.org>2013-03-04 17:15:22 +0000
commit919c027674cb3735c66270359cb9856b09c3ccbc (patch)
tree2c9016ade7d0314420715da80723a1209edd0c45 /archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/templates
parent315f5825773fbba9bc748f22cef754264582e400 (diff)
downloadarchiva-919c027674cb3735c66270359cb9856b09c3ccbc.tar.gz
archiva-919c027674cb3735c66270359cb9856b09c3ccbc.zip
cleanup a bit no need to observe the fake mapping for add line
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1452407 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/templates')
-rw-r--r--archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/templates/archiva/general-admin.html54
1 files changed, 29 insertions, 25 deletions
diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/templates/archiva/general-admin.html b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/templates/archiva/general-admin.html
index 465bc7aea..8ec100d5b 100644
--- a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/templates/archiva/general-admin.html
+++ b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/templates/archiva/general-admin.html
@@ -1247,30 +1247,6 @@
</script>
-<script id="redback-runtime-ldap-mapping-grid" type="text/html">
- <thead>
- <tr>
- <th>${$.i18n.prop('redback.runtime.ldap.mapping.group.label')}</th>
- <th>${$.i18n.prop('redback.runtime.ldap.mapping.roles.label')}</th>
- </tr>
- </thead>
- <tbody id="ldap-group-mappings-tbody">
-
- {{each(i, ldapGroupMapping) itemsOnCurrentPage()}}
- <tr>
- <td>${ldapGroupMapping.group()}
- <select id="roles-group-${ldapGroupMapping.group()}" data-bind="options: ldapGroups, value: ldapGroupMapping.group, optionsCaption: 'Select a LDAP Group'"
- size="1"></select>
- </td>
- <td>
- <select id="roles-group-mapping-${ldapGroupMapping.group()}" data-bind="options: $parent.allRoleNames, selectedOptions: ldapGroupMapping.roleNames"
- size="5" multiple="true" ></select>
- </td>
- </tr>
- {{/each}}
- </tbody>
-</script>
-
<script id="redback-runtime-ldap-mapping-tmpl" type="text/html">
<div class="well" id="ldap-group-mappings-div">
<table class="table table-condensed">
@@ -1289,7 +1265,7 @@
</span>
</td>
<td>
- <select data-bind="options: ldapGroups, optionsCaption: 'Select a LDAP Group',value: $parent.newLdapGroupMapping().group" size="1">
+ <select data-bind="options: ldapGroups,value: $parent.newLdapGroupMapping().group" size="1">
</select>
</td>
<td>
@@ -1319,6 +1295,34 @@
</div>
</script>
+
+<!-- doesn't with simple grid knockout binding -->
+<!--
+<script id="redback-runtime-ldap-mapping-grid" type="text/html">
+ <thead>
+ <tr>
+ <th>${$.i18n.prop('redback.runtime.ldap.mapping.group.label')}</th>
+ <th>${$.i18n.prop('redback.runtime.ldap.mapping.roles.label')}</th>
+ </tr>
+ </thead>
+ <tbody id="ldap-group-mappings-tbody">
+
+ {{each(i, ldapGroupMapping) itemsOnCurrentPage()}}
+ <tr>
+ <td>${ldapGroupMapping.group()}
+ <select id="roles-group-${ldapGroupMapping.group()}" data-bind="options: ldapGroups, value: ldapGroupMapping.group, optionsCaption: 'Select a LDAP Group'"
+ size="1"></select>
+ </td>
+ <td>
+ <select id="roles-group-mapping-${ldapGroupMapping.group()}" data-bind="options: $parent.allRoleNames, selectedOptions: ldapGroupMapping.roleNames"
+ size="5" multiple="true" ></select>
+ </td>
+ </tr>
+ {{/each}}
+ </tbody>
+</script>
+-->
+
<script id="redback-runtime-general-content-impl-informations" type="text/html">
<div class="well draggable-item">
${$data.description}