root/trunk/deployment/webuser/webapp/resources/demoskins/themes/bedeworkTheme/addRef.xsl

Revision 2890 (checked in by johnsa, 3 years ago)

user client: start of breaking user client into smaller files

Line 
1 <!--
2     Licensed to Jasig under one or more contributor license
3     agreements. See the NOTICE file distributed with this work
4     for additional information regarding copyright ownership.
5     Jasig licenses this file to you under the Apache License,
6     Version 2.0 (the "License"); you may not use this file
7     except in compliance with the License. You may obtain a
8     copy of the License at:
9    
10     http://www.apache.org/licenses/LICENSE-2.0
11    
12     Unless required by applicable law or agreed to in writing,
13     software distributed under the License is distributed on
14     an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15     KIND, either express or implied. See the License for the
16     specific language governing permissions and limitations
17     under the License.
18 -->
19 <xsl:stylesheet
20   version="1.0"
21   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
22   xmlns="http://www.w3.org/1999/xhtml">
23  
24   <xsl:template match="event" mode="addEventRef">
25   <!-- The name "eventForm" is referenced by several javascript functions. Do not
26     change it without modifying bedework.js -->
27     <form name="eventForm" method="post" action="{$event-addEventRefComplete}" id="standardForm"  enctype="multipart/form-data">
28       <xsl:variable name="calPath" select="calendar/path"/>
29       <xsl:variable name="guid"><xsl:call-template name="url-encode"><xsl:with-param name="str" select="guid"/></xsl:call-template></xsl:variable>
30       <xsl:variable name="recurrenceId" select="recurrenceId"/>
31       <input type="hidden" name="calPath" value="{$calPath}"/>
32       <input type="hidden" name="guid" value="{$guid}"/>
33       <input type="hidden" name="recurrenceId" value="{$recurrenceId}"/>
34       <!-- newCalPath is the path to the calendar in which the reference
35            should be placed.  If no value, then default calendar. -->
36       <input type="hidden" name="newCalPath" value="" id="bwNewCalPathField"/>
37
38       <h2><xsl:copy-of select="$bwStr-AEEF-AddEventReference"/></h2>
39       <table class="common" cellspacing="0">
40         <tr>
41           <td class="fieldname">
42             <xsl:copy-of select="$bwStr-AEEF-EventColon"/>
43           </td>
44           <td>
45             <xsl:choose>
46               <xsl:when test="summary = ''">
47                 <em><xsl:copy-of select="$bwStr-AEEF-NoTitle"/></em><xsl:text> </xsl:text>
48               </xsl:when>
49               <xsl:otherwise>
50                 <xsl:value-of select="summary"/>
51               </xsl:otherwise>
52             </xsl:choose>
53           </td>
54         </tr>
55         <tr>
56           <td class="fieldname">
57             <xsl:copy-of select="$bwStr-AEEF-IntoCalendar"/>
58           </td>
59           <td align="left">
60             <span id="bwEventCalDisplay">
61               <em><xsl:copy-of select="$bwStr-AEEF-DefaultCalendar"/></em>
62             </span>
63             <xsl:call-template name="selectCalForEvent"/>
64           </td>
65         </tr>
66         <tr>
67           <td class="fieldname">
68             <xsl:copy-of select="$bwStr-AEEF-AffectsFreeBusy"/>
69           </td>
70           <td align="left">
71             <input type="radio" value="OPAQUE" name="transparency"/><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-AEEF-Yes"/><xsl:text> </xsl:text><span class="note"><xsl:copy-of select="$bwStr-AEEF-Opaque"/></span><br/>
72             <input type="radio" value="TRANSPARENT" name="transparency" checked="checked"/><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-AEEF-No"/><xsl:text> </xsl:text><span class="note"><xsl:copy-of select="$bwStr-AEEF-Transparent"/></span>
73           </td>
74         </tr>
75       </table>
76       <table border="0" id="submitTable">
77         <tr>
78           <td>
79             <input name="submit" type="submit" value="{$bwStr-AEEF-Continue}"/>
80             <input name="cancelled" type="submit" value="{$bwStr-AEEF-Cancel}"/>
81           </td>
82         </tr>
83       </table>
84     </form>
85   </xsl:template>
86  
87   <xsl:template match="event" mode="addEventRef">
88   <!-- The name "eventForm" is referenced by several javascript functions. Do not
89     change it without modifying bedework.js -->
90     <form name="eventForm" method="post" action="{$event-addEventRefComplete}" id="standardForm"  enctype="multipart/form-data">
91       <xsl:variable name="calPath" select="calendar/path"/>
92       <xsl:variable name="guid"><xsl:call-template name="url-encode"><xsl:with-param name="str" select="guid"/></xsl:call-template></xsl:variable>
93       <xsl:variable name="recurrenceId" select="recurrenceId"/>
94       <input type="hidden" name="calPath" value="{$calPath}"/>
95       <input type="hidden" name="guid" value="{$guid}"/>
96       <input type="hidden" name="recurrenceId" value="{$recurrenceId}"/>
97       <!-- newCalPath is the path to the calendar in which the reference
98            should be placed.  If no value, then default calendar. -->
99       <input type="hidden" name="newCalPath" value="" id="bwNewCalPathField"/>
100
101       <h2><xsl:copy-of select="$bwStr-AERf-AddEventReference"/></h2>
102       <table class="common" cellspacing="0">
103         <tr>
104           <td class="fieldname">
105             <xsl:copy-of select="$bwStr-AERf-Event"/>
106           </td>
107           <td>
108             <xsl:choose>
109               <xsl:when test="summary = ''">
110                 <em><xsl:copy-of select="$bwStr-AERf-NoTitle"/></em><xsl:text> </xsl:text>
111               </xsl:when>
112               <xsl:otherwise>
113                 <xsl:value-of select="summary"/>
114               </xsl:otherwise>
115             </xsl:choose>
116           </td>
117         </tr>
118         <tr>
119           <td class="fieldname">
120             <xsl:copy-of select="$bwStr-AERf-IntoCalendar"/>
121           </td>
122           <td align="left">
123             <span id="bwEventCalDisplay">
124               <em><xsl:copy-of select="$bwStr-AERf-DefaultCalendar"/></em>
125             </span>
126             <xsl:call-template name="selectCalForEvent"/>
127           </td>
128         </tr>
129         <tr>
130           <td class="fieldname">
131             <xsl:copy-of select="$bwStr-AERf-AffectsFreeBusy"/>
132           </td>
133           <td align="left">
134             <input type="radio" value="OPAQUE" name="transparency"/><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-AERf-Yes"/><xsl:text> </xsl:text><span class="note"><xsl:copy-of select="$bwStr-AERf-Opaque"/></span><br/>
135             <input type="radio" value="TRANSPARENT" name="transparency" checked="checked"/><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-AERf-No"/><xsl:text> </xsl:text><span class="note"><xsl:copy-of select="$bwStr-AERf-Transparent"/></span>
136           </td>
137         </tr>
138       </table>
139       <table border="0" id="submitTable">
140         <tr>
141           <td>
142             <input name="submit" type="submit" value="{$bwStr-AERf-Continue}"/>
143             <input name="cancelled" type="submit" value="{$bwStr-AERf-Cancel}"/>
144           </td>
145         </tr>
146       </table>
147     </form>
148   </xsl:template>
149  
150  
151 </xsl:stylesheet>
Note: See TracBrowser for help on using the browser.