mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-21 18:01:36 +03:00
09bcbb9463
ref #5652 - validations can be in default, success or error state - adds check for 'hasValidated' if the validations haven't fired yet, the field is in the default state - hasValidated is an Ember.Array which tracks the state for each field
20 lines
918 B
Handlebars
20 lines
918 B
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>
|
||
|
||
<img class="gh-flow-faces" src="{{gh-path 'admin' 'img/users.png'}}" alt="" />
|
||
|
||
<form class="gh-flow-invite">
|
||
{{#gh-form-group errors=errors hasValidated=hasValidated property="users"}}
|
||
<label for="users">Enter one email address per line, we’ll handle the rest! <i class="icon-mail"></i></label>
|
||
{{gh-textarea name="users" value=users required="required" focusOut=(action "validate")}}
|
||
{{/gh-form-group}}
|
||
|
||
{{#gh-spin-button type="submit" action="invite" classNameBindings=":btn :btn-default :btn-lg :btn-block buttonClass" submitting=submitting autoWidth="false"}}{{buttonText}}{{/gh-spin-button}}
|
||
</form>
|
||
|
||
<button class="gh-flow-skip" {{action "skipInvite"}}>
|
||
I'll do this later, take me to my blog!
|
||
</button>
|