From 8438e68f4cdc8daf5293df84cbb58b75f9c745a4 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Tue, 14 Feb 2012 23:00:02 +0000 Subject: [PATCH] [MRM-1575] rewrite repositories group page add save button in grid. git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1244261 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/webapp/css/archiva.css | 9 ++++++ .../webapp/js/archiva/repository-groups.js | 26 ++++++++++++++++- .../archiva/templates/repository-groups.html | 29 +++++++++++++------ 3 files changed, 54 insertions(+), 10 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 e50a4d7b8..1bcb049eb 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 @@ -53,6 +53,7 @@ .draggable-item { cursor: move; margin-bottom: 12px; + margin-left: 4px; min-height: 2px; padding: 12px; border: 2px dotted #ddd; @@ -65,4 +66,12 @@ padding: 12px; border: 2px dotted #ddd; margin-left: 2em +} + +.dotted{ + margin-bottom: 12px; + min-height: 2px; + padding: 12px; + border: 2px dotted #ddd; + margin-left: 2em } \ No newline at end of file diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repository-groups.js b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repository-groups.js index 7490f9594..00d1c6fa5 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repository-groups.js +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repository-groups.js @@ -47,7 +47,7 @@ $(function() { $.log("repositoryMoved:"+arg.sourceIndex+" to " + arg.targetIndex); var repositories=[]; for(var i=0;i${$.i18n.prop('repository.groups.repositories.grid.header')} ${$.i18n.prop('edit')} ${$.i18n.prop('delete')} + ${$.i18n.prop('save')} {{each(i, repositoryGroup) repositoryGroups}} @@ -72,6 +73,13 @@ + + {{if repositoryGroup.modified()}} + + ${$.i18n.prop('save')} + + {{/if}} + {{/each}} @@ -79,26 +87,29 @@