Changeset 556 for WAeUP_SRP/trunk/skins


Ignore:
Timestamp:
26 Sep 2006, 11:04:01 (18 years ago)
Author:
joachim
Message:

new views for academic data,

Location:
WAeUP_SRP/trunk/skins/waeup_academics
Files:
8 added
3 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_academics/academics_index.py

    r555 r556  
    3333    elif context.portal_type == 'Department':
    3434        return context.department_index_view()
    35 ##    elif context.portal_type == 'Course':
    36 ##        return context.course_index_view()
     35    elif context.portal_type == 'CoursesFolder':
     36        return context.courses_index_view()
     37    elif context.portal_type == 'Certificate':
     38        return context.certificate_index_view()
     39    elif context.portal_type == 'StudyLevel':
     40        return context.level_index_view()
     41    elif context.portal_type in ('CertificateCourse','Course'):
     42        return context.academics_document_view()
    3743    return redirect("%s/academics_contents" % context.absolute_url())
    3844if isStudent:
  • WAeUP_SRP/trunk/skins/waeup_academics/department_index_view.pt

    r552 r556  
    99        Up one level
    1010      </a>
    11       <h1 tal:content="here/title_or_id">
    12         Page Title
    13       </h1>
     11      <h3 tal:content="here/title_or_id" />
    1412      <div tal:condition="nothing" tal:content="info/container_path"/>
    1513    </metal:block>
     
    3432          <tr tal:repeat="row certs"
    3533            tal:attributes="class python:test(repeat['row'].odd(), 'even ajaxtd', 'odd ajaxtd')">
    36             <td align="left" valign="middle" style="width: 5px;"
    37                 tal:condition="is_manager">
    38               <input type="checkbox" name="ids:list" value="" id="" class="noborder"
    39                      tal:condition="is_manager"
    40                      tal:define="id row/id"
    41                      tal:attributes="value id;
    42                      id python:'cb_' + id;
    43                      checked python:id in info['choosen_ids'];"
    44                      />
     34            <td  align="left" valign="middle" style="width: 5px;">
    4535            </td>
    4636            <td><a href="view" tal:attributes="href string:${row/url}">
    47               <strong tal:content="row/title" /></a> </td>
     37              <span tal:content="row/title" /></a> </td>
    4838            <td tal:content="row/id"> </td>
    49             <td><a href="edit" tal:attributes="href string:${row/url}/cpsdocument_edit_form">[edit]</a></td>
    5039          </tr>
    5140        </table>
    52         <table width="100%" cellspacing="0" cellpadding="2"
    53                summary="contents of the folder"
     41        <table tal:condition="nothing" width="100%" cellspacing="0" cellpadding="2"
    5442               class="folderButtons">
    5543          <tr>
  • WAeUP_SRP/trunk/skins/waeup_academics/faculty_index_view.pt

    r551 r556  
    99        Up one level
    1010      </a>
    11       <h1 tal:content="here/title_or_id">
    12         Page Title
    13       </h1>
     11      <h3 tal:content="here/title_or_id" />
    1412      <div tal:condition="python:0" tal:content="info/container_path"/>
    1513    </metal:block>
Note: See TracChangeset for help on using the changeset viewer.