From 35790eabecf4be7cbfaf0484519336d4626d52ce Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Fri, 6 May 2016 10:47:06 +0000 Subject: [PATCH] Change look and feel for mail filter edit dialog - Make ruleID available on client-side to represent it as id in dialog - Use tabs instead of long list dialog --- mail/inc/class.mail_sieve.inc.php | 3 +- mail/templates/default/app.css | 6 + mail/templates/default/sieve.edit.xet | 253 +++++++++++++------------- mail/templates/mobile/app.css | 7 + mail/templates/pixelegg/app.css | 7 + 5 files changed, 150 insertions(+), 126 deletions(-) diff --git a/mail/inc/class.mail_sieve.inc.php b/mail/inc/class.mail_sieve.inc.php index 6fc6122985..a5415192f7 100644 --- a/mail/inc/class.mail_sieve.inc.php +++ b/mail/inc/class.mail_sieve.inc.php @@ -238,6 +238,7 @@ class mail_sieve $rules = $this->rulesByID; $content= $rules; + $content ['ruleID'] = $_GET['ruleID']; switch ($rules['action']) { case 'folder': @@ -273,7 +274,7 @@ class mail_sieve list($button) = @each($content['button']); //$ruleID is calculated by priority from the selected rule and is an unique ID - $ruleID = ($this->rulesByID['priority'] -1) / 2; + $content['ruleID'] = $ruleID = ($this->rulesByID['priority'] -1) / 2; $error = 0; switch ($button) { diff --git a/mail/templates/default/app.css b/mail/templates/default/app.css index 02f3c87b94..4149f9eae8 100644 --- a/mail/templates/default/app.css +++ b/mail/templates/default/app.css @@ -872,3 +872,9 @@ div.mailComposeHeaderSection>table { #mail-subscribe { overflow: hidden; } + +.sieve-title { + font-size: 12pt; + vertical-align: middle; +} +.sieve-title .ruleID::before {content:'#'} \ No newline at end of file diff --git a/mail/templates/default/sieve.edit.xet b/mail/templates/default/sieve.edit.xet index d31215ba43..52e46c6fab 100644 --- a/mail/templates/default/sieve.edit.xet +++ b/mail/templates/default/sieve.edit.xet @@ -2,141 +2,144 @@ -