root/trunk/calendar3/webadmin/war/docs/event/modEvent.jsp

Revision 179 (checked in by johnsa, 7 years ago)

added calendar descriptions jsp, special css for it, and javascript to open the window. Began adding status to the mod event form.

Line 
1 <%@ taglib uri='struts-bean' prefix='bean' %>
2 <%@ taglib uri='struts-logic' prefix='logic' %>
3 <%@ taglib uri='struts-html' prefix='html' %>
4 <%@ taglib uri='struts-genurl' prefix='genurl' %>
5 <html:xhtml/>
6
7 <%@include file="/docs/header.jsp"%>
8
9 <page>modEvent</page>
10 <creating><bean:write name="peForm" property="addingEvent"/></creating>
11
12 <!-- Mod pages contain only formElements for now; we do this to
13      take advantage of Struts' form processing features -->
14 <formElements>
15   <genurl:form action="event/update" >
16     <title><html:text property="event.summary" size="40" styleId="iTitle" styleClass="edit"/></title>
17     <calendar>
18       <logic:present name="peForm" property="preferredCalendars">
19         <preferred>
20           <html:select property="prefCalendarId">
21               <html:optionsCollection property="preferredCalendars"
22                                         label="name"
23                                         value="id"/>
24           </html:select>
25         </preferred>
26       </logic:present>
27       <all>
28         <html:select property="calendarId">
29           <html:optionsCollection property="addContentCalendarCollections"
30                                       label="name"
31                                       value="id"/>
32         </html:select>
33       </all>
34     </calendar>
35     <allDay><html:checkbox property="eventStartDate.dateOnly"/></allDay>
36     <start>
37       <month>
38         <html:select property="eventStartDate.month">
39           <html:options labelProperty="eventStartDate.monthLabels"
40                         property="eventStartDate.monthVals"/>
41         </html:select>
42       </month>
43       <day>
44         <html:select property="eventStartDate.day">
45           <html:options labelProperty="eventStartDate.dayLabels"
46                         property="eventStartDate.dayVals"/>
47         </html:select>
48       </day>
49       <year>
50         <html:select property="eventStartDate.year">
51           <html:options property="yearVals"/>
52         </html:select>
53       </year>
54       <hour>
55         <html:select property="eventStartDate.hour">
56           <html:options labelProperty="eventStartDate.hourLabels"
57                         property="eventStartDate.hourVals"/>
58         </html:select>
59       </hour>
60       <minute>
61         <html:select property="eventStartDate.minute">
62           <html:options labelProperty="eventStartDate.minuteLabels"
63                         property="eventStartDate.minuteVals"/>
64         </html:select>
65       </minute>
66       <logic:notEqual name="peForm" property="hour24" value="true" >
67         <ampm>
68           <html:select property="eventStartDate.ampm">
69             <html:options property="eventStartDate.ampmLabels"/>
70           </html:select>
71         </ampm>
72       </logic:notEqual>
73     </start>
74     <end>
75       <type><bean:write name="peForm" property="eventEndType"/></type>
76       <dateTime>
77         <month>
78           <html:select property="eventEndDate.month">
79               <html:options labelProperty="eventEndDate.monthLabels"
80                             property="eventEndDate.monthVals"/>
81           </html:select>
82         </month>
83         <day>
84           <html:select property="eventEndDate.day">
85             <html:options labelProperty="eventEndDate.dayLabels"
86                           property="eventEndDate.dayVals"/>
87           </html:select>
88         </day>
89         <year>
90           <html:select property="eventEndDate.year">
91             <html:options property="yearVals"/>
92           </html:select>
93         </year>
94         <hour>
95           <html:select property="eventEndDate.hour">
96             <html:options labelProperty="eventEndDate.hourLabels"
97                           property="eventEndDate.hourVals"/>
98           </html:select>
99         </hour>
100         <minute>
101           <html:select property="eventEndDate.minute">
102             <html:options labelProperty="eventEndDate.minuteLabels"
103                           property="eventEndDate.minuteVals"/>
104           </html:select>
105         </minute>
106         <ampm>
107           <logic:notEqual name="peForm" property="hour24" value="true" >
108             <html:select property="eventEndDate.ampm">
109               <html:options property="eventEndDate.ampmLabels"/>
110             </html:select>
111           </logic:notEqual>
112         </ampm>
113       </dateTime>
114       <duration>
115         <%--
116         <days><input type="text" name="eventDuration.daysStr" size="2" value="0" onChange="window.document.peForm.durationType[0].checked = true;"/></days>
117         <hours><input type="text" name="eventDuration.hoursStr" size="2" value="1" onChange="window.document.peForm.durationType[0].checked = true;"/></hours>
118         <minutes><input type="text" name="eventDuration.minutesStr" size="2" value="0" onChange="window.document.peForm.durationType[0].checked = true;"/></minutes>
119         <weeks><input type="text" name="eventDuration.weeksStr" size="2" value="0" onChange="window.document.peForm.durationType[1].checked = true;"/></weeks>
120         --%>
121         <days><html:text property="eventDuration.daysStr" size="2" /></days>
122         <hours><html:text property="eventDuration.hoursStr" size="2" /></hours>
123         <minutes><html:text property="eventDuration.minutesStr" size="2" /></minutes>
124         <weeks><html:text property="eventDuration.weeksStr" size="2" /></weeks>
125       </duration>
126     </end>
127
128     <category>
129       <logic:present name="peForm" property="preferredCategories">
130         <preferred>
131           <html:select property="prefCategoryId">
132             <html:optionsCollection name="peForm" property="preferredCategories"
133                                       label="word" value="id" />
134           </html:select>
135         </preferred>
136       </logic:present>
137       <all>
138         <html:select property="categoryId">
139           <html:optionsCollection name="peForm" property="publicCategories"
140                                           label="word" value="id" />
141         </html:select>
142       </all>
143     </category>
144
145     <desc><html:textarea property="event.description" rows="8" cols="55" styleId="iDesc" styleClass="edit"></html:textarea></desc>
146     <descLength><bean:write name="peForm" property="maxDescriptionLength" /></descLength>
147     <status><bean:write name="peForm" property="event.status"/></status>
148     <cost><html:text property="event.cost" size="30" styleId="iCost" styleClass="edit"/></cost>
149     <link><html:text property="event.link" size="30" styleId="iLink" styleClass="edit"/></link>
150
151     <location>
152       <logic:present name="peForm" property="preferredLocations">
153         <preferred>
154           <html:select property="prefLocationId">
155             <html:optionsCollection property="preferredLocations"
156                                     label="address"
157                                     value="id"/>
158           </html:select>
159         </preferred>
160       </logic:present>
161       <all>
162         <html:select property="locationId">
163           <html:optionsCollection property="publicLocations"
164                                     label="address"
165                                     value="id"/>
166           </html:select>
167       </all>
168       <logic:equal name="peForm" property="autoCreateLocations"
169                  value="true">
170         <address>
171           <html:text size="30" value="" property="location.address" styleId="iLocation" styleClass="edit"/>
172         </address>
173         <link>
174           <html:text property="location.link" size="30" styleId="iLocLink" styleClass="edit"/>
175         </link>
176       </logic:equal>
177     </location>
178
179     <sponsor>
180       <logic:present name="peForm" property="preferredSponsors">
181         <preferred>
182           <html:select property="prefSponsorId">
183             <html:optionsCollection property="preferredSponsors"
184                                     label="name"
185                                     value="id"/>
186           </html:select>
187         </preferred>
188       </logic:present>
189       <all>
190         <html:select property="sponsorId">
191           <html:optionsCollection property="publicSponsors"
192                                     label="name"
193                                     value="id"/>
194         </html:select>
195       </all>
196       <logic:equal name="peForm" property="autoCreateSponsors"
197                  value="true">
198         <%@include file="/docs/sponsor/modSponsorCommon.jsp"%>
199       </logic:equal>
200     </sponsor>
201
202     <!-- these are the values that may be submitted to the update action -->
203     <submitButtons>
204       <button type="add">addEvent</button>
205       <button type="update">updateEvent</button>
206       <button type="cancel">cancelled</button>
207       <button type="copy">copy</button>
208       <button type="delete">delete</button>
209     </submitButtons>
210   </genurl:form>
211 </formElements>
212
213 <%@include file="/docs/footer.jsp"%>
214
Note: See TracBrowser for help on using the browser.