From 5f99f4456ddd1c776e865437c8bcbf2e31285b22 Mon Sep 17 00:00:00 2001 From: Jan-Christoph Borchardt Date: Mon, 18 Nov 2013 20:11:12 +0100 Subject: [PATCH] properly lay out event detail view, a first step --- css/style.css | 63 +++++++++++++-- templates/part.editevent.php | 7 +- templates/part.eventform.php | 147 ++++++++++++++--------------------- templates/part.newevent.php | 2 +- 4 files changed, 120 insertions(+), 99 deletions(-) diff --git a/css/style.css b/css/style.css index 61f9d918..3574db0a 100644 --- a/css/style.css +++ b/css/style.css @@ -135,19 +135,72 @@ button.category{margin:0 3px;} font-weight: bold; } -/* bigger event title in detail view */ -#event-title { +/* input fields take whole width */ +#event-title, +#event-location, +#category, +#event-description { -moz-box-sizing: border-box; box-sizing: border-box; width: 100%; + margin: 3px 0; +} +/* bigger event title in detail view */ +#event-title { font-size: 20px; +} +/* group from and to date fields */ +#event-time { + display: block; + margin: 5px 0; +} +#event-time-from { + float: left; +} +#event-time-to { + float: right; +} +#from, #to { + width: 65px; margin: 0; } +#fromtime, #totime { + margin: 0; +} +#event-allday { + display: inline-block; + margin: 7px 0; +} +/* category input field leaves room for edit button */ +#category { + width: 90%; +} +#editCategories { + display: inline-block; + padding: 6px 12px; +} +/* whole line for buttons of 'Advanced' and 'Export' */ +#advanced_options_button, +#editEvent-export { + display: block; + margin: 0; +} +/* normal font weight for secondary buttons for less obtrusiveness */ +#advanced_options_button, +#editEvent-export, +#editEvent-delete { + font-weight: normal; +} +/* more space for action buttons below */ +#actions { + height: 45px; +} + /* make popups scrollable in smaller viewports */ .ui-dialog { - height: 94% !important; - top: 4% !important; + max-height: 80% !important; + top: 10% !important; overflow-y: auto; overflow-x: hidden; padding: 0; @@ -156,7 +209,7 @@ button.category{margin:0 3px;} overflow: initial; } #appsettings_popup { - height: 70%; + max-height: 70%; overflow-y: auto; overflow-x: hidden; } diff --git a/templates/part.editevent.php b/templates/part.editevent.php index 5bce4757..8418adfb 100644 --- a/templates/part.editevent.php +++ b/templates/part.editevent.php @@ -1,13 +1,12 @@ -
"> +
">
inc("part.eventform")); ?>
- " data-link=""> - " data-link=""> - " data-link="?eventid="> + +
diff --git a/templates/part.eventform.php b/templates/part.eventform.php index 8d7589e3..d40fc56e 100644 --- a/templates/part.eventform.php +++ b/templates/part.eventform.php @@ -11,97 +11,59 @@
- - - - - -
t("Title"));?>: - " value="" maxlength="100" name="title" autofocus="autofocus"/> -
- - - - - 1) { ?> - - - - - - - - - - - -
t("Category"));?>: - - <?php p($l->t('Edit categories')); ?> -    t("Calendar"));?>: - -   - -
t("Access Class"));?>: - -
-
- - - - - - - - - - - - - -
- id="allday_checkbox" name="allday"> - -
t("From"));?>: - -    - -
t("To"));?>: - -    - -
- " id="advanced_options_button"> + + + 1) { ?> + t("Calendar"));?> + + + + + +
+
+ t('from'));?> + + +
+
+ t('to'));?> + + +
+
+ + + + + + + + + + <?php p($l->t('Edit categories')); ?> + + + +
+
+
@@ -255,5 +217,12 @@
inc('part.share')); } ?> + +
+ t('Visibility to people shared with'));?> +
diff --git a/templates/part.newevent.php b/templates/part.newevent.php index dc1d0296..53e7149a 100644 --- a/templates/part.newevent.php +++ b/templates/part.newevent.php @@ -3,7 +3,7 @@ inc("part.eventform")); ?>
- "> +