Changeset 4

Show
Ignore:
Timestamp:
01/20/06 16:56:12
Author:
johnsa
Message:

calendar admin client updates:
fixed up delete calendar
modify calendar upates
calendar jsps and xml updates

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/calendar3/deployment/webadmin/webapp/resources/en_US/default/default.xsl

    r3 r4  
    163163              <xsl:call-template name="deleteLocationConfirm"/> 
    164164            </xsl:when> 
    165             <xsl:when test="/bedeworkadmin/page='calendarList' or /bedeworkadmin/page='modCalendar'"> 
     165            <xsl:when test="/bedeworkadmin/page='calendarList' or /bedeworkadmin/page='modCalendar' or /bedeworkadmin/page='deleteCalendarConfirm'"> 
    166166              <xsl:apply-templates select="/bedeworkadmin/calendars"/> 
    167167            </xsl:when> 
     
    12291229              <xsl:call-template name="calendarList"/> 
    12301230            </xsl:when> 
     1231            <xsl:when test="/bedeworkadmin/page='deleteCalendarConfirm'"> 
     1232              <xsl:apply-templates select="/bedeworkadmin/currentCalendar" mode="deleteCalendarConfirm"/> 
     1233            </xsl:when> 
    12311234            <xsl:when test="/bedeworkadmin/creating='true'"> 
    12321235              <xsl:apply-templates select="/bedeworkadmin/currentCalendar" mode="addCalendar"/> 
     
    13151318        <tr> 
    13161319          <td> 
    1317             <input type="submit" name="addCalendar" value="Add Calendar" class="padRight"/> 
     1320            <input type="submit" name="addCalendar" value="Add Calendar/Folder" class="padRight"/> 
    13181321            <input type="submit" name="cancelled" value="Cancel" class="padRight"/> 
    13191322            <input type="reset" value="Clear" class="padRight"/> 
    1320           </td> 
    1321           <td align="right"> 
    1322             <input type="submit" name="delete" value="Delete Calendar"/> 
    13231323          </td> 
    13241324        </tr> 
     
    13511351        </tr> 
    13521352        <tr> 
     1353          <th>Mailing List ID:</th> 
     1354          <td> 
     1355            <xsl:value-of select="mailListId"/> 
     1356          </td> 
     1357        </tr> 
     1358        <tr> 
    13531359          <th>Summary:</th> 
    13541360          <td> 
     
    13851391        <tr> 
    13861392          <td> 
    1387             <input type="submit" name="updateCalendar" value="Update Calendar" class="padRight"/> 
     1393            <xsl:choose> 
     1394              <xsl:when test="calendarCollection='true'"> 
     1395                <input type="submit" name="updateCalendar" value="Update Calendar" class="padRight"/> 
     1396              </xsl:when> 
     1397              <xsl:otherwise> 
     1398                <input type="submit" name="updateCalendar" value="Update Folder" class="padRight"/> 
     1399              </xsl:otherwise> 
     1400            </xsl:choose> 
    13881401            <input type="submit" name="cancelled" value="Cancel" class="padRight"/> 
    13891402            <input type="reset" value="Reset" class="padRight"/> 
    13901403          </td> 
    13911404          <td align="right"> 
    1392             <input type="submit" name="delete" value="Delete Calendar"/> 
     1405            <xsl:choose> 
     1406              <xsl:when test="calendarCollection='true'"> 
     1407                <input type="submit" name="delete" value="Delete Calendar"/> 
     1408              </xsl:when> 
     1409              <xsl:otherwise> 
     1410                <input type="submit" name="delete" value="Delete Folder"/> 
     1411              </xsl:otherwise> 
     1412            </xsl:choose> 
    13931413          </td> 
    13941414        </tr> 
     
    14161436      </li> 
    14171437    </ul> 
     1438  </xsl:template> 
     1439 
     1440  <xsl:template match="currentCalendar" mode="deleteCalendarConfirm"> 
     1441    <xsl:choose> 
     1442      <xsl:when test="calendarCollection='true'"> 
     1443        <h3>Delete Calendar</h3> 
     1444        <p> 
     1445          The following calendar will be deleted.  Continue? 
     1446        </p> 
     1447      </xsl:when> 
     1448      <xsl:otherwise> 
     1449        <h3>Delete Folder</h3> 
     1450        <p> 
     1451          The following folder <em>and all its contents</em> will be deleted. 
     1452          Continue? 
     1453        </p> 
     1454      </xsl:otherwise> 
     1455    </xsl:choose> 
     1456 
     1457    <form name="delCalForm" action="{$calendar-delete}"> 
     1458      <table class="eventFormTable"> 
     1459        <tr> 
     1460          <th>Path:</th> 
     1461          <td> 
     1462            <xsl:value-of select="path"/> 
     1463          </td> 
     1464        </tr> 
     1465        <tr> 
     1466          <th>Name:</th> 
     1467          <td> 
     1468            <xsl:value-of select="name"/> 
     1469          </td> 
     1470        </tr> 
     1471        <tr> 
     1472          <th>Summary:</th> 
     1473          <td> 
     1474            <xsl:value-of select="summary"/> 
     1475          </td> 
     1476        </tr> 
     1477        <tr> 
     1478          <th>Description:</th> 
     1479          <td> 
     1480            <xsl:value-of select="desc"/> 
     1481          </td> 
     1482        </tr> 
     1483      </table> 
     1484 
     1485      <table border="0" width="100%" id="submitTable"> 
     1486        <tr> 
     1487          <td> 
     1488            <input type="submit" name="cancelled" value="Cancel" class="padRight"/> 
     1489          </td> 
     1490          <td align="right"> 
     1491            <xsl:choose> 
     1492              <xsl:when test="calendarCollection='true'"> 
     1493                <input type="submit" name="delete" value="Yes: Delete Calendar!"/> 
     1494              </xsl:when> 
     1495              <xsl:otherwise> 
     1496                <input type="submit" name="delete" value="Yes: Delete Folder!"/> 
     1497              </xsl:otherwise> 
     1498            </xsl:choose> 
     1499          </td> 
     1500        </tr> 
     1501      </table> 
     1502    </form> 
     1503 
    14181504  </xsl:template> 
    14191505 
  • trunk/calendar3/resources/log4j.xml

    r2 r4  
    193193   </category> 
    194194 
     195   <!-- hibernate is noisy too --> 
     196   <category name="org.hibernate"> 
     197      <priority value="INFO"/> 
     198   </category> 
     199 
    195200   <!-- Set rpi categories --> 
    196201<!-- 
  • trunk/calendar3/webadmin/war/WEB-INF/struts-config.xml

    r2 r4  
    251251      <forward name="inUse" path="/calendar/showReferenced.rdo" redirect="true" /> 
    252252      <forward name="notFound" path="/calendar/showUpdateList.rdo" redirect="true" /> 
     253      <forward name="cancelled" path="/calendar/showUpdateList.rdo" redirect="true" /> 
    253254      <forward name="continue" path="/calendar/showUpdateList.rdo" redirect="true" /> 
    254255    </action> 
     
    278279               validate="false"> 
    279280      <forward name="continue" path="/calendar/showUpdateList.rdo" redirect="true" /> 
     281      <forward name="cancelled" path="/calendar/showUpdateList.rdo" redirect="true" /> 
    280282      <forward name="retry" path="/calendar/showModForm.rdo" redirect="true" /> 
    281283      <forward name="delete" path="/calendar/showDeleteConfirm.rdo" redirect="true" /> 
  • trunk/calendar3/webadmin/war/docs/calendar/deleteConfirm.jsp

    r2 r4  
    11<%@ taglib uri='struts-bean' prefix='bean' %> 
    22<%@ taglib uri='struts-logic' prefix='logic' %> 
    3 <%@ taglib uri='struts-html' prefix='html' %> 
    4 <%@ taglib uri='struts-genurl' prefix='genurl' %> 
    53 
    6 <jsp:include page="/docs/header.jsp"> 
    7   <jsp:param name="title" value="org.bedework.title.delete.calendar.confirm"/> 
    8 </jsp:include> 
     4<%@include file="/docs/header.jsp"%> 
    95 
    10 <h2><bean:message key="org.bedework.text.delete.calendar.ok" /></h2
     6<page>deleteCalendarConfirm</page
    117 
    12 <genurl:form action="calendar/delete.do" > 
    13   <html:submit property="cancelled" value="Cancel"/>&nbsp;&nbsp;&nbsp; 
    14   <html:submit property="deleteCalendarOK" value="Delete"/>&nbsp;&nbsp;&nbsp; 
     8<%@include file="/docs/calendar/displayCalendarCommon.jsp"%> 
    159 
    16  
    17   <jsp:include page="displayCalendarCommon.jsp" /> 
    18  
    19  
    20   <html:submit property="cancelled" value="Cancel"/>&nbsp;&nbsp;&nbsp; 
    21   <html:submit property="deleteCalendarOK" value="Delete"/>&nbsp;&nbsp;&nbsp; 
    22 </genurl:form> 
     10<%@include file="/docs/calendar/emitCalendars.jsp"%> 
    2311 
    2412<%@include file="/docs/footer.jsp"%> 
    25  
  • trunk/calendar3/webadmin/war/docs/calendar/displayCalendarCommon.jsp

    r2 r4  
    33<%@ taglib uri='struts-html' prefix='html' %> 
    44 
    5 <h2>Calendar Information</h2> 
    6  
    7 <table id="eventFormTable"> 
    8   <tr> 
    9     <td class="fieldName"> 
    10       Calendar: 
    11     </td> 
    12     <td> 
    13       <bean:write name="peForm" property="calendar.name" /> 
    14     </td> 
    15   </tr> 
    16   <tr> 
    17     <td class="fieldName"> 
    18       Path: 
    19     </td> 
    20     <td> 
    21       <bean:write name="peForm" property="calendar.path" />- 
    22     </td> 
    23   </tr> 
    24   <tr> 
    25     <td class="fieldName"> 
    26       Public: 
    27     </td> 
    28     <td> 
    29       <bean:write name="peForm" property="calendar.publick" />- 
    30     </td> 
    31   </tr> 
    32   <tr> 
    33     <td class="fieldName"> 
    34       Access: 
    35     </td> 
    36     <td> 
    37       <bean:write name="peForm" property="calendar.access" />- 
    38     </td> 
    39   </tr> 
    40   <tr> 
    41     <td class="fieldName"> 
    42       Title: 
    43     </td> 
    44     <td> 
    45       <bean:write name="peForm" property="calendar.title" />- 
    46     </td> 
    47   </tr> 
    48   <tr> 
    49     <td class="fieldName"> 
    50       Description: 
    51     </td> 
    52     <td> 
    53       <bean:write name="peForm" property="calendar.description" />- 
    54     </td> 
    55   </tr> 
    56   <tr> 
    57     <td class="fieldName"> 
    58       Show Children: 
    59     </td> 
    60     <td> 
    61       <bean:write name="peForm" property="calendar.showChildren" />- 
    62     </td> 
    63   </tr> 
    64   <tr> 
    65     <td class="fieldName"> 
    66       Calendar Collection: 
    67     </td> 
    68     <td> 
    69       <bean:write name="peForm" property="calendar.calendarCollection" />- 
    70     </td> 
    71   </tr> 
    72 </table> 
     5<bean:define id="curcal" name="peForm" property="calendar"/> 
     6<currentCalendar> 
     7  <id><bean:write name="curcal" property="id" /></id> 
     8  <name><bean:write name="curcal" property="name" /></name> 
     9  <summary><bean:write name="curcal" property="summary" /></summary> 
     10  <desc><bean:write name="curcal" property="description" /></desc> 
     11  <path><bean:write name="curcal" property="path" /></path> 
     12  <calendarCollection><bean:write name="curcal" property="calendarCollection" /></calendarCollection> 
     13  <mailListId><bean:write name="calendar" property="mailListId" /></mailListId> 
     14</currentCalendar> 
  • trunk/calendar3/webadmin/war/docs/calendar/emitCalendar.jsp

    r2 r4  
    77  <path><bean:write name="calendar" property="path" /></path> 
    88  <calendarCollection><bean:write name="calendar" property="calendarCollection" /></calendarCollection> 
     9  <mailListId><bean:write name="calendar" property="mailListId" /></mailListId> 
    910 
    1011  <logic:iterate name="calendar" property="children" id="cal"> 
  • trunk/calendar3/webadmin/war/docs/calendar/modCalendar.jsp

    r2 r4  
    11<%@ taglib uri='struts-bean' prefix='bean' %> 
    22<%@ taglib uri='struts-logic' prefix='logic' %> 
    3 <%@ taglib uri='struts-html' prefix='html' %> 
    4 <%@ taglib uri='struts-genurl' prefix='genurl' %> 
    53 
    64<%@include file="/docs/header.jsp"%> 
     
    97<creating><bean:write name="peForm" property="addingCalendar"/></creating> 
    108 
    11 <bean:define id="curcal" name="peForm" property="calendar"/> 
    12 <currentCalendar> 
    13   <id><bean:write name="curcal" property="id" /></id> 
    14   <name><bean:write name="curcal" property="name" /></name> 
    15   <summary><bean:write name="curcal" property="summary" /></summary> 
    16   <desc><bean:write name="curcal" property="description" /></desc> 
    17   <path><bean:write name="curcal" property="path" /></path> 
    18   <calendarCollection><bean:write name="curcal" property="calendarCollection" /></calendarCollection> 
    19 </currentCalendar> 
     9<%@include file="/docs/calendar/displayCalendarCommon.jsp"%> 
    2010 
    2111<%@include file="/docs/calendar/emitCalendars.jsp"%>