Changeset 554
- Timestamp:
- 06/08/06 15:12:03
- Files:
-
- trunk/calendar3/deployment/webuser/webapp/resources/demoskins/default/default/default.css (modified) (2 diffs)
- trunk/calendar3/deployment/webuser/webapp/resources/demoskins/default/default/default.xsl (modified) (10 diffs)
- trunk/calendar3/deployment/webuser/webapp/resources/demoskins/default/default/subColors.css (added)
- trunk/calendar3/deployment/webuser/webapp/resources/demoskins/default/default/subColors.xml (added)
- trunk/calendar3/deployment/webuser/webapp/resources/demoskins/resources/addEvent-forGrid-icon.gif (modified) (previous)
- trunk/calendar3/skins/webpublic/rensselaer/default/default/common.css (added)
- trunk/calendar3/webcommon/src/org/bedework/webcommon/subs/InitSubscribeAction.java (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/calendar3/deployment/webuser/webapp/resources/demoskins/default/default/default.css
r549 r554 657 657 color: black; 658 658 } 659 #monthCalendarTable a.holiday:link, 660 #monthCalendarTable a.holiday:visited, 661 #monthCalendarTable a.holiday:active { 662 display: block; 663 padding: 0.1em 0.2em 0.1em 0.2em; 664 text-decoration: none; 665 background-color: #fff; 666 color: black; 667 /*border-top: 1px solid black; 668 border-bottom: 1px solid black;*/ 669 } 670 #monthCalendarTable a.eventLinkA:hover, 671 #monthCalendarTable a.eventLinkB:hover, 672 #monthCalendarTable a.eventCancelled:hover, 673 #monthCalendarTable a.eventTentative:hover, 674 #monthCalendarTable a.holiday:hover { 675 display: block; 676 padding: 0.1em 0.2em 0.1em 0.2em; 677 text-decoration: none; 678 color: black; 679 background-color: #ffa; 659 #monthCalendarTable a:hover { 660 color: black; 661 background-color: #ffa !important; /* must be important to override subscription colors */ 680 662 } 681 663 #monthCalendarTable a.dayLink { … … 687 669 #monthCalendarTable a:hover.dayLink { 688 670 text-decoration: none; 689 color: #eee ;690 background-color: black ;671 color: #eee !important; /* must be important to override a:hover selector above */ 672 background-color: black !important; /* must be important to override a:hover selector above */ 691 673 } 692 674 #monthCalendarTable a:hover { trunk/calendar3/deployment/webuser/webapp/resources/demoskins/default/default/default.xsl
r549 r554 237 237 <meta name="robots" content="noindex,nofollow"/> 238 238 <link rel="stylesheet" href="{$resourcesRoot}/default/default/default.css"/> 239 <link rel="stylesheet" href="{$resourcesRoot}/default/default/subColors.css"/> 239 240 <link rel="stylesheet" type="text/css" media="print" href="{$resourcesRoot}/default/default/print.css" /> 240 241 <link rel="icon" type="image/ico" href="{$resourcesRoot}/resources/bedework.ico" /> … … 882 883 <xsl:variable name="dayDate" select="date"/> 883 884 <a href="{$initEvent}?startdate={$dayDate}" class="gridAdd" title="add event"> 884 <img src="{$resourcesRoot}/resources/addEvent-forGrid-icon.gif" width=" 10" height="10" border="0" alt="add event"/>885 <img src="{$resourcesRoot}/resources/addEvent-forGrid-icon.gif" width="9" height="10" border="0" alt="add event"/> 885 886 </a> 886 887 <a href="{$setViewPeriod}?viewType=dayView&date={$dayDate}" class="dayLink" title="go to day"> … … 949 950 <xsl:when test="status='CANCELLED'">eventCancelled</xsl:when> 950 951 <xsl:when test="status='TENTATIVE'">eventTentative</xsl:when> 951 <xsl:when test="calendar/name='Holidays'">holiday</xsl:when> 952 <!-- Alternating colors for all standard events --> 952 <!-- Otherwise: Alternating colors for all standard events --> 953 953 <xsl:when test="position() mod 2 = 1">eventLinkA</xsl:when> 954 954 <xsl:otherwise>eventLinkB</xsl:otherwise> 955 955 </xsl:choose> 956 956 </xsl:variable> 957 <!-- User defined subscription styles. 958 These are set in the add/modify subscription forms which 959 rely (in this stylesheet) on subColors.css; if present, these 960 override the background-color set by eventClass. User styles should 961 not be used for cancelled events (tentative is ok). --> 962 <xsl:variable name="subColor"> 963 <xsl:choose> 964 <xsl:when test="status != 'CANCELLED' and 965 subscription/style != '' and 966 subscription/style != 'default'"><xsl:value-of select="subscription/style"/></xsl:when> 967 <xsl:otherwise></xsl:otherwise> 968 </xsl:choose> 969 </xsl:variable> 957 970 <li> 958 <a href="{$eventView}?subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" class="{$eventClass} ">971 <a href="{$eventView}?subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" class="{$eventClass} {$subColor}"> 959 972 <xsl:if test="status='CANCELLED'">CANCELLED: </xsl:if> 960 973 <xsl:value-of select="summary"/> … … 2996 3009 <td class="fieldname">Style:</td> 2997 3010 <td> 2998 <input type="text" value="" name="style" size="60"/> 3011 <select name="style"> 3012 <option value="default">default</option> 3013 <xsl:for-each select="document('subColors.xml')/subscriptionColors/color"> 3014 <xsl:variable name="subColor" select="."/> 3015 <option value="{$subColor}" class="{$subColor}"> 3016 <xsl:value-of select="."/> 3017 </option> 3018 </xsl:for-each> 3019 </select> 2999 3020 </td> 3000 3021 </tr> … … 3029 3050 <td> 3030 3051 <xsl:variable name="subName" select="name"/> 3031 <input type="text" value="{$subName}" name=" subscription.name" size="60"/>3052 <input type="text" value="{$subName}" name="name" size="60"/> 3032 3053 </td> 3033 3054 </tr> … … 3036 3057 <td class="fieldname">Uri:</td> 3037 3058 <td> 3038 <xsl:variable name=" subUri" select="uri"/>3039 <input type="text" value="{$ subUri}" name="subscription.uri" size="60"/>3059 <xsl:variable name="calPath" select="uri"/> 3060 <input type="text" value="{$calPath}" name="calPath" size="60"/> 3040 3061 </td> 3041 3062 </tr> … … 3051 3072 <td class="fieldname">Affects Free/Busy:</td> 3052 3073 <td> 3053 <input type="radio" value="true" name="subscription.affectsFreeBusy" checked="checked"/> yes3054 <input type="radio" value="false" name="subscription.affectsFreeBusy" /> no3074 <input type="radio" value="true" name="subscription.affectsFreeBusy"/> yes 3075 <input type="radio" value="false" name="subscription.affectsFreeBusy" checked="checked"/> no 3055 3076 </td> 3056 3077 </tr> … … 3058 3079 <td class="fieldname">Style:</td> 3059 3080 <td> 3060 <xsl:variable name="subStyle" select="style"/> 3061 <input type="text" value="{$subStyle}" name="subscription.style" size="60"/> 3081 <select name="subscription.style"> 3082 <option value="default">default</option> 3083 <xsl:for-each select="document('subColors.xml')/subscriptionColors/color"> 3084 <xsl:variable name="subColor" select="."/> 3085 <option value="{$subColor}" class="{$subColor}"> 3086 <xsl:value-of select="."/> 3087 </option> 3088 </xsl:for-each> 3089 </select> 3062 3090 </td> 3063 3091 </tr> … … 3065 3093 <td class="fieldname">Unremovable:</td> 3066 3094 <td> 3067 <input type="radio" value="true" name=" unremoveable" size="60"/> true3068 <input type="radio" value="false" name=" unremoveable" size="60" checked="checked"/> false3095 <input type="radio" value="true" name="subscription.unremoveable" size="60"/> true 3096 <input type="radio" value="false" name="subscription.unremoveable" size="60" checked="checked"/> false 3069 3097 </td> 3070 3098 </tr>--> … … 3147 3175 <td> 3148 3176 <xsl:variable name="subStyle" select="style"/> 3149 <input type="text" value="{$subStyle}" name="subscription.style" size="60"/> 3177 <select name="subscription.style"> 3178 <option value="default">default</option> 3179 <xsl:for-each select="document('subColors.xml')/subscriptionColors/color"> 3180 <xsl:variable name="subColor" select="."/> 3181 <xsl:choose> 3182 <xsl:when test="$subStyle = $subColor"> 3183 <option value="{$subColor}" class="{$subColor}" selected="selected"> 3184 <xsl:value-of select="."/> 3185 </option> 3186 </xsl:when> 3187 <xsl:otherwise> 3188 <option value="{$subColor}" class="{$subColor}"> 3189 <xsl:value-of select="."/> 3190 </option> 3191 </xsl:otherwise> 3192 </xsl:choose> 3193 </xsl:for-each> 3194 </select> 3150 3195 </td> 3151 3196 </tr> trunk/calendar3/webcommon/src/org/bedework/webcommon/subs/InitSubscribeAction.java
r553 r554 155 155 } 156 156 157 String style = getReqPar(request, "style");158 if (style != null) {159 sub.setStyle(style);160 }161 162 157 form.setSubscription(sub); 163 158
