From cb9a67906d53110f8c98ef6a8743fc2ecc8ba13f Mon Sep 17 00:00:00 2001 From: Bart Visscher Date: Wed, 14 Sep 2011 22:26:01 +0200 Subject: [PATCH] Move event form field to part.eventform template --- apps/calendar/templates/part.editevent.php | 100 +-------------- apps/calendar/templates/part.eventform.php | 126 +++++++++++++++++++ apps/calendar/templates/part.newevent.php | 136 +-------------------- 3 files changed, 134 insertions(+), 228 deletions(-) create mode 100644 apps/calendar/templates/part.eventform.php diff --git a/apps/calendar/templates/part.editevent.php b/apps/calendar/templates/part.editevent.php index 8a85652442c..e722515c9d0 100644 --- a/apps/calendar/templates/part.editevent.php +++ b/apps/calendar/templates/part.editevent.php @@ -1,101 +1,7 @@ -
"> - - - - - - - - - -
t("Title");?>: - -
t("Location");?>: - -
- - - - - - - -
t("Category");?>: -     t("Calendar");?>: -
-
- - - - - - - - - - - - - - - - - - - -
- -
t("From");?>: - " id="from"> -    - " id="fromtime"> -
t("To");?>: - " id="to"> -    - " id="totime"> -
t("Repeat");?>: -
-
- - - - - -
t("Attendees");?>:
-
- - - - - -
t("Description");?>:
+
"> +inc("part.eventform"); ?> - "> + ">
";}?> + + + + + t("From");?>: + + " id="from"> +    + " id="fromtime"> + + + + + t("To");?>: + + " id="to"> +    + " id="totime"> + + + +
+ +
+ + + + +
t("Description");?>:
diff --git a/apps/calendar/templates/part.newevent.php b/apps/calendar/templates/part.newevent.php index 6260f2337ef..a1c48d2c22b 100644 --- a/apps/calendar/templates/part.newevent.php +++ b/apps/calendar/templates/part.newevent.php @@ -1,135 +1,9 @@ - -
"> -
- - - - - - - - - -
t("Title");?>: - " maxlength="100" id="newevent_title"/> -
t("Location");?>: - " maxlength="100" id="newevent_location" /> -
- - - - - - - -
t("Category");?>: -     t("Calendar");?>: -
-
- - - - - - - - - - - - - - - - -
- id="newcalendar_allday_checkbox"> - document.getElementById(\"fromtime\").disabled = true;document.getElementById(\"totime\").disabled = true;document.getElementById(\"fromtime\").style.color = \"#A9A9A9\";document.getElementById(\"totime\").style.color = \"#A9A9A9\";";}?> -
t("From");?>: - " id="from"> -    - " id="fromtime"> -
t("To");?>: - " id="to"> -    - " id="totime"> -
-
- -
- - - - -
t("Description");?>:
+
"> + +inc("part.eventform"); ?>
- " onclick="validate_newevent_form();"> + " onclick="validate_newevent_form();">
@@ -213,4 +87,4 @@ } },"json"); } - \ No newline at end of file + -- 2.39.5