]> source.dussan.org Git - nextcloud-server.git/commitdiff
show only most essential stuff in add and edit event form
authorGeorg Ehrke <georg.stefan.germany@googlemail.com>
Tue, 27 Sep 2011 19:56:16 +0000 (21:56 +0200)
committerGeorg Ehrke <georg.stefan.germany@googlemail.com>
Tue, 27 Sep 2011 19:56:16 +0000 (21:56 +0200)
apps/calendar/js/calendar.js
apps/calendar/templates/part.eventform.php

index f8d1c8e650e1a37dbdf831c3b3bfa4579c836eb0..1b345452912968531ddc22edaad4472f5e54e26e 100644 (file)
@@ -352,6 +352,10 @@ Calendar={
                                        }
                                },"json");
                },
+               showadvancedoptions:function(){
+                       $("#advanced_options").css("display", "block");
+                       $("#advanced_options_button").css("display", "none");
+               },
                createEventPopup:function(e){
                        var popup = $(this).data('popup');
                        if (!popup){
index 5bb072cc23ba14f5930c0461da194358474a8324..4c34b3e1fcc02cc316ee1c0912f8dff3f7f527be 100644 (file)
@@ -5,12 +5,6 @@
                        <input type="text" style="width:350px;" size="100" placeholder="<?php echo $l->t("Title of the Event");?>" value="<?php echo isset($_['title']) ? $_['title'] : '' ?>" maxlength="100" name="title"/>
                        </td>
                </tr>
-               <tr>
-                       <th width="75px"><?php echo $l->t("Location");?>:</th>
-                       <td>
-                       <input type="text" style="width:350px;" size="100" placeholder="<?php echo $l->t("Location of the Event");?>" value="<?php echo isset($_['location']) ? $_['location'] : '' ?>" maxlength="100"  name="location" />
-                       </td>
-               </tr>
        </table>
        <table>
                <tr>
                        &nbsp;&nbsp;
                        <input type="time" value="<?php echo $_['endtime'];?>" name="totime" id="totime">
                        </td><!--use jquery-->
-               </tr><!--
+               </tr>
+       </table>
+       <input type="button" class="submit" value="<?php echo $l->t("Advanced options"); ?>" onclick="Calendar.UI.showadvancedoptions();" id="advanced_options_button">
+       <div id="advanced_options" style="display: none;">
+       <!--
+       <table>
                <tr>
                        <th width="75px"><?php echo $l->t("Repeat");?>:</th>
                        <td>
        <hr>-->
        <table>
                <tr>
-                       <th width="75px" style="vertical-align: top;"><?php echo $l->t("Description");?>:</th>
+                       <th width="85px"><?php echo $l->t("Location");?>:</th>
+                       <td>
+                       <input type="text" style="width:350px;" size="100" placeholder="<?php echo $l->t("Location of the Event");?>" value="<?php echo isset($_['location']) ? $_['location'] : '' ?>" maxlength="100"  name="location" />
+                       </td>
+               </tr>
+       </table>
+       <table>
+               <tr>
+                       <th width="85px" style="vertical-align: top;"><?php echo $l->t("Description");?>:</th>
                        <td><textarea style="width:350px;height: 150px;" placeholder="<?php echo $l->t("Description of the Event");?>" name="description"><?php echo isset($_['description']) ? $_['description'] : '' ?></textarea></td>
                </tr>
        </table>
+       </div>