1 <html xmlns="http://www.w3.org/1999/xhtml" metal:use-macro="container/main_template/macros/master">
4 <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
5 <div metal:fill-slot="javascript_head_slot">
6 <script type="text/javascript" tal:attributes="src string:$portal_url/calendar.js"></script>
7 <script type="text/javascript" tal:attributes="src string:$portal_url/lang/calendar-fr.js"></script>
8 <script type="text/javascript" tal:attributes="src string:$portal_url/calendar-setup.js"></script>
9 <script type="text/javascript" tal:attributes="src string:$portal_url/generic_header_script.js"></script>
13 <body i18n:domain="plinn">
14 <div metal:fill-slot="main"
15 tal:define="form options/form;
17 <form method="post" tal:attributes="action form/action">
18 <table class="TwoColumnForm" cellspacing="0">
20 <th i18n:translate="" nowrap="nowrap">Event Name</th>
22 <input type="text" name="title" value="Title" size="35" tal:attributes="value fields/title" maxlength="100" />
24 <th nowrap="nowrap" style="text-align:left" i18n:translate="">Event type</th>
27 <th i18n:translate="">Location</th>
29 <input type="text" name="location" value="location" size="35" tal:attributes="value fields/location" maxlength="100" />
31 <td rowspan="4" nowrap="nowrap">
32 <select name="event_type:list" size="5" multiple="multiple" tal:define="contentSubject fields/event_type; allowedSubjects python:here.portal_metadata.listAllowedSubjects(here)">
33 <option value="subj" tal:repeat="subj allowedSubjects" tal:attributes="value subj; selected python:subj in contentSubject" tal:content="subj" i18n:translate="">Event Type N</option>
38 <th nowrap="nowrap" i18n:translate="">Contact Name</th>
40 <input type="text" name="contact_name" value="contact_name" size="35" tal:attributes="value fields/contact_name" maxlength="100" />
44 <th nowrap="nowrap" i18n:translate="">Contact Email</th>
46 <input type="text" name="contact_email" value="contact_email" size="35" tal:attributes="value fields/contact_email" maxlength="100" />
50 <th nowrap="nowrap" i18n:translate="">Contact Phone</th>
52 <input id="cb_contact_phone" type="text" name="contact_phone" value="contact_phone" size="35" tal:attributes="value fields/contact_phone" maxlength="100" />
61 <fieldset tal:define="start_date fields/start_date;
62 year start_date/year ;
63 month python:str(start_date['month']).zfill(2) ;
64 day python:str(start_date['day']).zfill(2) ;
65 hour python:str(start_date['hour']).zfill(2) ;
66 minute python:str(start_date['minute']).zfill(2) ">
67 <legend i18n:translate="">Beginning</legend>
68 <div id="start_date_fields">
69 <input id="start_date" type="hidden" /><span i18n:translate="" tal:omit-tag=""
70 ><span i18n:name="month"
71 ><input id="start_date_month" type="text" name="start_date.month:record" size="2" tal:attributes="value month"
72 /></span> / <span i18n:name="day"
73 ><input id="start_date_day" type="text" name="start_date.day:record" size="2" tal:attributes="value day"
74 /></span> / <span i18n:name="year"
75 ><input id="start_date_year" type="text" name="start_date.year:record" size="4" tal:attributes="value year"
76 /></span> <span i18n:name="hour"
77 ><input id="start_date_hour" type="text" name="start_date.hour:record" size="2" tal:attributes="value hour"
78 /></span> : <span i18n:name="minute"
79 ><input id="start_date_minute" type="text" name="start_date.minute:record" size="2" tal:attributes="value minute"
81 <input id="show_start_date_cal" type="button" value="..." /><br />
86 <fieldset tal:define="end_date fields/end_date;
88 month python:str(end_date['month']).zfill(2) ;
89 day python:str(end_date['day']).zfill(2) ;
90 hour python:str(end_date['hour']).zfill(2) ;
91 minute python:str(end_date['minute']).zfill(2) ">
92 <legend i18n:translate="">End</legend>
93 <div id="end_date_fields">
94 <input id="end_date" type="hidden" /><span i18n:translate="" tal:omit-tag=""
95 ><span i18n:name="month"
96 ><input id="end_date_month" type="text" name="end_date.month:record" size="2" tal:attributes="value month"
97 /></span> / <span i18n:name="day"
98 ><input id="end_date_day" type="text" name="end_date.day:record" size="2" tal:attributes="value day"
99 /></span> / <span i18n:name="year"
100 ><input id="end_date_year" type="text" name="end_date.year:record" size="4" tal:attributes="value year"
101 /></span> <span i18n:name="hour"
102 ><input id="end_date_hour" type="text" name="end_date.hour:record" size="2" tal:attributes="value hour"
103 /></span> : <span i18n:name="minute"
104 ><input id="end_date_minute" type="text" name="end_date.minute:record" size="2" tal:attributes="value minute"
106 <input id="show_end_date_cal" type="button" value="..." /><br />
115 <th i18n:translate="">Description</th>
116 <td colspan="2" nowrap="nowrap">
117 <textarea name="description" rows="6" cols="55" tal:content="fields/description">Description</textarea>
121 <th i18n:translate="">Event URL</th>
123 <input type="text" name="event_url" value="event_url" size="55" tal:attributes="value fields/event_url" maxlength="100" />
128 <script type="text/javascript">
130 new MetadataDateManager('start_date', new Date("1969/12/31"));
131 new MetadataDateManager('end_date', new Date("1969/12/31"));
135 <input type="submit" value="Save" name="change_and_view" i18n:attributes="value" />