use existing i18n from redback

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1225864 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2011-12-30 17:08:19 +00:00
parent fd2a17ad7a
commit 4edc7d2a36
2 changed files with 20 additions and 15 deletions

View File

@ -5,4 +5,4 @@ ui pages to do in js:
** roles list
** single roles read (parent, childs, permissions, users with a parent role, users with this role)
* too much for archiva :-)
* too much todo for archiva :-)

View File

@ -2,8 +2,8 @@
<table class="bordered-table zebra-striped" id="rolesTable">
<thead>
<tr>
<th>${$.i18n.prop('roles.name')}</th>
<th>${$.i18n.prop('roles.description')}</th>
<th>${$.i18n.prop('name')}</th>
<th>${$.i18n.prop('description')}</th>
<th>${$.i18n.prop('edit')}</th>
</tr>
</thead>
@ -31,7 +31,7 @@
<a href="#roles-view">${$.i18n.prop('roles.grid.tab.title')}</a>
</li>
<li id="roles-view-tabs-li-roles-edit">
<a href="#role-edit">${$.i18n.prop('role.edit')}</a>
<a href="#role-edit">${$.i18n.prop('edit')}</a>
</li>
</ul>
<div id="roles-view-tabs-content" class="tab-content">
@ -44,23 +44,23 @@
<script id="editRoleTab" type="text/x-jquery-tmpl">
<div class="page-header">
<h3>${$.i18n.prop('role.edit')}</h3>
<h3>${$.i18n.prop('role')}</h3>
</div>
<table class="bordered-table" id="editRoleTable">
<tbody>
<tr>
<td>${$.i18n.prop('role.edit.name')}:</td>
<td>${$.i18n.prop('name')}:</td>
<td>${name}</td>
</tr>
<tr>
<td>${$.i18n.prop('role.edit.description')}:</td>
<td>${$.i18n.prop('description')}:</td>
<td>${description}</td>
</tr>
</tbody>
</table>
<div class="page-header">
<h3>${$.i18n.prop('role.parents')}</h3>
<h3>${$.i18n.prop('role.model.parent.roles')}</h3>
</div>
{{if parentRoleNames}}
<ul>
@ -75,7 +75,7 @@
{{/if}}
<div class="page-header">
<h3>${$.i18n.prop('role.childs')}</h3>
<h3>${$.i18n.prop('role.model.child.roles')}</h3>
</div>
{{if childRoleNames}}
<ul>
@ -89,16 +89,16 @@
</ul>
{{/if}}
<div class="page-header">
<h3>${$.i18n.prop('permissions')}</h3>
</div>
{{if permissions}}
<div class="page-header">
<h3>${$.i18n.prop('role.permissions')}</h3>
</div>
<table class="bordered-table zebra-striped" id="rolePermissionsTable">
<thead>
<tr>
<th>${$.i18n.prop('role.permission.name')}</th>
<th>${$.i18n.prop('role.permission.operation.name')}</th>
<th>${$.i18n.prop('role.permission.resource.')}</th>
<th>${$.i18n.prop('name')}</th>
<th>${$.i18n.prop('role.operation')}</th>
<th>${$.i18n.prop('role.resource')}</th>
</tr>
</thead>
<tbody>
@ -121,4 +121,9 @@
</table>
{{/if}}
<div class="page-header">
<h3>${$.i18n.prop('role.edit.users.defined.in.current.role')}</h3>
</div>
</script>