Skip to content
Snippets Groups Projects
Commit 660cbcad authored by Torsten Oppermann's avatar Torsten Oppermann
Browse files

[TASK] adding language labels in js. streamlined js

parent 9e14e924
No related branches found
No related tags found
No related merge requests found
......@@ -89,6 +89,14 @@
<source>Language (Reloads the page):</source>
<target>Sprache (lädt die Seite neu):</target>
</trans-unit>
<trans-unit id="backend.send_mail_again" approved="yes">
<source>Send this E-Mail again ?</source>
<target>Diese E-Mail nochmals versenden ?</target>
</trans-unit>
<trans-unit id="backend.send_mail_manually" approved="yes">
<source>Send this E-Mail now ?</source>
<target>Diese E-Mail jetzt versenden ?</target>
</trans-unit>
<trans-unit id="backend.send_test" approved="yes">
<source>Send Preview Mail</source>
<target>Sende Vorschau-Mail</target>
......
......@@ -69,6 +69,12 @@
<trans-unit id="backend.select_language">
<source>Language (Reloads the page):</source>
</trans-unit>
<trans-unit id="backend.send_mail_again">
<source>Send this E-Mail again ?</source>
</trans-unit>
<trans-unit id="backend.send_mail_manually">
<source>Send this E-Mail now ?</source>
</trans-unit>
<trans-unit id="backend.send_test">
<source>Send Preview Mail</source>
</trans-unit>
......
{namespace sgm=SGalinski\SgMail\ViewHelpers}
<f:be.container enableClickMenu="FALSE" loadExtJs="FALSE" includeCssFiles="{0: '{f:uri.resource(path: \'StyleSheets/backend.css\')}'}">
<sgm:addJavaScriptFile javaScriptFile="{f:uri.resource(path: 'Scripts/Template.js')}" />
<sgm:addJavaScriptFile javaScriptFile="{f:uri.resource(path: 'Scripts/Backend.js')}" />
<sgm:inlineLanguageLabels labels="backend.delete_template" />
<sgm:inlineLanguageLabels labels="backend.delete_template, backend.send_mail_manually, backend.send_mail_again" />
<div class="module" data-module-id="" data-module-name="">
<div class="module-docheader t3js-module-docheader">
<div class="module-docheader-bar module-docheader-bar-navigation t3js-module-docheader-bar t3js-module-docheader-bar-navigation">
......
......@@ -47,10 +47,10 @@
<td>
<f:if condition="{mail.sent} == '0'">
<f:then>
<f:link.action class="btn btn-primary" controller="Queue" action="sendMail" arguments="{uid: mail.uid}">Send Now</f:link.action>
<f:link.action class="btn-send-now btn btn-primary" controller="Queue" action="sendMail" arguments="{uid: mail.uid}">Send Now</f:link.action>
</f:then>
<f:else>
<f:link.action class="btn btn-warning" controller="Queue" action="sendMail" arguments="{uid: mail.uid}">Send Again</f:link.action>
<f:link.action class="btn-resend btn btn-warning" controller="Queue" action="sendMail" arguments="{uid: mail.uid}">Send Again</f:link.action>
</f:else>
</f:if>
</td>
......
(function($) {
function resetTemplateListener(_event) {
_event.preventDefault();
var confirm = SG.lang.SgMail['backend.delete_template'];
if (window.confirm(confirm)) {
window.location = $(_event.currentTarget).attr('href');
}
}
function sendMailListener(_event) {
_event.preventDefault();
var confirm = SG.lang.SgMail['backend.send_mail_manually'];
if (window.confirm(confirm)) {
window.location = $(_event.currentTarget).attr('href');
}
}
function resendMailListener(_event) {
_event.preventDefault();
var confirm = SG.lang.SgMail['backend.send_mail_again'];
if (window.confirm(confirm)) {
window.location = $(_event.currentTarget).attr('href');
}
}
$(document).ready(function() {
$('.reset-btn').on('click', resetTemplateListener);
$('.btn-send-now').on('click', sendMailListener);
$('.btn-resend').on('click', resendMailListener);
});
})
(TYPO3.jQuery);
(function($) {
function resetTemplateListener(_event) {
_event.preventDefault();
var confirm = SG.lang.SgMail['backend.delete_template'];
if (window.confirm(confirm)) {
window.location = $(_event.currentTarget).attr('href');
}
}
$(document).ready(function() {
$('.reset-btn').on('click', resetTemplateListener);
});
})
(TYPO3.jQuery);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment