+ add Michael Meskes Patch; hide Task due date UI elements if they're not applicable.
[citadel.git] / webcit / calendar_tools.c
index 6cad617fffa5c4df16e4786b5f7179e5bbab3e0a..95bae39f38a74dc763975a0496dc302b86d23c75 100644 (file)
@@ -80,8 +80,11 @@ void display_icaltimetype_as_webform(struct icaltimetype *t, char *prefix, int d
                wprintf("<div style=\"display:none\">");
        }
 
+       wprintf("<span ID=\"");
+       wprintf(prefix);
+       wprintf("_time\">");
        wprintf(_("Hour: "));
-       wprintf("<SELECT NAME=\"%s_hour\" ID=\"%s_hour\" SIZE=\"1\">\n", prefix, prefix);
+       wprintf("<SELECT NAME=\"%s_hour\" SIZE=\"1\">\n", prefix);
        for (i=0; i<=23; ++i) {
 
                if (time_format == WC_TIMEFORMAT_24) {
@@ -101,7 +104,7 @@ void display_icaltimetype_as_webform(struct icaltimetype *t, char *prefix, int d
        wprintf("</SELECT>\n");
 
        wprintf(_("Minute: "));
-       wprintf("<SELECT NAME=\"%s_minute\" ID=\"%s_minute\" SIZE=\"1\">\n", prefix, prefix);
+       wprintf("<SELECT NAME=\"%s_minute\" SIZE=\"1\">\n", prefix);
        for (i=0; i<=59; ++i) {
                if ( (i % 5 == 0) || (tm.tm_min == i) ) {
                        wprintf("<OPTION %s VALUE=\"%d\">:%02d</OPTION>\n",
@@ -110,7 +113,7 @@ void display_icaltimetype_as_webform(struct icaltimetype *t, char *prefix, int d
                                );
                }
        }
-       wprintf("</SELECT>\n");
+       wprintf("</SELECT></span>\n");
 
        if (date_only) {
                wprintf("</div>");