From 69894e28c48dabb1061b55156dbafc91f7c75ea1 Mon Sep 17 00:00:00 2001 From: friendica Date: Sun, 8 Feb 2015 20:23:02 -0800 Subject: we still need an event preview but this looks a lot better. --- view/css/mod_events.css | 4 ++ view/js/mod_events.js | 14 ++-- view/theme/redbasic/css/style.css | 2 +- view/tpl/event_form.tpl | 136 ++++++++++++++++++++++++-------------- view/tpl/event_head.tpl | 4 +- 5 files changed, 100 insertions(+), 60 deletions(-) (limited to 'view') diff --git a/view/css/mod_events.css b/view/css/mod_events.css index a029440cb..e2439e844 100644 --- a/view/css/mod_events.css +++ b/view/css/mod_events.css @@ -33,3 +33,7 @@ #event-nofinish-break { margin-bottom: 10px; } + +#event-desc-text, #event-location-text, .event-form-location-end { + margin-top: 15px; +} \ No newline at end of file diff --git a/view/js/mod_events.js b/view/js/mod_events.js index d4dc9b585..fc25e4331 100644 --- a/view/js/mod_events.js +++ b/view/js/mod_events.js @@ -1,14 +1,12 @@ $(document).ready( function() { showHideFinishDate(); }); -function showHideFinishDate() { - if( $('#id_nofinish').is(':checked')) - $('#event-finish-wrapper').hide(); - else - $('#event-finish-wrapper').show(); -} - - + function showHideFinishDate() { + if( $('#id_nofinish').is(':checked')) + $('#event-finish-wrapper').hide(); + else + $('#event-finish-wrapper').show(); + } function eventGetStart() { //reply = prompt("{{$expirewhen}}", $('#jot-expire').val()); diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css index 1aa7cc729..451c3b3ee 100644 --- a/view/theme/redbasic/css/style.css +++ b/view/theme/redbasic/css/style.css @@ -1221,7 +1221,7 @@ nav .acpopup { } #event-desc-text, #event-location-text { - margin-top: 10px; + margin-top: 15px; margin-bottom: 5px; } #event-submit { diff --git a/view/tpl/event_form.tpl b/view/tpl/event_form.tpl index 4ce57798c..5ade55870 100755 --- a/view/tpl/event_form.tpl +++ b/view/tpl/event_form.tpl @@ -56,54 +56,38 @@
{{$d_text}}
- - - - - - - - - -{{if $qcomment}} - -{{/if}} -
-
+ +
+
-
- - - - - +
+ + + + +
- - - + + +
@@ -115,23 +99,77 @@ {{/if}} --> -
+
+
+
{{$l_text}}
+ +
+
+
+
+ + + + + +
+ +
+ + + +
+ +
+ + +
-
{{$l_text}}
-
+
+ + +
+ +
+
+
+ -
{{$sh_text}}
+ - {{$acl}} +{{$acl}}
diff --git a/view/tpl/event_head.tpl b/view/tpl/event_head.tpl index 830347555..11dba2f9d 100755 --- a/view/tpl/event_head.tpl +++ b/view/tpl/event_head.tpl @@ -118,9 +118,9 @@ $(document).ready(function() { - $('#event-share-checkbox').change(function() { + $('#id_share').change(function() { - if ($('#event-share-checkbox').is(':checked')) { + if ($('#id_share').is(':checked')) { $('#event-permissions-button').show(); } else { -- cgit v1.2.3