Ignore:
Timestamp:
13 Feb 2007, 14:14:44 (18 years ago)
Author:
joachim
Message:

more documentation

M profiles/default/schemas/acco_hall.xml
M profiles/default/schemas/schema.xsl
M profiles/default/workflows/waeup_student_wf/definition.xml
M profiles/default/layouts/layout.xsl
M profiles/default/layouts/acco_bed_booking.xml
M profiles/default/layouts/acco_hall.xml
M profiles/default/types/Student.xml
M profiles/default/types/AccoFolder.xml
M profiles/default/types/AccoHall.xml
M doc/srp_documentation.mm

reserved bed functionallity,
pay hostel-fee for reserved bed

D skins/waeup_student/reserve_accommodation.py
M skins/waeup_accommodation/book_reserved_bed.py
A skins/waeup_accommodation/reserve_accommodation.py

Location:
WAeUP_SRP/trunk/profiles/default
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/profiles/default/layouts/acco_bed_booking.xml

    r1393 r1412  
    11<?xml version="1.0"?>
     2<?xml-stylesheet type="text/xsl" href="layout.xsl"?>
    23<object name="acco_bed_reservation" meta_type="CPS Layout">
    34 <property name="layout_create_method"></property>
    45 <property name="layout_edit_method"></property>
    56 <property name="layout_view_method"></property>
    6  <property name="style_prefix">layout_wo_object</property>
     7 <property name="style_prefix">layout_waeup_</property>
    78 <property name="flexible_widgets"/>
    89 <property name="validate_values_expr"></property>
    9  <widget name="bed" meta_type="Select Widget">
    10   <property name="title">Bed</property>
     10 <widget name="bed_letter" meta_type="Select Widget">
     11  <property name="title">Bed Letter</property>
    1112  <property name="fields">
    12    <element value="bed"/>
     13   <element value="bed_letter"/>
    1314  </property>
    1415  <property name="is_required">True</property>
    15   <property name="label">Bed</property>
    16   <property name="label_edit">Bed</property>
     16  <property name="label">Bed Letter</property>
     17  <property name="label_edit">Bed Letter</property>
    1718  <property name="readonly_layout_modes"/>
    1819  <property name="hidden_layout_modes"/>
     
    4950 <table>
    5051  <row>
    51    <cell name="block_floor_room"/>
     52   <cell name="block_room"/>
    5253  </row>
    5354  <row>
    54    <cell name="bed"/>
     55   <cell name="bed_letter"/>
    5556  </row>
    5657  <row>
  • WAeUP_SRP/trunk/profiles/default/layouts/acco_hall.xml

    r1041 r1412  
    11<?xml version="1.0"?>
    2 <object name="accommodation" meta_type="CPS Layout">
     2<?xml-stylesheet type="text/xsl" href="layout.xsl"?>
     3<object name="acco_hall" meta_type="CPS Layout">
    34 <property name="layout_create_method"></property>
    45 <property name="layout_edit_method"></property>
  • WAeUP_SRP/trunk/profiles/default/layouts/layout.xsl

    r1403 r1412  
    1313      <body>
    1414        <xsl:for-each select="object">
    15           <h1><xsl:value-of select="@name"/></h1>
     15          <h1>Layout: <xsl:value-of select="@name"/></h1>
    1616        </xsl:for-each>
    1717        <h1>Layout</h1>
     
    3939        <h1>Properties</h1>
    4040        <table>
     41          <tr>
     42            <th>Id</th>
     43            <th>Text</th>
     44          </tr>
    4145          <xsl:for-each select="object/property">
    4246            <xsl:variable name="color">
     
    6165        </table>
    6266        <h1>Widgets</h1>
    63         <table>
    64           <xsl:for-each select="object/widget">
    65             <xsl:variable name="color">
    66               <xsl:choose>
    67                 <xsl:when test="position() mod 2 = 0">
    68                   <xsl:text>#ffffff</xsl:text>
    69                 </xsl:when>
    70                 <xsl:otherwise>
    71                   <xsl:text>#eeeeee</xsl:text>
    72                 </xsl:otherwise>
    73               </xsl:choose>
    74             </xsl:variable>
    75             <tr style="background-color:{$color}">
    76               <th>
    77                 <xsl:value-of select="@name"/>
    78               </th>
    79               <td colspan="2">
    80                 <xsl:value-of select="@meta_type"/>
    81               </td>
    82             </tr>
     67        <xsl:for-each select="object/widget">
     68          <xsl:variable name="color">
     69            <xsl:choose>
     70              <xsl:when test="position() mod 2 = 0">
     71                <xsl:text>#ffffff</xsl:text>
     72              </xsl:when>
     73              <xsl:otherwise>
     74                <xsl:text>#eeeeee</xsl:text>
     75              </xsl:otherwise>
     76            </xsl:choose>
     77          </xsl:variable>
     78          <h3><xsl:value-of select="@name"/> Meta Type: <xsl:value-of select="@meta_type"/></h3>
     79          <table>
    8380            <tr style="background-color:{$color}">
    8481              <th colspan="3">
     
    10198              </tr>
    10299            </xsl:for-each>
    103           </xsl:for-each>
    104         </table>
     100          </table>
     101        </xsl:for-each>
    105102      </body>
    106103    </html>
  • WAeUP_SRP/trunk/profiles/default/schemas/acco_hall.xml

    r1399 r1412  
    11<?xml version="1.0"?>
    22<?xml-stylesheet type="text/xsl" href="schema.xsl"?>
    3 <object name="accommodation" meta_type="CPS Schema">
     3<object name="acco_hall" meta_type="CPS Schema">
    44  <field name="beds_for_final" meta_type="CPS String List Field"/>
    55  <field name="beds_for_fresh" meta_type="CPS String List Field"/>
  • WAeUP_SRP/trunk/profiles/default/schemas/schema.xsl

    r1404 r1412  
    1414        <xsl:for-each select="object">
    1515          <h2>
    16             <xsl:value-of select="@name"/>
     16            Schema: <xsl:value-of select="@name"/>
    1717          </h2>
    1818        </xsl:for-each>
    1919        <h1>Fields</h1>
    2020        <table>
     21          <tr>
     22            <th>Id</th>
     23            <th>Type</th>
     24            <th>default</th>
     25          </tr>
    2126          <xsl:for-each select="object/field">
    2227            <xsl:sort select="@name"
  • WAeUP_SRP/trunk/profiles/default/types/AccoFolder.xml

    r941 r1412  
    11<?xml version="1.0"?>
     2<?xml-stylesheet type="text/xsl" href="types.xsl"?>
    23<object name="AccoFolder" meta_type="CPS Flexible Type Information"
    34   xmlns:i18n="http://xml.zope.org/namespaces/i18n">
     
    1213 <property name="filter_content_types">True</property>
    1314 <property name="allowed_content_types">
    14   <element value="Accommodation"/>
     15  <element value="AccoHall"/>
    1516 </property>
    1617 <property name="allow_discussion">False</property>
     
    1920 <property name="cps_display_as_document_in_listing">True</property>
    2021 <property name="schemas">
    21   <element value="metadata"/>
    22   <element value="common"/>
    2322 </property>
    2423 <property name="layouts"/>
    2524 <property name="layout_clusters">
    26   <element value="metadata:metadata"/>
    2725 </property>
    2826 <property name="flexible_layouts"/>
  • WAeUP_SRP/trunk/profiles/default/types/AccoHall.xml

    r873 r1412  
    11<?xml version="1.0"?>
     2<?xml-stylesheet type="text/xsl" href="types.xsl"?>
    23<object name="AccoHall" meta_type="CPS Flexible Type Information"
    34   xmlns:i18n="http://xml.zope.org/namespaces/i18n">
  • WAeUP_SRP/trunk/profiles/default/types/Student.xml

    r1225 r1412  
    11<?xml version="1.0"?>
     2<?xml-stylesheet type="text/xsl" href="types.xsl"?>
    23<object name="Student" meta_type="CPS Flexible Type Information"
    34   xmlns:i18n="http://xml.zope.org/namespaces/i18n">
  • WAeUP_SRP/trunk/profiles/default/workflows/waeup_student_wf/definition.xml

    r1286 r1412  
    11<?xml version="1.0"?>
     2<?xml-stylesheet type="text/xsl" href="../definition.xsl"?>
    23<cps-workflow workflow_id="waeup_student_wf"
    34              title="CPS Workflow Definition"
Note: See TracChangeset for help on using the changeset viewer.