mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-04 08:54:36 +03:00
e22eb668c4
refs TryGhost/Ghost#7865 💄 refactor signup to use ember-concurrency refs https://github.com/TryGhost/Ghost/issues/7865 - moves authentication actions from `signup` route to controller - refactors authentication and signup logic into EC tasks - replaces use of `gh-spin-button` with `gh-task-button` in signup template 💄 refactor setup screens to use ember-concurrency refs https://github.com/TryGhost/Ghost/issues/7865 - moves authentication actions from `setup/two` route to controller - refactors authentication and setup logic into EC tasks - replaces use of `gh-spin-button` with `gh-task-button` - fixes some styling issues with the new SVG icons - adds `app/styles/patterns/icons.css` back to contain per-icon overrides and animations (some SVGs use fills and others use strokes so we sometimes have conflicting styles)
35 lines
1.2 KiB
Handlebars
35 lines
1.2 KiB
Handlebars
<header>
|
||
<h1>Invite your team</h1>
|
||
<p>Ghost works best when shared with others. Collaborate, get feedback on your posts & work together on ideas.</p>
|
||
</header>
|
||
|
||
<div><img class="gh-flow-faces" src="assets/img/users.png" alt="" /></div>
|
||
|
||
<form class="gh-flow-invite" {{action "invite" on="submit"}}>
|
||
{{#gh-form-group errors=errors hasValidated=hasValidated property="users"}}
|
||
<label for="users">Enter one email address per line, we’ll handle the rest! {{inline-svg "email"}}</label>
|
||
{{gh-textarea users name="users" required="required" focusOut=(action "validate") update=(action (mut users))}}
|
||
{{/gh-form-group}}
|
||
|
||
{{#gh-task-button
|
||
task=invite
|
||
type="submit"
|
||
classNameBindings=":gh-btn :gh-btn-default :gh-btn-lg :gh-btn-block buttonClass"
|
||
successClass=""
|
||
failureClass=""
|
||
as |task|
|
||
}}
|
||
<span>
|
||
{{#if task.isRunning}}
|
||
{{inline-svg "spinner" class="no-margin"}}
|
||
{{else}}
|
||
{{buttonText}}
|
||
{{/if}}
|
||
</span>
|
||
{{/gh-task-button}}
|
||
</form>
|
||
|
||
<button class="gh-flow-skip" {{action "skipInvite"}}>
|
||
I'll do this later, take me to my blog!
|
||
</button>
|