2012-03-31 15:45:24 +00:00
< !DOCTYPE htm
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
< html xmlns = "http://www.w3.org/1999/xhtml"
xmlns:py="http://genshi.edgewall.org/"
xmlns:xi="http://www.w3.org/2001/XInclude">
< xi:include href = "layout.html" / >
< head >
< script type = "text/javascript" src = "${chrome.htdocs_location}js/wikitoolbar.js" > < / script >
< script type = "text/javascript" >
/* < ![CDATA[ */
jQuery(document).ready(function($) {
$("#name").focus();
$("#date_begin").datepicker({"dateFormat" : "dd.mm.yy", altField: '#date_end'});
$("#date_end").datepicker({"dateFormat" : "dd.mm.yy"});
$("#until_date").datepicker({"dateFormat" : "dd.mm.yy"});
});
/* ]]> */
< / script >
< title > ${event.e_id and 'Edit Event' or 'Add Event'}< / title >
< / head >
< body >
< div id = "content" >
< form name = "new_event" id = 'new_event' uri = "" method = "post" mime-type = "text/plain" action = "" >
< input py:if = "event.e_id != 0" type = "hidden" name = "event_id" value = "${event.e_id}" / >
< fieldset id = "properties" >
< legend > ${event.e_id and 'Edit Event' or 'Add Event'}< / legend >
2012-04-25 05:30:22 +00:00
< table class = "event-wizard" py:with = "mydt = selected_tz.normalize(event.time_begin.astimezone(selected_tz));dt2 = selected_tz.normalize(event.time_end.astimezone(selected_tz))" >
2012-03-31 15:45:24 +00:00
< tr > < th > < label for = "name" > Title:< / label > < / th > < td > < input id = "name" type = "text" size = "60" maxlength = "200" name = "name" value = "${event.name}" / > < / td > < / tr >
< tr > < th > < label for = "time_begin" > Date begin:< / label > < / th > < td > < input id = "date_begin" type = "text" size = "10" maxlength = "10" name = "date_begin" value = "${mydt.strftime('%d.%m.%Y')}" / >
< input id = "time_begin" type = "text" size = "5" maxlength = "5" name = "time_begin" value = "${mydt.strftime('%H:%M')}" / > ${mydt.tzinfo.tzname(None)}< / td >
< / tr >
< tr > < th > < label for = "time_begin" > Date end:< / label > < / th > < td > < input id = "date_end" type = "text" size = "10" maxlength = "10" name = "date_end" value = "${dt2.strftime('%d.%m.%Y')}" / >
< input id = "time_end" type = "text" size = "5" maxlength = "5" name = "time_end" value = "${dt2.strftime('%H:%M')}" / > ${dt2.tzinfo.tzname(None)}< / td >
< / tr >
< tr > < th > < label for = "location" > Locations:< / label > < / th >
< td > < select id = "location" name = "location_id" size = "1" >
< option py:for = "location in locations" selected = "${location.location_id == event.location_id and 'checked' or None}" value = "${location.location_id}" > ${location.name} :${location.coordinate_str()}< / option >
< / select >
< a py:if = "'LOCATION_MODIFY' in perm" href = "${href.location(from_='event', id=event.e_id)}" > edit/search locations< / a > < / td >
< / tr >
< tr > < td > < / td > < td py:choose = "" test = "" > < a py:when = "event.e_id" class = "buttonlike" href = "${href.event('recurrency', event.e_id)}" > show recurrency options< / a >
< input py:otherwise = "" type = "checkbox" id = "show_recurrency" name = "show_recurrency" / > < label for = "show_recurrency" > show recurrency options< / label > < / td >
< / tr >
< / table >
< / fieldset >
< fieldset >
< legend > Tags< / legend >
< div >
< input id = "tags" type = "text" size = "70" maxlength = "70" name = "tags" value = "${event.tags}" / >
< / div >
< / fieldset >
< div class = "mybuttons" >
< input type = "reset" value = "Reset" / >
< py:choose test = "" >
< py:when test = "event.event_id != 0" >
< input type = "submit" name = "edit" value = "${event.e_id == 0 and 'add' or 'edit'}" / >
< input py:if = "'EVENTS_DELETE' in perm and event.e_id != 0" type = "submit" name = "delete" value = "delete" / >
< / py:when >
< input py:otherwise = "" type = "submit" name = "add" value = "add" / >
< / py:choose >
< / div >
< / form >
< / div >
< / body >
< / html >