mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-04 12:44:57 +03:00
9ed5aad186
no issue - the upcoming Module Unification re-organisation in Ember will no longer support nested components - this PR pre-emptively moves our usage of nested components into a flat file structure
30 lines
1.1 KiB
Handlebars
30 lines
1.1 KiB
Handlebars
<header class="modal-header">
|
|
<h1>Add a Subscriber</h1>
|
|
</header>
|
|
<a class="close" href="" title="Close" {{action "closeModal"}}>{{inline-svg "close"}}<span class="hidden">Close</span></a>
|
|
|
|
<div class="modal-body">
|
|
<fieldset>
|
|
{{#gh-form-group errors=model.errors hasValidated=model.hasValidated property="email"}}
|
|
<label for="new-subscriber-email">Email Address</label>
|
|
<input type="email"
|
|
value={{model.email}}
|
|
oninput={{action "updateEmail" value="target.value"}}
|
|
id="new-subscriber-email"
|
|
class="gh-input email"
|
|
placeholder="Email Address"
|
|
name="email"
|
|
autofocus="autofocus"
|
|
autocapitalize="off"
|
|
autocorrect="off">
|
|
{{gh-error-message errors=model.errors property="email"}}
|
|
{{/gh-form-group}}
|
|
|
|
</fieldset>
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
<button {{action "closeModal"}} class="gh-btn"><span>Cancel</span></button>
|
|
{{gh-task-button "Add" successText="Added" task=addSubscriber class="gh-btn gh-btn-green gh-btn-icon"}}
|
|
</div>
|