Changeset 695 for WAeUP_SRP


Ignore:
Timestamp:
13 Oct 2006, 20:59:54 (18 years ago)
Author:
joachim
Message:

added link to Student in Bedlist
renamed pins_index_html to pins_view
and batch_index_html batch_view

Location:
WAeUP_SRP/trunk
Files:
4 edited
2 moved

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/profiles/default/types/ScratchCardBatch.xml

    r684 r695  
    2626 <property name="storage_methods"/>
    2727 <property name="cps_is_portlet">False</property>
    28  <alias from="(Default)" to="batch_index_html"/>
     28 <alias from="(Default)" to="batch_view"/>
    2929 <alias from="create_do" to="scratch_card_batch_create_do"/>
    3030 <alias from="created" to="scratch_card_batch_created"/>
    31  <alias from="view" to="batch_index_html"/>
     31 <alias from="view" to="batch_view"/>
    3232 <action title="View" action_id="view" category="object"
    33     condition_expr="" url_expr="string:${object_url}/batch_index_html"
     33    condition_expr="" url_expr="string:${object_url}/batch_view"
    3434    visible="True">
    3535  <permission value="Modify portal content"/>
  • WAeUP_SRP/trunk/profiles/default/types/ScratchCardBatchesFolder.xml

    r659 r695  
    2525 <property name="storage_methods"/>
    2626 <property name="cps_is_portlet">False</property>
    27  <alias from="(Default)" to="pins_index_html"/>
     27 <alias from="(Default)" to="pins_view"/>
    2828 <alias from="create_do" to=""/>
    2929 <alias from="created" to=""/>
    30  <alias from="view" to="pins_index_html"/>
     30 <alias from="view" to="pins_view"/>
    3131 <action title="View" action_id="view" category="object"
    32     condition_expr="" url_expr="string:${object_url}/pins_index_html"
     32    condition_expr="" url_expr="string:${object_url}/pins_view"
    3333    visible="True">
    3434  <permission value="View"/>
  • WAeUP_SRP/trunk/skins/waeup_accommodation/acco_hall_view.pt

    r659 r695  
    3939        </tr>
    4040        <tr tal:repeat="bt reserved">
    41           <td tal:content="bt/student" />
     41          <td>
     42            <a href="" tal:attributes="href bt/student_url"
     43               tal:content="bt/student"></a>
     44          </td>
    4245          <td tal:content="bt/bed" />
    4346        </tr>
  • WAeUP_SRP/trunk/skins/waeup_accommodation/getAccoHallInfo.py

    r654 r695  
    3939info['bed_types'] = bt_list
    4040res_list = []
     41students_rpath = context.portal_catalog(meta_type = "StudentsFolder")[-1].relative_path
     42students_url = "%s/%s" % (context.portal_url(),students_rpath)
    4143if reserved > 1:
    4244    for st in reserved:
     
    4446            res = pa(hall=context.getId(),student=st)
    4547            if res:
    46                 res_list.append({'student': st, 'bed': context.formatBed(res[0].bed) })
     48                res_list.append({'student': st,
     49                                 'student_url': '%s/%s' % (students_url,st),
     50                                 'bed': context.formatBed(res[0].bed) })
    4751info['reserved'] = res_list
    4852
Note: See TracChangeset for help on using the changeset viewer.