recurrence editor
authorArt Cancro <ajc@citadel.org>
Thu, 9 Oct 2008 21:15:30 +0000 (21:15 +0000)
committerArt Cancro <ajc@citadel.org>
Thu, 9 Oct 2008 21:15:30 +0000 (21:15 +0000)
webcit/event.c
webcit/static/wclib.js

index a5cd217d879d8c4f98de782e400b5ac02b383308..fb49aeaebc4bc8a1808ac789fb013cbd80cf5ddc 100644 (file)
@@ -421,7 +421,7 @@ void display_edit_individual_event(icalcomponent *supplied_vevent, long msgnum,
 
        wprintf("<div id=\"rrule_div\">\n");            /* begin 'rrule_div' div */
 
-       wprintf("<table border=0 width=100%%>\n");      /* same table style as the event tab */
+       wprintf("<table border=0 cellspacing=\"10\" width=100%%>\n");
 
        /* Table row displaying raw RRULE data, FIXME remove when finished */
        if (rrule) {
@@ -492,6 +492,29 @@ void display_edit_individual_event(icalcomponent *supplied_vevent, long msgnum,
        }
        wprintf("</div>\n");                            /* end 'weekday_selector' div */
 
+
+       int which_rrmonthtype_is_preselected = 0;       /* FIXME */
+
+       wprintf("<div id=\"monthday_selector\">");      /* begin 'monthday_selector' div */
+
+       wprintf("<input type=\"radio\" name=\"rrmonthtype\" id=\"rrmonthtype_mday\" "
+               "%s onChange=\"RecurrenceShowHide();\">",
+               ((which_rrmonthtype_is_preselected == 0) ? "checked" : "")
+       );
+       wprintf("on day FIXME of the month");           /* FIXME */
+       wprintf("<br />\n");
+
+       wprintf("<input type=\"radio\" name=\"rrmonthtype\" id=\"rrmonthtype_wday\" "
+               "%s onChange=\"RecurrenceShowHide();\">",
+               ((which_rrmonthtype_is_preselected == 1) ? "checked" : "")
+       );
+       wprintf("on the FIXME FIXME of the month");     /* FIXME */
+       wprintf("<br />\n");
+
+       wprintf("</div>\n");                            /* end 'monthday_selector' div */
+
+
+
        wprintf("</td></tr>\n");
 
 
index bccc22debc77430a3d66d0d859b0c836e5dde8a9..b953edfbbd6178845a777e906c52fe3b3e0ed755 100644 (file)
@@ -1006,6 +1006,13 @@ function RecurrenceShowHide() {
                $('weekday_selector').style.display = 'none';
        }
 
+       if ($('freq_selector').selectedIndex == 5) {
+               $('monthday_selector').style.display = 'block';
+       }
+       else {
+               $('monthday_selector').style.display = 'none';
+       }
+
        if ($('rrend_count').checked) {
                $('rrcount').disabled = false;
        }