Changeset 430 for WAeUP_SRP/trunk/skins


Ignore:
Timestamp:
26 Aug 2006, 14:47:10 (18 years ago)
Author:
joachim
Message:

added columns for semester credits passmark to courseslisting and
core_or_elective to certificate courses semester listing

Location:
WAeUP_SRP/trunk/skins
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_academics/academics_content_lib_info_detail_tab.pt

    r403 r430  
    119119
    120120
    121   <td tal:condition="python:id_in_tabs and display_buttons">
     121  <td tal:condition="python:id_in_tabs and display_buttons and context.portal_type not in ('Certificate',)">
    122122    <span tal:content="info/id">ID</span>
    123123  </td>
     
    125125    <span tal:content="info/type">ID</span>
    126126  </td>
     127    <span tal:condition="python: context.portal_type == 'CoursesFolder'">
     128      <td>
     129        <span tal:content="info/semester">ID</span>
     130      </td>
     131      <td>
     132        <span tal:content="info/credits">ID</span>
     133      </td>
     134      <td>
     135        <span tal:content="info/passmark">ID</span>
     136      </td>
     137    </span>
     138    <span tal:condition="python: context.portal_type == 'Semester'">
     139      <td>
     140        <span tal:content="info/core_or_elective">ID</span>
     141      </td>
     142    </span>
    127143  <td align="left"   tal:define="isManager python:checkPerm('Modify portal content', item)">
    128     <a tal:condition="python: display_buttons and isManager"
     144    <a tal:condition="python: display_buttons and isManager and context.portal_type not in ('Certificate',)"
    129145       href="dummy"  tal:attributes="href string:${item/absolute_url}/cpsdocument_edit_form">[edit]</a></td>
    130146  <td align="center" tal:condition="size_in_tabs">
  • WAeUP_SRP/trunk/skins/waeup_academics/academics_contents.pt

    r387 r430  
    9292              tal:attributes="onclick python:'return window.confirm(\'%s\')' %
    9393              (cpsmcat('description_confirm_delete'), )" />
    94             <input tal:condition="python: context.portal_type not in ('Semester',)"
     94            <input tal:condition="python: context.portal_type not in ('Semester','Certificate')"
    9595                   type="submit" name="id_rename_form:method"
    9696              class="context" value="Change Object ID" i18n:attributes="value" />
  • WAeUP_SRP/trunk/skins/waeup_custom/getContentInfo.py

    r361 r430  
    220220    if doc is None:
    221221        doc = proxy.getContent()
     222    if doc.portal_type == 'Course':
     223        info['credits'] = doc.credits
     224        info['semester'] = doc.semester
     225        info['passmark'] = doc.passmark
     226    elif doc.portal_type == 'CertificateCourse':
     227        core = 'core'
     228        if not doc.core_or_elective:
     229            core = elective
     230        info['core_or_elective'] = core
    222231    info['time'] = doc.modified()
    223232    info['doc'] = doc
     
    233242        except:
    234243            size = 0
    235 
    236244        if size and size < 1024:
    237245            info['size'] = '1 K'
Note: See TracChangeset for help on using the changeset viewer.