chore: Add "manage" button to user edit page

This commit is contained in:
Susmitha Girumala committed 2020-08-11 09:58:40 -04:00
1 parent 4f6cb49ac1
commit ab39638e07
2 files changed
+13 -9

No files matched your search

@@ -8,6 +8,17 @@
<h2>{{t "resources.user"}}</h2>
</page.header>
<page.actions>
<Rose::Dropdown @text="{{t 'form.label.manage'}}" @alignRight={{true}} as |dropdown|>
<dropdown.button
@disabled={{@model.canSave}}
{{on "click" (route-action "delete" @model)}}
>
{{t 'actions.delete'}}
</dropdown.button>
</Rose::Dropdown>
</page.actions>
<page.navigation>
<Rose::Nav::Tabs as |nav|>
<nav.link @route='scopes.scope.users.user'>
@@ -17,19 +28,11 @@
</page.navigation>
<page.body>
<Form::Project
<Form::User
@model={{@model}}
@submit={{route-action "save" @model}}
@cancel={{route-action "cancel" @model}}
/>
<Rose::Separator />
<Rose::Button
@style="warning"
@disabled={{@model.canSave}}
{{on "click" (route-action "delete" @model)}}
>
{{t 'actions.delete'}}
</Rose::Button>
</page.body>
</Rose::Layout::Page>
+1
View File
@@ -65,6 +65,7 @@ form:
type: Type
identification: Username
password: Password
manage: Manage
errors:
titles:
unauthenticated-error: You are not signed in