chore: 🤖 Port authenticate template from pre-scope template

This commit is contained in:
Susmitha Girumala committed 2020-07-27 14:49:42 -04:00
1 parent 356c02b365
commit 3f1a7f155c
4 files changed
+47 -2

No files matched your search

@@ -1 +1,5 @@
{{outlet}}
<Rose::Layout::Centered>
<div id="authentication-view">
{{outlet}}
</div>
</Rose::Layout::Centered>
@@ -1 +0,0 @@
{{outlet}}
@@ -1,3 +1,29 @@
{{#if @model}}
<h2>{{t 'actions.authenticate'}}</h2>
<p>{{t "auth.descriptions.choose-org"}}</p>
<Rose::Dropdown
@text={{t 'actions.choose-org'}}
@icon="user-organization"
as |dropdown|>
{{#each @model as |org|}}
<dropdown.link @route="orgs.org.authenticate" @model={{org}}>
{{org.displayName}}
</dropdown.link>
{{/each}}
</Rose::Dropdown>
{{/if}}
{{#unless @model}}
<Rose::Message
@title={{t "auth.titles.no-orgs"}}
@icon="alert-circle-outline"
as |message|>
<message.description>
{{t "auth.descriptions.no-orgs"}}
</message.description>
</Rose::Message>
{{/unless}}
<Rose::Form
@onSubmit={{route-action "authenticate" (hash
identification=this.identification
+16
View File
@@ -4,7 +4,21 @@ actions:
dismiss: Dismiss
save: Save
help: Need help?
authenticate: Authenticate
deauthenticate: Deauthenticate
choose-org: Choose Org
choose-different-org: Choose a Different Org
auth:
titles:
no-orgs: No Organizations Available
no-methods: No Authentication Method
descriptions:
no-orgs: No organizations were found. To authenticate, ask your administrator to create an organization and grant you access.
no-methods: No authentication methods were found for this organization. Switch organizations and try again.
choose-org: Choose an organization to authenticate.
authenticating-with-org: "You're authenticating with {name}."
method-types:
password: Password
resources:
user: User
users: Users
@@ -47,6 +61,8 @@ form:
name: Name
description: Description
type: Type
identification: Username
password: Password
errors:
titles:
unauthenticated-error: You are not signed in