From 12533fbed3797a56c14af6ebe197baa90e0d1f99 Mon Sep 17 00:00:00 2001 From: Thomas Bruederli Date: Wed, 6 Mar 2013 12:30:12 +0100 Subject: [PATCH] Minor calendar UI improvements: make date fields wide enough; display client's current timezone name --- plugins/calendar/calendar.php | 1 + plugins/calendar/skins/classic/templates/calendar.html | 4 ++-- plugins/calendar/skins/classic/templates/eventedit.html | 4 ++-- plugins/calendar/skins/larry/calendar.css | 8 ++++++++ plugins/calendar/skins/larry/templates/calendar.html | 7 ++++--- plugins/calendar/skins/larry/templates/eventedit.html | 6 +++--- 6 files changed, 20 insertions(+), 10 deletions(-) diff --git a/plugins/calendar/calendar.php b/plugins/calendar/calendar.php index eed008de..18354093 100644 --- a/plugins/calendar/calendar.php +++ b/plugins/calendar/calendar.php @@ -275,6 +275,7 @@ class calendar extends rcube_plugin // initialize attendees autocompletion rcube_autocomplete_init(); + $this->rc->output->set_env('timezone', $this->timezone->getName()); $this->rc->output->set_env('calendar_driver', $this->rc->config->get('calendar_driver'), false); $this->rc->output->set_env('mscolors', $this->driver->get_color_values()); $this->rc->output->set_env('identities-selector', $this->ui->identity_select(array('id' => 'edit-identities-list'))); diff --git a/plugins/calendar/skins/classic/templates/calendar.html b/plugins/calendar/skins/classic/templates/calendar.html index 6e70a16f..07259877 100644 --- a/plugins/calendar/skins/classic/templates/calendar.html +++ b/plugins/calendar/skins/classic/templates/calendar.html @@ -106,12 +106,12 @@
-   +  
-   +  
diff --git a/plugins/calendar/skins/classic/templates/eventedit.html b/plugins/calendar/skins/classic/templates/eventedit.html index 35484788..a5ace0dc 100644 --- a/plugins/calendar/skins/classic/templates/eventedit.html +++ b/plugins/calendar/skins/classic/templates/eventedit.html @@ -26,12 +26,12 @@
-   +  
-   +  
diff --git a/plugins/calendar/skins/larry/calendar.css b/plugins/calendar/skins/larry/calendar.css index 282db50e..f7278a6d 100644 --- a/plugins/calendar/skins/larry/calendar.css +++ b/plugins/calendar/skins/larry/calendar.css @@ -125,6 +125,14 @@ div.sidebarclosed { border-bottom-color: #ababab; } +#calendar .timezonedisplay { + position: absolute; + bottom: 9px; + right: 8px; + font-size: 0.85em; + color: #666; +} + #print { width: 680px; } diff --git a/plugins/calendar/skins/larry/templates/calendar.html b/plugins/calendar/skins/larry/templates/calendar.html index 5b46d4ff..54e7cb82 100644 --- a/plugins/calendar/skins/larry/templates/calendar.html +++ b/plugins/calendar/skins/larry/templates/calendar.html @@ -41,6 +41,7 @@
+
@@ -119,13 +120,13 @@
-   +  
-   - +   +
diff --git a/plugins/calendar/skins/larry/templates/eventedit.html b/plugins/calendar/skins/larry/templates/eventedit.html index 841baf74..6784891b 100644 --- a/plugins/calendar/skins/larry/templates/eventedit.html +++ b/plugins/calendar/skins/larry/templates/eventedit.html @@ -23,13 +23,13 @@
-   +  
-   - +   +