Skip to content
Snippets Groups Projects
Commit 0a04e1fa authored by Eugen Ciur's avatar Eugen Ciur
Browse files

add roles/users resources

parent 99733bf2
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,7 @@
# compiled output
/dist/
/tmp/
.idea/
# dependencies
/bower_components/
......
<button class="btn btn-link">
<button
class="btn btn-link"
{{on "click" @onClick}}>
{{@text}}
</button>
\ No newline at end of file
......@@ -21,7 +21,11 @@
{{@group.name}}
</td>
<td>
<Button::Link @text="Edit" {{on "click" (fn this.onEdit @group)}} />
<Button::Link @text="Remove" {{on "click" (fn this.onRemove @group)}} />
<Button::Link
@text="Edit"
@onClick={{(fn this.onEdit @group)}} />
<Button::Link
@text="Remove"
@onClick={{(fn this.onRemove @group)}} />
</td>
{{/if}}
\ No newline at end of file
......@@ -30,5 +30,15 @@
<i class="fas fa-users me-2"></i>Groups
</LinkTo>
</li>
<li>
<LinkTo @route="users" class="nav-link text-white">
<i class="fas fa-user-friends me-2"></i>Users
</LinkTo>
</li>
<li>
<LinkTo @route="roles" class="nav-link text-white">
<i class="fas fa-user me-2"></i>Roles
</LinkTo>
</li>
</ul>
</div>
\ No newline at end of file
......@@ -17,6 +17,18 @@ Router.map(function () {
this.route('tags');
this.route('users', function() {
this.route('add');
this.route('edit', { path: '/:user_id/edit' });
this.route('index', { path: '/' });
});
this.route('roles', function() {
this.route('add');
this.route('edit', { path: '/:role_id/edit' });
this.route('index', { path: '/' });
});
this.route('groups', function() {
this.route('index', { path: '/' });
});
......
<h1>Roles</h1>
\ No newline at end of file
<h1>Users</h1>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment