use warning label for modal confirm delete network proxy

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1293956 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-02-26 23:07:03 +00:00
parent 7da60c31dd
commit a8c941a869
2 changed files with 7 additions and 1 deletions

View File

@ -193,7 +193,8 @@ $(function() {
closeDialogConfirm();
}
}
)}, $.i18n.prop('ok'), $.i18n.prop('cancel'), $.i18n.prop('networkproxy.delete.confirm',networkProxy.id()),null);
)}, $.i18n.prop('ok'), $.i18n.prop('cancel'), $.i18n.prop('networkproxy.delete.confirm',networkProxy.id()),
$("#network-proxy-delete-warning-tmpl" ).tmpl(networkProxy));
}
}

View File

@ -164,3 +164,8 @@
<a data-bind="click: updateModifiedNetworkProxies" class="btn btn-danger" href="#">${$.i18n.prop('save.all')}</a>
{{/if}}
</script>
<script id="network-proxy-delete-warning-tmpl" type='text/x-jquery-tmpl'>
<div>
<span class="label label-warning">${$.i18n.prop('warning.not.undone.operation')}</span>
</div>
</script>