From e5a046fc43206e159b60bf7992c90438c2852f51 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Tue, 14 Feb 2012 22:59:47 +0000 Subject: [PATCH] [MRM-1575] rewrite repositories group page fix ordering with drag&drop. git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1244259 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/webapp/css/archiva.css | 7 +++- .../main/webapp/js/archiva/network-proxies.js | 2 +- .../webapp/js/archiva/proxy-connectors.js | 12 +++--- .../main/webapp/js/archiva/repositories.js | 6 +-- .../webapp/js/archiva/repository-groups.js | 40 ++++++++++++++++--- .../archiva/templates/proxy-connectors.html | 10 ++--- .../archiva/templates/repository-groups.html | 23 ++++++++--- 7 files changed, 73 insertions(+), 27 deletions(-) diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/css/archiva.css b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/css/archiva.css index 9a556f95f..e50a4d7b8 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/css/archiva.css +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/css/archiva.css @@ -51,7 +51,12 @@ } .draggable-item { - cursor: move; + cursor: move; + margin-bottom: 12px; + min-height: 2px; + padding: 12px; + border: 2px dotted #ddd; + margin-left: 2em } .network-proxy-remote-item{ diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/network-proxies.js b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/network-proxies.js index e36225fe1..800dc1967 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/network-proxies.js +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/network-proxies.js @@ -154,7 +154,7 @@ $(function() { var modifiedNetworkProxies = getModifiedNetworkProxies(); openDialogConfirm(function(){ - for(i=0;i
- ${managedRepository.id} -
- ${managedRepository.name} + ${managedRepository.id} +
+ ${managedRepository.name}
{{if proxyConnectorsViewModel.bulkSave()}}

- ${$.i18n.prop('save.all')}

+ ${$.i18n.prop('save.all')}

{{/if}}
diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/templates/repository-groups.html b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/templates/repository-groups.html index 7b6288fbd..e17fa8086 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/templates/repository-groups.html +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/templates/repository-groups.html @@ -37,7 +37,7 @@
+ data-bind="sortable: { template: 'repository-group-edit-order-tmpl',data:repositoryGroup.managedRepositories,afterMove: repositoryMoved}">
@@ -53,7 +53,7 @@ {{each(i, repositoryGroup) repositoryGroups}} - + ${repositoryGroup.id}