Changeset 332

Show
Ignore:
Timestamp:
04/05/06 13:36:23
Author:
johnsa
Message:

stylistic updates to personal web client

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/calendar3/deployment/webuser/webapp/resources/demoskins/default/default/default.css

    r329 r332  
    99h2 { 
    1010  margin: 0em; 
    11   padding: 1em 0.2em 0em 0.2em; 
    12   font-size: 1.4em; 
     11  padding: 0.2em 0.2em 0.2em 0.5em; 
     12  font-size: 1.3em; 
     13  background-color: #ccc; 
     14  color: black; 
     15
     16h2 a:link, 
     17h2 a:active, 
     18h2 a:visited, 
     19h2 a:hover { 
     20  color: black; 
     21  background-color: inherit; 
     22  text-decoration: none; 
    1323} 
    1424h3 { 
     
    6272  text-decoration: none; 
    6373} 
    64 #titleBar { 
     74/*#titleBar { 
    6575  display: none; 
    66 } 
     76}*/ 
    6777#curDateRange { 
    6878  background-color: #663; 
     
    339349  padding: 0; 
    340350} 
     351 
     352/* table below is used for almost all forms  */ 
    341353#commonTable { 
    342354  width: 100%; 
     
    345357  padding: 0px; 
    346358} 
    347 th#commonHeader, 
    348 #commonTable th#commonHeader { 
    349   /*background-color: black; 
    350   color: #eee;*/ 
    351   background-color: #ccc; 
    352   color: #333; 
     359#commonTable th.commonHeader { 
     360  background-color: #666; 
     361  color: #eee; 
    353362  padding: 0.2em 0.5em; 
    354363  text-align: left; 
     364  font-weight: normal; 
     365} 
     366#commonTable th.commonHeader a:link, 
     367#commonTable th.commonHeader a:active, 
     368#commonTable th.commonHeader a:visited { 
     369  background-color: inherit; 
     370  color: #eee; 
     371  padding: 0.2em; 
     372  text-align: left; 
     373} 
     374#commonTable th.commonHeader a:hover { 
     375  background-color: inherit; 
     376  color: #ff9; 
     377  padding: 0.2em; 
     378  text-align: left; 
    355379} 
    356380#commonTable td.fieldval { 
     
    360384} 
    361385#commonTable td.fieldname { 
     386  width: 80px; 
    362387  margin: 0em; 
    363388  vertical-align: top; 
     
    367392  white-space: nowrap; 
    368393} 
    369 #commonTable th.fieldval { 
    370   text-align: left; 
    371   padding: 1em 0.5em 0.5em 1em; 
    372   background-color: #fff; 
    373   color: black; 
    374   width: 100%; 
    375 
    376 #commonTable th, 
    377 #commonTable th.fieldname { 
     394#commonTable th { 
    378395  text-align: left; 
    379396  vertical-align: top; 
     
    388405  padding: 0.5em 1em 0.2em 0; 
    389406  font-size: 0.7em; 
     407  background-color: #fff; 
     408  color: black; 
    390409} 
    391410#commonTable td.eventLinks { 
  • trunk/calendar3/deployment/webuser/webapp/resources/demoskins/default/default/default.xsl

    r329 r332  
    192192 
    193193  <xsl:template name="headSection"> 
    194     <title>Bedework: Personal Calendar Client</title> 
    195       <meta name="robots" content="noindex,nofollow"/> 
    196       <link rel="stylesheet" href="{$resourcesRoot}/default/default/default.css"/> 
    197       <link rel="stylesheet" type="text/css" media="print" href="{$resourcesRoot}/default/default/print.css" /> 
    198       <link rel="icon" type="image/ico" href="{$resourcesRoot}/resources/bedework.ico" /> 
    199       <xsl:if test="/bedework/page='addEvent' or /bedework/page='editEvent'"> 
    200         <script type="text/javascript" src="{$resourcesRoot}/resources/includes.js"></script> 
    201         <script type="text/javascript" src="{$resourcesRoot}/resources/bwClock.js"></script> 
    202         <link rel="stylesheet" href="{$resourcesRoot}/resources/bwClock.css"/> 
    203         <script type="text/javascript" src="{$resourcesRoot}/resources/dynCalendarWidget.js"></script> 
    204         <link rel="stylesheet" href="{$resourcesRoot}/resources/dynCalendarWidget.css"/> 
    205         <script type="text/javascript" src="{$resourcesRoot}/resources/browserSniffer.js"></script> 
    206       </xsl:if> 
     194    <title>Bedework: Personal Calendar Client</title> 
     195    <meta name="robots" content="noindex,nofollow"/> 
     196    <link rel="stylesheet" href="{$resourcesRoot}/default/default/default.css"/> 
     197    <link rel="stylesheet" type="text/css" media="print" href="{$resourcesRoot}/default/default/print.css" /> 
     198    <link rel="icon" type="image/ico" href="{$resourcesRoot}/resources/bedework.ico" /> 
     199    <xsl:if test="/bedework/page='addEvent' or /bedework/page='editEvent'"> 
     200      <script type="text/javascript" src="{$resourcesRoot}/resources/includes.js"></script> 
     201      <script type="text/javascript" src="{$resourcesRoot}/resources/bwClock.js"></script> 
     202      <link rel="stylesheet" href="{$resourcesRoot}/resources/bwClock.css"/> 
     203      <script type="text/javascript" src="{$resourcesRoot}/resources/dynCalendarWidget.js"></script> 
     204      <link rel="stylesheet" href="{$resourcesRoot}/resources/dynCalendarWidget.css"/> 
     205      <script type="text/javascript" src="{$resourcesRoot}/resources/browserSniffer.js"></script> 
     206    </xsl:if> 
    207207  </xsl:template> 
    208208 
     
    210210 
    211211  <xsl:template name="headBar"> 
    212     <h1 id="titleBar"> 
    213       BEDEWORK PERSONAL CLIENT 
    214     </h1> 
    215212    <table width="100%" border="0" cellpadding="0" cellspacing="0" id="logoTable"> 
    216213      <tr> 
     
    1002999    <xsl:variable name="guid" select="guid"/> 
    10031000    <xsl:variable name="recurrenceId" select="recurrenceId"/> 
     1001    <h2> 
     1002      <xsl:choose> 
     1003        <xsl:when test="link != ''"> 
     1004          <xsl:variable name="link" select="link"/> 
     1005          <a href="{$link}"> 
     1006            <xsl:value-of select="summary"/> 
     1007          </a> 
     1008        </xsl:when> 
     1009        <xsl:otherwise> 
     1010          <xsl:value-of select="summary"/> 
     1011        </xsl:otherwise> 
     1012      </xsl:choose> 
     1013    </h2> 
    10041014    <table id="commonTable" cellspacing="0"> 
    10051015      <tr> 
    1006         <th colspan="3" id="commonHeader"> 
     1016        <th colspan="3" class="commonHeader"> 
    10071017          <div id="eventActions"> 
    10081018            <xsl:choose> 
     
    10461056          </div> 
    10471057          <xsl:choose> 
    1048             <xsl:when test="kind='0'"> 
    1049               Private Event 
    1050             </xsl:when> 
    1051             <xsl:when test="kind='1'"> 
    1052               Public Event 
     1058            <xsl:when test="calendar/owner = /bedework/user"> 
     1059              Personal Event 
    10531060            </xsl:when> 
    10541061            <xsl:otherwise> 
    1055               Public Event from Subscription 
     1062              Public Event 
    10561063            </xsl:otherwise> 
    10571064          </xsl:choose> 
    10581065        </th> 
    10591066      </tr> 
    1060       <tr> 
    1061         <th class="fieldname">Event:</th> 
    1062         <th class="fieldval"> 
    1063           <xsl:choose> 
    1064             <xsl:when test="link != ''"> 
    1065               <xsl:variable name="link" select="link"/> 
    1066               <a href="{$link}"> 
     1067      <!--<tr> 
     1068        <td class="fieldname">Title:</td> 
     1069        <td class="fieldval"> 
     1070          <strong> 
     1071            <xsl:choose> 
     1072              <xsl:when test="link != ''"> 
     1073                <xsl:variable name="link" select="link"/> 
     1074                <a href="{$link}"> 
     1075                  <xsl:value-of select="summary"/> 
     1076                </a> 
     1077              </xsl:when> 
     1078              <xsl:otherwise> 
    10671079                <xsl:value-of select="summary"/> 
    1068               </a> 
    1069             </xsl:when> 
    1070             <xsl:otherwise> 
    1071               <xsl:value-of select="summary"/> 
    1072             </xsl:otherwise> 
    1073           </xsl:choose> 
    1074         </th> 
    1075         <th class="icon" rowspan="2"> 
    1076           <xsl:variable name="icalName" select="concat($guid,'.ics')"/> 
    1077           <a href="{$eventView}?subid={$subscriptionId}&amp;&amp;nocache=no&amp;skinName=ical&amp;contentType=text/calendar&amp;contentName={$icalName}" title="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars"> 
    1078             <img src="{$resourcesRoot}/resources/std-ical-icon.gif" width="20" height="26" border="0" align="left" alt="Download this event"/> 
    1079           </a><!-- <br /> 
    1080           [<a href="">help</a>] --> 
    1081         </th> 
    1082       </tr> 
     1080              </xsl:otherwise> 
     1081            </xsl:choose> 
     1082          </strong> 
     1083        </td> 
     1084      </tr>--> 
    10831085      <tr> 
    10841086        <td class="fieldname">When:</td> 
     
    10911093          <xsl:if test="end/time != ''"><span class="time"><xsl:value-of select="end/time"/></span></xsl:if> 
    10921094        </td> 
     1095        <th class="icon" rowspan="2"> 
     1096          <xsl:variable name="icalName" select="concat($guid,'.ics')"/> 
     1097          <a href="{$eventView}?subid={$subscriptionId}&amp;&amp;nocache=no&amp;skinName=ical&amp;contentType=text/calendar&amp;contentName={$icalName}" title="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars"> 
     1098            <img src="{$resourcesRoot}/resources/std-ical-icon.gif" width="20" height="26" border="0" align="left" alt="Download this event"/> 
     1099          </a><!-- <br /> 
     1100          [<a href="">help</a>] --> 
     1101        </th> 
    10931102      </tr> 
    10941103      <tr> 
     
    11751184      <input type="hidden" name="confirmationid" value="{$confId}"/> 
    11761185      <input type="hidden" name="endType" value="date"/> 
     1186      <h2>Add Event</h2> 
    11771187      <table id="commonTable" cellspacing="0"> 
    1178         <tr> 
    1179           <th colspan="2" id="commonHeader">Add Event</th> 
    1180         </tr> 
    11811188        <tr> 
    11821189          <td class="fieldname"> 
     
    15131520      <input type="hidden" name="confirmationid" value="{$confId}"/> 
    15141521      <input type="hidden" name="endType" value="date"/> 
     1522      <h2>Edit Event</h2> 
    15151523      <table id="commonTable" cellspacing="0"> 
    15161524        <tr> 
    1517           <th colspan="2" id="commonHeader"> 
     1525          <th colspan="2" class="commonHeader"> 
    15181526            <div id="eventActions"> 
    15191527              <xsl:variable name="subscriptionId" select="subscriptionId"/> 
     
    15281536              </a> 
    15291537            </div> 
    1530             Edit Event 
     1538            Personal Event 
    15311539          </th> 
    15321540        </tr> 
     
    17911799  <!--+++++++++++++++ Subscriptions ++++++++++++++++++++--> 
    17921800  <xsl:template match="subscriptions"> 
     1801    <h2>Manage Subscriptions</h2> 
    17931802    <table id="subsTable"> 
    17941803      <tr> 
     
    18451854 
    18461855  <xsl:template match="subscription" mode="addSubscription"> 
    1847     <h2>Add New Subscription</h2
     1856    <h3>Add New Subscription</h3
    18481857    <p class="note">*the subsciption name must be unique</p> 
    18491858    <form name="subscribeForm" action="{$subscriptions-subscribe}" method="post"> 
    1850       <table class="commonTable"> 
    1851         <tr> 
    1852           <th>Name*:</th
     1859      <table id="commonTable" cellspacing="0"> 
     1860        <tr> 
     1861          <td class="fieldname">Name:</td
    18531862          <td> 
    18541863            <xsl:variable name="subName" select="name"/> 
     
    18581867        <xsl:if test="internal='false'"> 
    18591868          <tr> 
    1860             <th>Uri:</th
     1869            <td class="fieldname">Uri:</td
    18611870            <td> 
    18621871              <xsl:variable name="subUri" select="uri"/> 
     
    18661875        </xsl:if> 
    18671876        <tr> 
    1868           <th>Display:</th
     1877          <td class="fieldname">Display:</td
    18691878          <td> 
    18701879            <input type="radio" value="true" name="subscription.display"/> yes 
     
    18731882        </tr> 
    18741883        <tr> 
    1875           <th>Style:</th
     1884          <td class="fieldname">Style:</td
    18761885          <td> 
    18771886            <xsl:variable name="subStyle" select="style"/> 
     
    18801889        </tr> 
    18811890        <!--<tr> 
    1882           <th>Unremovable:</th
     1891          <td class="fieldname">Unremovable:</td
    18831892          <td> 
    18841893            <input type="radio" value="true" name="unremoveable" size="60"/> true 
     
    19001909 
    19011910  <xsl:template match="subscription" mode="modSubscription"> 
    1902     <h2>Modify Subscription</h2
     1911    <h3>Modify Subscription</h3
    19031912    <form name="subscribeForm" action="{$subscriptions-subscribe}" method="post"> 
    1904       <table class="commonTable"> 
    1905         <tr> 
    1906           <th>Name*:</th
     1913      <table id="commonTable" cellspacing="0"> 
     1914        <tr> 
     1915          <td class="fieldname">Name:</td
    19071916          <td> 
    19081917            <xsl:value-of select="name"/> 
     
    19141923          <xsl:when test="internal='false'"> 
    19151924            <tr> 
    1916               <th>Uri:</th
     1925              <td class="fieldname">Uri:</td
    19171926              <td> 
    19181927                <xsl:variable name="subUri" select="uri"/> 
     
    19231932          <xsl:otherwise> 
    19241933            <tr> 
    1925               <th>Uri:</th
     1934              <td class="fieldname">Uri:</td
    19261935              <td> 
    19271936                <xsl:value-of select="uri"/> 
     
    19311940        </xsl:choose> 
    19321941        <tr> 
    1933           <th>Display:</th
     1942          <td class="fieldname">Display:</td
    19341943          <td> 
    19351944            <xsl:choose> 
     
    19461955        </tr> 
    19471956        <tr> 
    1948           <th>Style:</th
     1957          <td class="fieldname">Style:</td
    19491958          <td> 
    19501959            <xsl:variable name="subStyle" select="style"/> 
     
    19531962        </tr> 
    19541963        <!--<tr> 
    1955           <th>Unremovable:</th
     1964          <td class="fieldname">Unremovable:</td
    19561965          <td> 
    19571966            <xsl:choose> 
     
    20422051      <table id="commonTable" cellspacing="0"> 
    20432052        <tr> 
    2044           <th colspan="2" id="commonHeader">Alarm options</th> 
     2053          <th colspan="2" class="commonHeader">Alarm options</th> 
    20452054        </tr> 
    20462055        <tr> 
     
    21132122  <xsl:template name="upload"> 
    21142123    <form method="post" action="{$upload}" id="standardForm"  enctype="multipart/form-data"> 
     2124      <h2>Upload iCAL File</h2> 
    21152125      <table id="commonTable" cellspacing="0"> 
    21162126        <tr> 
    2117           <tr> 
    2118             <th colspan="2" id="commonHeader">Upload iCAL File</th> 
    2119           </tr> 
    21202127          <td class="fieldname"> 
    21212128            Filename: 
     
    21422149      <table id="commonTable" cellspacing="0"> 
    21432150        <tr> 
    2144           <th colspan="2" id="commonHeader">Update email options</th> 
     2151          <th colspan="2" class="commonHeader">Update email options</th> 
    21452152        </tr> 
    21462153        <tr> 
     
    21762183    <form name="addLocationForm" method="post" action="{$addLocation}" id="standardForm"> 
    21772184      <input type="hidden" name="confirmationid" value="{$confId}"/> 
     2185      <h2>Manage Locations</h2> 
    21782186      <table id="commonTable" cellspacing="0"> 
    21792187        <tr> 
    2180           <th colspan="2" id="commonHeader">Manage Locations</th> 
    2181         </tr> 
    2182         <tr> 
    2183           <th colspan="2">Add Location</th> 
     2188          <th class="commonHeader" colspan="2">Add Location</th> 
    21842189        </tr> 
    21852190        <tr> 
     
    22152220        </tr> 
    22162221        <tr> 
    2217           <th colspan="2">Edit/Delete Locations</th> 
     2222          <th class="commonHeader" colspan="2">Edit/Delete Locations</th> 
    22182223        </tr> 
    22192224        <td colspan="2" class="plain"> 
     
    22372242      <input type="hidden" name="updateLocation" value="true"/> 
    22382243      <input type="hidden" name="confirmationid" value="{$confId}"/> 
     2244      <h2>Manage Locations</h2> 
    22392245      <table id="commonTable" cellspacing="0"> 
    22402246        <tr> 
    2241           <th colspan="2" id="commonHeader"> 
     2247          <th colspan="2" class="commonHeader"> 
    22422248            <xsl:variable name="locId" select="/bedework/locationform/form/id"/> 
    22432249            <div id="eventActions"> 
     
    23232329        <td class="leftCell"> 
    23242330          <a href="http://www.bedework.org/">Bedework Calendar</a> | 
     2331          <a href="?noxslt=yes">show XML</a> | 
    23252332          <a href="?refreshXslt=yes">refresh XSLT</a> 
    23262333        </td> 
  • trunk/calendar3/deployment/webuser/webapp/resources/demoskins/default/default/errors.xsl

    r329 r332  
    3939          <p>Cannot remove: the subscription is referenced by View "<em><xsl:value-of select="param"/></em>"</p> 
    4040      </xsl:when> 
     41      <xsl:when test="id='org.bedework.exception.duplicatesubscription'"> 
     42          <p>A subscription by that name already exists.</p> 
     43      </xsl:when> 
    4144      <xsl:otherwise> 
    4245        <p><xsl:value-of select="id"/> = <xsl:value-of select="param"/></p>