Changeset 1214 for WAeUP_SRP


Ignore:
Timestamp:
6 Jan 2007, 15:42:07 (18 years ago)
Author:
Henrik Bettermann
Message:

member record link beautified

Location:
WAeUP_SRP/trunk/skins/waeup_student
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_student/getStudentFolderInfo.py

    r1185 r1214  
    7878    row['type'] = so.portal_type
    7979    review_state = row['review_state'] = so.review_state
    80     row['is_editable'] = (is_student and review_state == "opened") or not is_student 
     80    row['is_editable'] = (is_student and review_state == "opened") or not is_student
    8181    sv_link = s_view_links.get(so.portal_type,None) or "waeup_document_view"
    8282    row['s_view_link'] = "%s/%s" % (url,sv_link)
     
    9090    items.append(row)
    9191info['items'] = items
     92info['member'] = member
    9293return info
  • WAeUP_SRP/trunk/skins/waeup_student/student_view.pt

    r1212 r1214  
    4040            </td>
    4141          </tr>
    42       <tr tal:condition="is_so">
    43         <td colspan="3">     
    44           <a href=""
    45              tal:attributes="href string:${context/portal_url}/portal_directories/students/${info/id}/manage_main">
    46             Memberdetails
    47           </a>
    48         </td>
    49       </tr>
     42          <tr tal:condition="python:info['member'].id in ('admin','joachim','kehindesamueal','med',)">
     43            <td colspan="3">     
     44              <a href=""
     45                 target="member"
     46                 onclick="javascript:window.open('','member','width=300, height=300, directories=no, toolbar=no, location=no, menubar=no, scrollbars=yes, status=no, resizable=no, dependent=no')"
     47                 tal:attributes="href string:${context/portal_url}/portal_directories/students/${info/id}/manage_main">
     48                <strong>Member Record</strong>
     49              </a>
     50            </td>
     51          </tr>
    5052        </table>
    5153
Note: See TracChangeset for help on using the changeset viewer.