root/trunk/deployment/webadmin/webapp/resources/default/default/localeSettings.xsl

Revision 3587 (checked in by johnsa, 10 months ago)

admin client: add some registration fields client-side validation
admin client: disable the ability to turn registration off once enabled

  • Property svn:mime-type set to text/plain
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   <!-- LOCALE SETTINGS -->
25   <!-- A place for javascript strings and locale specific javascript overrides -->
26
27   <!-- Set up the datepicker defaults -->
28   <!-- For futher configuration, see http://docs.jquery.com/UI/Datepicker -->
29   <xsl:template name="jqueryDatepickerDefaults">
30    
31     <!-- pull in the localization strings and defaults. -->
32     <!-- 
33       U.S. English is the default, so there is no string file for U.S. English.
34       This code is here for consistency and clarity across localeSettings files.
35     <script type="text/javascript" src="/bedework-common/javascript/jquery/lang-datepicker/jquery.ui.datepicker-en.js">&#160;</script>
36     -->
37    
38     <!-- Bedework datepicker defaults.  You can include further overrides to regionalization here. -->
39     <script type="text/javascript">
40       <xsl:comment>
41       $.datepicker.setDefaults({
42         constrainInput: true,
43         dateFormat: "yy-mm-dd",
44         showOn: "both",
45         buttonImage: "<xsl:value-of select='$resourcesRoot'/>/resources/calIcon.gif",
46         buttonImageOnly: true,
47         gotoCurrent: true,
48         duration: ""
49       });
50       </xsl:comment>
51     </script>
52    
53   </xsl:template>
54    
55   <!-- Declare the JavaScript event strings. -->
56   <!-- These are for display and can be translated. -->
57   <xsl:template name="bedeworkEventJsStrings">
58     <script type="text/javascript">
59       // recurrence strings
60       var bwRecurChangeWarning = "WARNING: changing your recurrence rules\nwill destroy all existing recurrence overrides\nand exceptions when you save the event.\n\nContinue?";
61       // registration strings
62       var maxTicketsWarning = "Event Registration Settings:\nYou must set the maximum number of tickets allowed for this event.";
63       var maxTicketsPerUserWarning = "Event Registration Settings:\nYou must set the maximum number of tickets each user may aquire.";
64     </script>
65   </xsl:template>
66  
67   <!-- Declare the access control strings. -->
68   <xsl:template name="bedeworkAccessStrings">
69     <!-- The XSL access strings are found in resources/xsl/lang and are referenced in default/globals.xsl-->
70   </xsl:template>
71  
72 </xsl:stylesheet>
Note: See TracBrowser for help on using the browser.