forked from RocketChat/Rocket.Chat
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMPROVE] Admin ui step 1 (RocketChat#13393)
Just few changes to update admin pages
- Loading branch information
Showing
35 changed files
with
673 additions
and
481 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 30 additions & 20 deletions
50
packages/rocketchat-authorization/client/views/permissions.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,46 @@ | ||
<template name="permissions"> | ||
<div class="permissions-manager"> | ||
<section class="permissions-manager page-container page-home page-static page-list"> | ||
{{#if hasPermission}} | ||
<a href="{{pathFor "admin-permissions-new"}}" class="button primary new-role">{{_ "New_role"}}</a> | ||
<table border="1" class="permission-grid secondary-background-color"> | ||
<thead class="content-background-color"> | ||
<tr> | ||
<th class="border-component-color"> </th> | ||
{{#each role}} | ||
{{# header sectionName=pageTitle}} | ||
<div class="rc-header__section-button"> | ||
<a href="{{pathFor"admin-permissions-new"}}" class="rc-button rc-button--primary new-role">{{_ "New_role"}}</a> | ||
</div> | ||
{{/header}} | ||
|
||
<div class="content"> | ||
<table border="1" class="permission-grid secondary-background-color"> | ||
<thead class="content-background-color"> | ||
<tr> | ||
<th class="border-component-color"> </th> | ||
{{#each role}} | ||
<th class="border-component-color" title="{{description}}"> | ||
<a href="{{pathFor "admin-permissions-edit" name=_id}}"> | ||
{{_id}} | ||
<i class="icon-edit"></i> | ||
</a> | ||
</th> | ||
{{/each}} | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{{#each permission}} | ||
{{/each}} | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{{#each permission}} | ||
<tr class="admin-table-row"> | ||
<td class="permission-name border-component-color" title="{{_ permissionDescription}}">{{_ permissionName}}<br>[{{_id}}]</td> | ||
{{#each role}} | ||
<td class="border-component-color"> | ||
<input type="checkbox" name="perm[{{_id}}][{{../_id}}]" class="role-permission" value="1" checked="{{granted ../roles}}" data-role="{{_id}}" data-permission="{{../_id}}"> | ||
</td> | ||
<td class="border-component-color"> | ||
<input type="checkbox" name="perm[{{_id}}][{{../_id}}]" class="role-permission" value="1" checked="{{granted ../roles}}" data-role="{{_id}}" data-permission="{{../_id}}"> | ||
</td> | ||
{{/each}} | ||
</tr> | ||
{{/each}} | ||
</tbody> | ||
</table> | ||
{{/each}} | ||
</tbody> | ||
</table> | ||
</div> | ||
{{else}} | ||
{{_ "Not_authorized"}} | ||
<div class="content"> | ||
{{#if i18nPageTitle}} {{> header sectionName=i18nPageTitle}} {{else}} {{> header sectionName=pageTitle}} {{/if}} | ||
{{_ "Not_authorized"}} | ||
</div> | ||
{{/if}} | ||
</div> | ||
</section> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
packages/rocketchat-importer/client/admin/adminImportHistory.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.