use warning label for modal confirm delete user

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

View File

@ -103,4 +103,10 @@
</div>
</script>
<script id="user-delete-warning-tmpl" type='text/x-jquery-tmpl'>
<div>
<span class="label label-warning">${$.i18n.prop('warning.not.undone.operation')}</span>
</div>
</script>

View File

@ -118,7 +118,8 @@ $(function() {
}
);
}
,"Ok", $.i18n.prop("cancel"), $.i18n.prop("user.delete.message") + ": " + currentUser.username());
,"Ok", $.i18n.prop("cancel"), $.i18n.prop("user.delete.message") + ": " + currentUser.username(),
$("#user-delete-warning-tmpl" ).tmpl(currentUser));
}