wprintf("<div id=\"content\" class=\"service\">\n");
wprintf("<div class=\"fix_scrollbar_bug\">");
-#ifndef TECH_PREVIEW
- wprintf("<table class=\"event_background\"><tr><td>\n");
-#endif
/************************************************************
* Uncomment this to see the UID in calendar events for debugging
wprintf("<INPUT TYPE=\"hidden\" NAME=\"day\" VALUE=\"%s\">\n",
bstr("day"));
-#ifdef TECH_PREVIEW
- char *tabnames[] = { // FIXME localize these when the code is finished
- "Event",
- "Attendees",
- "Recurrence"
+ char *tabnames[] = {
+ _("Event"),
+ _("Attendees"),
+ _("Recurrence")
};
tabbed_dialog(3, tabnames);
begin_tab(0, 3);
-#endif
/* Put it in a borderless table so it lines up nicely */
wprintf("<TABLE border=0 width=100%%>\n");
wprintf("</TD></TR>\n");
- /**
+ /*
* If this is an all-day-event, set the end time to be identical to
* the start time (the hour/minute/second will be set to midnight).
* Otherwise extract or create it.
t_end = icalproperty_get_dtend(p);
}
else {
- /**
+ /*
* If this is not an all-day event and there is no
* end time specified, make the default one hour
* from the start time.
wprintf("</TD></TR>\n");
- /** Attendees */
+
+ /** Done with properties. */
+ wprintf("</TABLE>\n");
+
+ end_tab(0, 3);
+
+ /* Attendees tab (need to move things here) */
+ begin_tab(1, 3);
+ wprintf("<TABLE border=0 width=100%%>\n"); /* same table style as the event tab */
wprintf("<TR><TD><B>");
wprintf(_("Attendees"));
wprintf("</B><br />"
_("Attendees"),
_("Contacts")
);
- /** Pop open an address book -- end **/
+ /* Pop open an address book -- end **/
wprintf("</TD><TD>"
"<TEXTAREA %s NAME=\"attendees\" id=\"attendees_box\" wrap=soft "
}
}
wprintf("</TEXTAREA></TD></TR>\n");
+ wprintf("</TABLE>\n");
+ end_tab(1, 3);
- /** Done with properties. */
- wprintf("</TABLE>\n<CENTER>"
+ /* Recurrence tab */
+ begin_tab(2, 3);
+ icalproperty *rrule = NULL;
+ struct icalrecurrencetype recur;
+
+ rrule = icalcomponent_get_first_property(vevent, ICAL_RRULE_PROPERTY);
+ if (rrule) {
+ recur = icalproperty_get_rrule(rrule);
+ wprintf("<tt>%s</tt><br />\n", icalrecurrencetype_as_string(&recur));
+ }
+ end_tab(2, 3);
+
+ /* submit buttons (common area beneath the tabs) */
+ begin_tab(3, 3);
+ wprintf("<CENTER>"
"<INPUT TYPE=\"submit\" NAME=\"save_button\" VALUE=\"%s\">"
" "
"<INPUT TYPE=\"submit\" NAME=\"delete_button\" VALUE=\"%s\">\n"
_("Check attendee availability"),
_("Cancel")
);
-
wprintf("</FORM>\n");
-#ifndef TECH_PREVIEW
- wprintf("</td></tr></table>");
-#endif
-
-#ifdef TECH_PREVIEW
- end_tab(0, 3);
-
- /* Attendees tab (need to move things here) */
- begin_tab(1, 3);
- end_tab(1, 3);
-
- /* Recurrence tab */
- begin_tab(2, 3);
- icalproperty *rrule = NULL;
- struct icalrecurrencetype recur;
-
- rrule = icalcomponent_get_first_property(vevent, ICAL_RRULE_PROPERTY);
- if (rrule) {
- recur = icalproperty_get_rrule(rrule);
- wprintf("<tt>%s</tt><br />\n", icalrecurrencetype_as_string(&recur));
- }
- end_tab(2, 3);
-
-#endif
+ end_tab(3, 3);
wprintf("</div>\n");
}
}
-/**
- * \brief Save an edited event
- * \param supplied_vevent the event to save
- * \param msgnum the index on the citserver
+/*
+ * Save an edited event
+ *
+ * supplied_vevent: the event to save
+ * msgnum: the index on the citserver
*/
void save_individual_event(icalcomponent *supplied_vevent, long msgnum, char *from, int unread) {
char buf[SIZ];
}
- /**
+ /*
* If the user clicked 'Delete' then delete it.
*/
if ( (havebstr("delete_button")) && (msgnum > 0L) ) {
icalcomponent_free(vevent);
}
- /** If this was a save or delete, go back to the calendar view. */
+ /* If this was a save or delete, go back to the calendar view. */
if (!havebstr("check_button")) {
readloop("readfwd");
}