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

[TASk] Fixing reset button to make it responsive

parent 9d2a683f
No related branches found
No related tags found
1 merge request!6Feature 4 3
...@@ -261,7 +261,6 @@ class MailController extends ActionController { ...@@ -261,7 +261,6 @@ class MailController extends ActionController {
$this->addFlashMessage($message, '', FlashMessage::OK); $this->addFlashMessage($message, '', FlashMessage::OK);
if (!$this->request->hasArgument('saveOnly')) { if (!$this->request->hasArgument('saveOnly')) {
if (!filter_var($parameters['emailAddress'], FILTER_VALIDATE_EMAIL)) { if (!filter_var($parameters['emailAddress'], FILTER_VALIDATE_EMAIL)) {
$arguments = $this->request->getArguments(); $arguments = $this->request->getArguments();
$this->redirect('index', NULL, NULL, $arguments); $this->redirect('index', NULL, NULL, $arguments);
......
...@@ -245,7 +245,7 @@ class MailTemplateService { ...@@ -245,7 +245,7 @@ class MailTemplateService {
* @throws \BadFunctionCallException * @throws \BadFunctionCallException
* @throws \TYPO3\CMS\Extbase\Persistence\Exception\IllegalObjectTypeException * @throws \TYPO3\CMS\Extbase\Persistence\Exception\IllegalObjectTypeException
*/ */
public function sendEmail($isPreview = FALSE) { public function sendEmail($isPreview = FALSE): bool {
if (TYPO3_MODE === 'FE') { if (TYPO3_MODE === 'FE') {
/** @var TypoScriptFrontendController $tsfe */ /** @var TypoScriptFrontendController $tsfe */
$tsfe = $GLOBALS['TSFE']; $tsfe = $GLOBALS['TSFE'];
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<p>{templateDescription}</p> <p>{templateDescription}</p>
</div> </div>
<div class=" col-md-2"> <div class=" col-md-2">
<f:link.action class="reset-btn reset-all-btn btn-danger btn" style="width: 100%;" action="reset" arguments="{template: selectedTemplateKey, extensionKey: selectedTemplate.extension}">{f:translate(key:'backend.button_reset_all')}</f:link.action> <f:link.action class="reset-btn reset-all-btn btn-danger btn col-md-12" action="reset" arguments="{template: selectedTemplateKey, extensionKey: selectedTemplate.extension}">{f:translate(key:'backend.button_reset_all')}</f:link.action>
</div> </div>
</div> </div>
<div class="col-md-12 row"> <div class="col-md-12 row">
......
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