summaryrefslogtreecommitdiff
path: root/plugins/managesieve/skins
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-03-18 08:53:32 +0000
committeralecpl <alec@alec.pl>2010-03-18 08:53:32 +0000
commit98c489e9f49de6a4442821614d5e69b36173eeab (patch)
tree5fe4a2c717806ed16b031ab33ef75da4b551b7fe /plugins/managesieve/skins
parentc16986be7f5f4df21bfc85a93a2c35f38c86bf12 (diff)
- Managesieve: Added import from Horde-INGO
- Managesieve: Support for more than one match using if+stop instead of if+elsif structures (#1486078) - Managesieve: Support for selectively disabling rules within a single sieve script (#1485882) - Managesieve: Added vertical splitter
Diffstat (limited to 'plugins/managesieve/skins')
-rw-r--r--plugins/managesieve/skins/default/managesieve.css38
-rw-r--r--plugins/managesieve/skins/default/templates/filteredit.html10
-rw-r--r--plugins/managesieve/skins/default/templates/managesieve.html14
3 files changed, 49 insertions, 13 deletions
diff --git a/plugins/managesieve/skins/default/managesieve.css b/plugins/managesieve/skins/default/managesieve.css
index 295c3f61f..9f72e4a62 100644
--- a/plugins/managesieve/skins/default/managesieve.css
+++ b/plugins/managesieve/skins/default/managesieve.css
@@ -5,7 +5,6 @@
{
position: absolute;
left: 20px;
- width: 220px;
top: 120px;
bottom: 30px;
border: 1px solid #999999;
@@ -28,6 +27,11 @@
cursor: pointer;
}
+#filters-table tbody tr.disabled td
+{
+ color: #999999;
+}
+
#filtersbuttons
{
position: absolute;
@@ -38,7 +42,7 @@
#filtersetsbuttons
{
position: absolute;
- left: 250px;
+ left: 230px;
top: 85px;
}
@@ -131,7 +135,7 @@
#filtersetselect
{
position: absolute;
- left: 380px;
+ left: 360px;
top: 90px;
}
@@ -139,7 +143,6 @@
{
position: absolute;
top: 120px;
- left: 250px;
right: 20px;
bottom: 30px;
border: 1px solid #999999;
@@ -170,12 +173,6 @@ body.iframe
padding: 20px 10px 10px 10px;
}
-#filter-form input, select
-{
- font-size: 10pt;
- font-family: inherit;
-}
-
fieldset
{
background-color: white;
@@ -248,3 +245,24 @@ span.label
font-size: 10px;
white-space: nowrap;
}
+
+#footer
+{
+ padding-top: 5px;
+ width: 100%;
+}
+
+#footer .footerleft
+{
+ padding-left: 2px;
+ white-space: nowrap;
+ float: left;
+}
+
+#footer .footerright
+{
+ padding-right: 2px;
+ white-space: nowrap;
+ text-align: right;
+ float: right;
+}
diff --git a/plugins/managesieve/skins/default/templates/filteredit.html b/plugins/managesieve/skins/default/templates/filteredit.html
index 164b91ca8..81c6e6bc6 100644
--- a/plugins/managesieve/skins/default/templates/filteredit.html
+++ b/plugins/managesieve/skins/default/templates/filteredit.html
@@ -99,9 +99,15 @@ function rule_join_radio(value)
<div id="filter-form">
<roundcube:object name="filterform" />
-<p>
+<div id="footer">
+<div class="footerleft">
<roundcube:button command="plugin.managesieve-save" type="input" class="button mainaction" label="save" />
-</p>
+</div>
+<div class="footerright">
+<label for="disabled"><roundcube:label name="managesieve.filterdisabled" /></label>
+<input type="checkbox" id="disabled" name="_disabled" value="1" />
+</div>
+</div>
</form>
</div>
diff --git a/plugins/managesieve/skins/default/templates/managesieve.html b/plugins/managesieve/skins/default/templates/managesieve.html
index 0913ef5fc..f99466e80 100644
--- a/plugins/managesieve/skins/default/templates/managesieve.html
+++ b/plugins/managesieve/skins/default/templates/managesieve.html
@@ -5,6 +5,15 @@
<roundcube:include file="/includes/links.html" />
<link rel="stylesheet" type="text/css" href="/this/managesieve.css" />
<script type="text/javascript" src="/functions.js"></script>
+<script type="text/javascript" src="/splitter.js"></script>
+
+<style type="text/css">
+#filterslist { width: <roundcube:exp expression="!empty(cookie:sieveviewsplitter) ? cookie:sieveviewsplitter-5 : 210" />px; }
+#filter-box { left: <roundcube:exp expression="!empty(cookie:sieveviewsplitter) ? cookie:sieveviewsplitter+5 : 220" />px;
+<roundcube:exp expression="browser:ie ? ('width:expression((parseInt(this.parentNode.offsetWidth)-'.(!empty(cookie:sieveviewsplitter) ? cookie:sieveviewsplitter+5 : 220).')+\\'px\\');') : ''" />
+}
+</style>
+
</head>
<body>
@@ -32,7 +41,10 @@
<div id="filterslist">
<roundcube:object name="filterslist" id="filters-table" class="records-table" cellspacing="0" summary="Filters list" />
</div>
-
+<script type="text/javascript">
+ var sieveviewsplit = new rcube_splitter({id:'sieveviewsplitter', p1: 'filterslist', p2: 'filter-box', orientation: 'v', relative: true, start: 215});
+ rcmail.add_onload('sieveviewsplit.init()');
+</script>
<div id="filter-box">
<roundcube:object name="filterframe" id="filter-frame" width="100%" height="100%" frameborder="0" src="/watermark.html" />
</div>