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/skins/waeup_accommodation
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • 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.