clarification
[Plinn.git] / skins / custom_content / event_edit_template.pt
1 <html xmlns="http://www.w3.org/1999/xhtml" metal:use-macro="container/main_template/macros/master">
2
3 <head>
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>
10 </div>
11 </head>
12
13 <body i18n:domain="plinn">
14 <div metal:fill-slot="main"
15 tal:define="form options/form;
16 fields form/fields">
17 <form method="post" tal:attributes="action form/action">
18 <table class="TwoColumnForm" cellspacing="0">
19 <tr>
20 <th i18n:translate="" nowrap="nowrap">Event Name</th>
21 <td nowrap="nowrap">
22 <input type="text" name="title" value="Title" size="35" tal:attributes="value fields/title" maxlength="100" />
23 </td>
24 <th nowrap="nowrap" style="text-align:left" i18n:translate="">Event type</th>
25 </tr>
26 <tr>
27 <th i18n:translate="">Location</th>
28 <td nowrap="nowrap">
29 <input type="text" name="location" value="location" size="35" tal:attributes="value fields/location" maxlength="100" />
30 </td>
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>
34 </select>
35 </td>
36 </tr>
37 <tr>
38 <th nowrap="nowrap" i18n:translate="">Contact Name</th>
39 <td nowrap="nowrap">
40 <input type="text" name="contact_name" value="contact_name" size="35" tal:attributes="value fields/contact_name" maxlength="100" />
41 </td>
42 </tr>
43 <tr>
44 <th nowrap="nowrap" i18n:translate="">Contact Email</th>
45 <td nowrap="nowrap">
46 <input type="text" name="contact_email" value="contact_email" size="35" tal:attributes="value fields/contact_email" maxlength="100" />
47 </td>
48 </tr>
49 <tr>
50 <th nowrap="nowrap" i18n:translate="">Contact Phone</th>
51 <td nowrap="nowrap">
52 <input id="cb_contact_phone" type="text" name="contact_phone" value="contact_phone" size="35" tal:attributes="value fields/contact_phone" maxlength="100" />
53 </td>
54 </tr>
55 <tr>
56 <th></th>
57 <td colspan="2">
58 <table>
59 <tr>
60 <td>
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>&nbsp;/&nbsp;<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>&nbsp;/&nbsp;<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>&nbsp;&nbsp;<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>&nbsp;:&nbsp;<span i18n:name="minute"
79 ><input id="start_date_minute" type="text" name="start_date.minute:record" size="2" tal:attributes="value minute"
80 /></span></span>
81 <input id="show_start_date_cal" type="button" value="..." /><br />
82 </div>
83 </fieldset>
84 </td>
85 <td>
86 <fieldset tal:define="end_date fields/end_date;
87 year end_date/year ;
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>&nbsp;/&nbsp;<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>&nbsp;/&nbsp;<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>&nbsp;&nbsp;<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>&nbsp;:&nbsp;<span i18n:name="minute"
104 ><input id="end_date_minute" type="text" name="end_date.minute:record" size="2" tal:attributes="value minute"
105 /></span></span>
106 <input id="show_end_date_cal" type="button" value="..." /><br />
107 </div>
108 </fieldset>
109 </td>
110 </tr>
111 </table>
112 </td>
113 </tr>
114 <tr>
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>
118 </td>
119 </tr>
120 <tr>
121 <th i18n:translate="">Event URL</th>
122 <td colspan="2">
123 <input type="text" name="event_url" value="event_url" size="55" tal:attributes="value fields/event_url" maxlength="100" />
124 </td>
125 </tr>
126 <tr>
127 <th colspan="3">
128 <script type="text/javascript">
129 //<!--
130 new MetadataDateManager('start_date', new Date("1969/12/31"));
131 new MetadataDateManager('end_date', new Date("1969/12/31"));
132 //-->
133 </script>
134 <br />
135 <input type="submit" value="Save" name="change_and_view" i18n:attributes="value" />
136 </th>
137 </tr>
138 </table>
139 </form>
140 </div>
141 </body>
142
143 </html>