Skip to content
Snippets Groups Projects
Commit fdeeb7f3 authored by Stefan Galinski's avatar Stefan Galinski :video_game:
Browse files

[TASK] Cleanup and improved styles for the unsent mails

parent 59376c0d
No related branches found
No related tags found
1 merge request!3New version 4 1
...@@ -35,13 +35,11 @@ ...@@ -35,13 +35,11 @@
<tr data-uid="{mail.uid}"> <tr data-uid="{mail.uid}">
</f:then> </f:then>
<f:else> <f:else>
<tr data-uid="{mail.uid}" style="background-color: #7C7C7C;"> <tr data-uid="{mail.uid}" class="recordlist-mail-unsent">
</f:else> </f:else>
</f:if> </f:if>
<td nowrap="nowrap" class="col-icon"> <td nowrap="nowrap" class="col-icon">
<f:format.raw> <f:format.raw><sgm:backend.icon table="tx_sgmail_domain_model_mail" row="{mail}" /></f:format.raw>
<sgm:backend.icon table="tx_sgmail_domain_model_mail" row="{mail}" />
</f:format.raw>
</td> </td>
<td> <td>
<span>{mail.from_address}</span> <span>{mail.from_address}</span>
...@@ -74,29 +72,26 @@ ...@@ -74,29 +72,26 @@
</f:if> </f:if>
</td> </td>
<td nowrap="nowrap" class="col-control"> <td nowrap="nowrap" class="col-control">
<f:format.raw> <f:format.raw><sgm:backend.control table="tx_sgmail_domain_model_mail" row="{mail}" /></f:format.raw>
<sgm:backend.control table="tx_sgmail_domain_model_mail" row="{mail}" />
</f:format.raw>
</td> </td>
<td> <td>
<f:link.action class="btn btn-default btn-send-now" controller="Queue" action="sendMail" arguments="{uid: mail.uid, selectedTemplate: selectedTemplateKey, selectedExtension: selectedExtensionKey}"> <f:link.action class="btn btn-default btn-send-now" controller="Queue" action="sendMail" arguments="{uid: mail.uid, selectedTemplate: selectedTemplateKey, selectedExtension: selectedExtensionKey}">
<span class="t3js-icon icon icon-size-small icon-state-default actions-document-import-t3d"> <span class="t3js-icon icon icon-size-small icon-state-default actions-document-import-t3d">
<span class="icon-markup"> <span class="icon-markup">
<img src="/typo3/sysext/core/Resources/Public/Icons/T3Icons/actions/actions-document-import-t3d.svg" width="16" height="16"> <img src="/typo3/sysext/core/Resources/Public/Icons/T3Icons/actions/actions-document-import-t3d.svg" width="16" height="16">
</span> </span>
</span> </span>
<f:translate key="backend.send_now" /> <f:translate key="backend.send_now" />
</f:link.action> </f:link.action>
<a class="btn btn-default btn-toggle" data-uid="{mail.uid}"> <a class="btn btn-default btn-toggle" data-uid="{mail.uid}">
<span class="t3js-icon icon icon-size-small icon-state-default actions-document-view"> <span class="t3js-icon icon icon-size-small icon-state-default actions-document-view">
<span class="icon-markup"> <span class="icon-markup">
<img src="/typo3/sysext/core/Resources/Public/Icons/T3Icons/actions/actions-document-view.svg" width="16" height="16"> <img src="/typo3/sysext/core/Resources/Public/Icons/T3Icons/actions/actions-document-view.svg" width="16" height="16">
</span> </span>
</span> </span>
<f:translate key="backend.showBody" /> <f:translate key="backend.showBody" />
</a> </a>
</td> </td>
</tr><!-- Modal -->
<div class="modal fade" id="toggle-{mail.uid}" tabindex="-1" role="dialog" aria-labelledby="login-modal-label"> <div class="modal fade" id="toggle-{mail.uid}" tabindex="-1" role="dialog" aria-labelledby="login-modal-label">
<div class="modal-dialog" role="document"> <div class="modal-dialog" role="document">
<div class="modal-content"> <div class="modal-content">
...@@ -107,9 +102,7 @@ ...@@ -107,9 +102,7 @@
</div> </div>
<div class="modal-body" id="login-modal-body"> <div class="modal-body" id="login-modal-body">
<div class="modalcol modalcol-left"> <div class="modalcol modalcol-left">
<f:format.html> <f:format.html>{mail.mail_body}</f:format.html>
{mail.mail_body}
</f:format.html>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -36,7 +36,8 @@ ...@@ -36,7 +36,8 @@
$('.btn-send-now').on('click', sendMailListener); $('.btn-send-now').on('click', sendMailListener);
$('.btn-resend').on('click', resendMailListener); $('.btn-resend').on('click', resendMailListener);
$('.btn-toggle').on('click', toggleMailBody); $('.btn-toggle').on('click', toggleMailBody);
$('#filter-reset-btn').on('click', function() { $('#filter-reset-btn').on('click', function(event) {
event.preventDefault();
this.form.reset(); this.form.reset();
$(this).closest('form').find('select').each(function() { $(this).closest('form').find('select').each(function() {
this.selectedIndex = 0; this.selectedIndex = 0;
...@@ -94,4 +95,4 @@ function gotToPageCallback(path) { ...@@ -94,4 +95,4 @@ function gotToPageCallback(path) {
if (node) { if (node) {
top.TYPO3.Components.PageTree.Actions.singleClick(node, top.TYPO3.Components.PageTree.Tree); top.TYPO3.Components.PageTree.Actions.singleClick(node, top.TYPO3.Components.PageTree.Tree);
} }
} }
\ No newline at end of file
...@@ -15,8 +15,8 @@ ...@@ -15,8 +15,8 @@
.f3-widget-paginator { .f3-widget-paginator {
display: inline-block; display: inline-block;
border-radius: 4px; border-radius: 4px;
margin: 20px 0px; margin: 20px 0;
padding-left: 0px; padding-left: 0;
background-color: red; background-color: red;
} }
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
.f3-widget-paginator > li:first-child > a, .f3-widget-paginator > li:first-child > a,
.f3-widget-paginator > li.current:first-child { .f3-widget-paginator > li.current:first-child {
margin-left: 0px; margin-left: 0;
border-top-left-radius: 4px; border-top-left-radius: 4px;
border-bottom-left-radius: 4px; border-bottom-left-radius: 4px;
} }
...@@ -70,3 +70,7 @@ ...@@ -70,3 +70,7 @@
margin: 5px 0; margin: 5px 0;
border-top: 1px solid #EAEAEA; border-top: 1px solid #EAEAEA;
} }
.recordlist-mail-unsent {
background-color: #CCC !important;
}
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