]> source.dussan.org Git - archiva.git/commitdiff
use warning label for modal confirn delete repositories
authorOlivier Lamy <olamy@apache.org>
Sun, 26 Feb 2012 23:06:50 +0000 (23:06 +0000)
committerOlivier Lamy <olamy@apache.org>
Sun, 26 Feb 2012 23:06:50 +0000 (23:06 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1293955 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-web-common/src/main/resources/org/apache/archiva/i18n/default.properties
archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repositories.js
archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/templates/repositories.html

index b6443366ceca65955bcc5a49d36428f850f6a45f..84a3b948c660638cae233287dcba44e2cb88d7b4 100644 (file)
@@ -99,6 +99,7 @@ remoterepository.download.remote.confirm=Are you sure to download Remote Index ?
 remoterepository.download.remote.now=Immediate Download ?
 remoterepository.download.remote.full=Full download ?
 remoterepository.download.remote.scheduled=Download Remote Index of repository {0} scheduled.
+remoterepository.delete.confirm=Are you sure to delete Remote Repository {0} ?
 
 
 #network proxy
index eee15776dff39315f896a0754a59c4b66939bef7..83e96ca6b22ad33a194e6ebe22a8ea6969c2d906 100644 (file)
@@ -705,7 +705,8 @@ $(function() {
                   }
                 )}, $.i18n.prop('ok'),
                 $.i18n.prop('cancel'),
-                $.i18n.prop('remoterepository.delete.confirm',remoteRepository.id()),null);
+                $.i18n.prop('remoterepository.delete.confirm',remoteRepository.id()),
+                $("#remote-repository-delete-modal-tmpl").tmpl(remoteRepository));
 
     }
 
index 9341a8bc791c4202ea7da9a69536123dbf4e7fe6..f512431e080e375f6d63888d9f253351cdf3d6c8 100644 (file)
 
 <script id="managed-repository-delete-warning-tmpl" type='text/x-jquery-tmpl'>
   <div>
-    <a class="close" href="#">&#215;</a>
-    <div class="alert-message warning">
-      <p>
-        <strong>${$.i18n.prop('warning.not.undone.operation')}</strong>
-      </p>
-    </div>
+    <span class="label label-warning">${$.i18n.prop('warning.not.undone.operation')}</span>
     <div>
       <span><strong>${$.i18n.prop('managedrepository.delete.warning.message')}</strong>.</span>
       <div>${$.i18n.prop('id')}: ${id()}</div>
   </div>
 </script>
 
+<script type="text/html" id="remote-repository-delete-modal-tmpl">
+    <div>
+      <span class="label label-warning">${$.i18n.prop('warning.not.undone.operation')}</span>
+    </div>
+</script>
+
 <script id="managed-repository-location-warning-tmpl" type='text/x-jquery-tmpl'>
   <div>
-    <a class="close" href="#">&#215;</a>
-    <div class="alert-message warning">
-      <p>
-        <strong>${$.i18n.prop('managedrepository.location.already.exists')}</strong>
-      </p>
-    </div>
+    <span class="label label-warning">${$.i18n.prop('managedrepository.location.already.exists')}</span>
     <div>
       <span><strong>${$.i18n.prop('managedrepository.location.already.exists.warning.message')}</strong>.</span>
       <div>${$.i18n.prop('id')}: ${id()}</div>