Ghost/ghost/admin/app/templates/setup/three.hbs
Kevin Ansfield 2231dd84c2 Migrated to <AngleBracketSyntax /> (#1460)
no issue

Ember is migrating to `<AngleBracketSyntax />` for component invocation, see https://github.com/emberjs/rfcs/blob/master/text/0311-angle-bracket-invocation.md

We were in a half-way situation where some templates used angle bracket syntax in some places, this PR updates templates to use the syntax everywhere.

This simplifies the rules for what template code is referring to...

`<Component>` = a component
`{{helper}}` = a helper (or locally assigned handlebars variable)
`{{this.foo}}` = data on the template backing context (a component/controller)
`{{@foo}}` = a named argument passed into the component that the component backing class has not modified (note: this commit does not introduce any named arguments)

- ran codemod https://github.com/ember-codemods/ember-angle-brackets-codemod on the following directories:
  - `app/templates`
  - `lib/koenig-editor/addon/templates`
- removed positional params from components as angle bracket syntax does not support them
  - `gh-feature-flag`
  - `gh-tour-item`
  - `gh-cm-editor`
  - `gh-fullscreen-modal`
  - `gh-task-button`
- updates some code that was missed in 3c851293c1 to use explicit this
2020-01-16 15:14:03 +00:00

41 lines
1.3 KiB
Handlebars
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<header>
<h1>Invite staff users</h1>
<p>Ghost works best when shared with others. Collaborate, get feedback on your posts &amp; 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"}}>
<GhFormGroup @errors={{this.errors}} @hasValidated={{this.hasValidated}} @property="users">
<label for="users">Enter one email address per line, well handle the rest! {{svg-jar "email"}}</label>
<GhTextarea
@name="users"
@required="required"
@value={{readonly this.users}}
@input={{action (mut this.users) value="target.value"}}
@focus-out={{action "validate"}}
/>
</GhFormGroup>
<GhTaskButton
@task={{this.invite}}
@type="submit"
@class="gh-btn gh-btn-default gh-btn-lg gh-btn-block {{this.buttonClass}}"
@successClass=""
@failureClass=""
as |task|
>
<span>
{{#if task.isRunning}}
{{svg-jar "spinner" class="no-margin"}}
{{else}}
{{this.buttonText}}
{{/if}}
</span>
</GhTaskButton>
</form>
<button class="gh-flow-skip" {{action "skipInvite"}}>
I'll do this later, take me to my site!
</button>