Ver Fonte

new info form

andre há 5 meses atrás
pai
commit
0c0ef36ee4

+ 3 - 3
app/UI/Client/Setting/Modals/InfoModal.php

@@ -4,8 +4,8 @@ namespace ThurData\Servers\KerioEmail\App\UI\Client\Setting\Modals;
 
 use ThurData\Servers\KerioEmail\App\UI\Client\Setting\Forms\InfoForm;
 use ThurData\Servers\KerioEmail\Core\UI\Interfaces\ClientArea;
-use ThurData\Servers\KerioEmail\Core\UI\Widget\Buttons\ModalActionButtons\BaseCancelButton;
-use ThurData\Servers\KerioEmail\Core\UI\Widget\Buttons\ButtonRedirect;
+use ThurData\Servers\KerioEmail\Core\UI\Widget\Buttons\BaseRedirectButton\BaseCancelButton;
+use ThurData\Servers\KerioEmail\Core\UI\Widget\Buttons\BaseRedirectButton\BaseRedirectButton;
 use ThurData\Servers\KerioEmail\Core\UI\Widget\Modals\BaseEditModal;
 
 class InfoModal extends BaseEditModal implements ClientArea
@@ -28,7 +28,7 @@ class InfoModal extends BaseEditModal implements ClientArea
             return $this;
         }
         $this->addActionButton(new BaseCancelButton());
-        $this->addActionButton(new ButtonRedirect('cart.php?a=add&domain=transfer&sld='));
+        $this->addActionButton(new BaseRedirectButton('cart.php?a=add&domain=transfer&sld='));
         return $this;
     }
 }

+ 23 - 0
core/UI/Widget/Buttons/ModalActionButtons/BaseRedirectButton.php

@@ -0,0 +1,23 @@
+<?php
+
+namespace ThurData\Servers\KerioEmail\Core\UI\Widget\Buttons\ModalActionButtons;
+
+use \ThurData\Servers\KerioEmail\Core\UI\Builder\BaseContainer;
+
+/**
+ * Base Modal Cancel Button
+ *
+ * @autor ThurData <info@thurdata.ch>
+ */
+class BaseRedirectButton extends BaseContainer
+{
+    protected $id             = 'baseRedirectButton';
+    protected $name           = 'baseRedirectButton';
+    protected $class          = ['lu-btn lu-btn--danger lu-btn--outline lu-btn--plain infoModal'];
+    protected $title          = 'title';
+    protected $htmlAttributes = [
+        '@click.middle' => 'redirect($event,, true)',
+        '@click' => 'redirect($event,, )'
+    ];
+}
+

+ 25 - 0
templates/client/default/ui/core/default/widget/buttons/modalActionButtons/baseRedirectButton.tpl

@@ -0,0 +1,25 @@
+{**********************************************************************
+* KerioEmail product developed. (2017-09-05)
+* *
+*
+*  CREATED BY THURDATA       ->       http://thurdata.com
+*  CONTACT                        ->       contact@thurdata.com
+*
+*
+* This software is furnished under a license and may be used and copied
+* only  in  accordance  with  the  terms  of such  license and with the
+* inclusion of the above copyright notice.  This software  or any other
+* copies thereof may not be provided or otherwise made available to any
+* other person.  No title to and  ownership of the  software is  hereby
+* transferred.
+*
+*
+**********************************************************************}
+
+{**
+* @autor ThurData <info@thurdata.ch>
+*}
+
+<button class="{$rawObject->getClasses()}" {foreach $htmlAttributes as $aValue} {$aValue@key}="{$aValue}" {/foreach}>
+    {$MGLANG->T($rawObject->getTitle())}
+</button>