forked from psmb/Psmb.Newsletter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
213 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
Resources/Public/JavaScript/Inspector/Views/Confirmation.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<div class="neos-modal sandstorm-newsletter-confirmation"> | ||
<div class="neos-modal-header"> | ||
<button class="neos-close neos-button" title="{{translate id='close' fallback='Close'}}" {{action "cancel" target="view"}}></button> | ||
<div class="neos-header">{{translate id='Psmb.Newsletter:Main:js.confirmationTitle' fallback='Send newsletter'}}</div> | ||
</div> | ||
<div> | ||
<div class="neos-subheader"> | ||
<p>{{translate id='Psmb.Newsletter:Main:js.confirmationDescription' fallback='This will send the letter to all subscribers. Check that all your changes are published to live workspace and hit "Send"'}}</p> | ||
</div> | ||
</div> | ||
<div class="neos-modal-footer"> | ||
<button class="neos-button" title="{{translate id='cancel' fallback='Cancel'}}" {{action "cancel" target="view"}}>{{translate id="cancel" fallback="Cancel"}}</button> | ||
|
||
<button class="neos-button neos-button-danger" title="Send" {{action "sendNewsletter" target="view"}} > | ||
{{translate id='Psmb.Newsletter:Main:js.send' fallback='Send'}} | ||
</button> | ||
</div> | ||
</div> | ||
<div class="neos-modal-backdrop neos-in"></div> |
11 changes: 11 additions & 0 deletions
11
Resources/Public/JavaScript/Inspector/Views/Confirmation.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
define( | ||
[ | ||
'emberjs', | ||
'Shared/AbstractModal', | ||
'text!./Confirmation.html' | ||
], | ||
function (Ember, AbstractModal, template) { | ||
return AbstractModal.extend({ | ||
template: Ember.Handlebars.compile(template) | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
Resources/Public/JavaScript/Inspector/Views/TestConfirmation.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<div class="neos-modal sandstorm-newsletter-confirmation"> | ||
<div class="neos-modal-header"> | ||
<button class="neos-close neos-button" title="{{translate id='close' fallback='Close'}}" {{action "cancel" target="view"}}></button> | ||
<div class="neos-header">{{translate id='Psmb.Newsletter:Main:js.testConfirmationTitle' fallback='Send test newsletter'}}</div> | ||
</div> | ||
<div> | ||
<div class="neos-subheader"> | ||
<p style="padding-bottom: 6px">{{translate id='Psmb.Newsletter:Main:js.testEmailLabel' fallback='Enter test email:'}}</p> | ||
<p>{{view Ember.TextField type="email" name="testEmail" valueBinding="view.testEmail"}}</p> | ||
</div> | ||
</div> | ||
<div class="neos-modal-footer"> | ||
<button class="neos-button" title="{{translate id='cancel' fallback='Cancel'}}" {{action "cancel" target="view"}}>{{translate id="cancel" fallback="Cancel"}}</button> | ||
|
||
<button class="neos-button neos-button-danger" title="Send" {{action "sendNewsletter" target="view"}} {{bindAttr disabled="view.sendingDisabled"}}> | ||
{{translate id='Psmb.Newsletter:Main:js.send' fallback='Send'}} | ||
</button> | ||
</div> | ||
</div> | ||
<div class="neos-modal-backdrop neos-in"></div> |
15 changes: 15 additions & 0 deletions
15
Resources/Public/JavaScript/Inspector/Views/TestConfirmation.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
define( | ||
[ | ||
'emberjs', | ||
'Shared/AbstractModal', | ||
'text!./TestConfirmation.html' | ||
], | ||
function (Ember, AbstractModal, template) { | ||
return AbstractModal.extend({ | ||
template: Ember.Handlebars.compile(template), | ||
testEmail: null, | ||
sendingDisabled: function () { | ||
return !this.get('testEmail'); | ||
}.property('testEmail') | ||
}); | ||
}); |