Changeset 556


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

new views for academic data,

Location:
WAeUP_SRP/trunk
Files:
8 added
8 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/profiles/default/layouts/certificate_course.xml

    r486 r556  
    6969  <property name="label">Course Code</property>
    7070  <property name="label_edit">Course Code</property>
    71   <property name="readonly_layout_modes">
     71  <property name="readonly_layout_modes"/>
     72  <property name="hidden_layout_modes">
     73   <element value="view"/>
    7274   <element value="edit"/>
    7375  </property>
     76  <property name="hidden_readonly_layout_modes"/>
     77 </widget>
     78 <widget name="code_neu" meta_type="ExtendedSelect Widget">
     79  <property name="title">Course Code</property>
     80  <property name="fields">
     81   <element value="code"/>
     82  </property>
     83  <property name="is_required">True</property>
     84  <property name="label">Course Code</property>
     85  <property name="label_edit">Course Code</property>
     86  <property name="readonly_layout_modes"/>
    7487  <property name="hidden_layout_modes"/>
    7588  <property name="hidden_readonly_layout_modes"/>
     89  <property name="vocabulary">courses_voc</property>
    7690 </widget>
    7791 <widget name="core_or_elective" meta_type="Boolean Widget">
     
    88102  <property name="label_true">core</property>
    89103 </widget>
     104 <widget name="semester" meta_type="Select Widget">
     105  <property name="title">Semester</property>
     106  <property name="fields">
     107   <element value="semester"/>
     108  </property>
     109  <property name="label">Semester</property>
     110  <property name="label_edit">Semester</property>
     111  <property name="readonly_layout_modes"/>
     112  <property name="hidden_layout_modes"/>
     113  <property name="hidden_readonly_layout_modes"/>
     114  <property name="vocabulary">semester_voc</property>
     115 </widget>
    90116 <table>
    91117  <row>
    92118   <cell name="Title"/>
     119  </row>
     120  <row>
     121   <cell name="semester"/>
    93122  </row>
    94123  <row>
  • WAeUP_SRP/trunk/profiles/default/layouts/faculty.xml

    r551 r556  
    5151  <property name="hidden_layout_modes">
    5252   <element value="edit"/>
     53   <element value="view"/>
    5354  </property>
    5455  <property name="hidden_readonly_layout_modes"/>
  • WAeUP_SRP/trunk/profiles/default/layouts/study_level.xml

    r486 r556  
    1616  <property name="label_edit">Level No</property>
    1717  <property name="readonly_layout_modes"/>
    18   <property name="hidden_layout_modes"/>
     18 <property name="hidden_layout_modes">
     19  <element value="edit"/>
     20  <element value="view"/>
     21 </property>
    1922  <property name="hidden_readonly_layout_modes"/>
    2023 </widget>
  • WAeUP_SRP/trunk/profiles/default/schemas/certificate_course.xml

    r486 r556  
    55 <field name="certificate_code_org" meta_type="CPS String Field"/>
    66 <field name="code" meta_type="CPS String Field">
    7   <property name="is_searchabletext">True</property>
     7  <property name="is_searchabletext">False</property>
    88 </field>
    99 <field name="core_or_elective" meta_type="CPS Boolean Field"/>
     10 <field name="semester" meta_type="CPS String Field"/>
    1011 <field name="department" meta_type="CPS String Field"/>
    1112 <field name="level" meta_type="CPS String Field"/>
  • WAeUP_SRP/trunk/profiles/default/vocabularies/semester_voc.xml

    r486 r556  
    55 <property name="description"></property>
    66 <property name="acl_write_roles">Manager</property>
    7  <item key="1" msgid="">1st</item>
    8  <item key="2" msgid="">2nd</item>
     7 <item key="first" msgid="">First Semester</item>
     8 <item key="second" msgid="">Second Semester</item>
    99</object>
  • 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.