Ignore:
Timestamp:
19 Oct 2011, 12:58:49 (13 years ago)
Author:
Henrik Bettermann
Message:

Show current study mode on StudyCourseDisplayFormPage?.

Location:
main/waeup.sirp/trunk/src/waeup/sirp/students
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/students/browser.py

    r6906 r6912  
    3333    FriendlyDateWidget, FriendlyDateDisplayWidget,
    3434    FriendlyDatetimeDisplayWidget)
     35from waeup.sirp.university.vocabularies import study_modes
    3536from waeup.sirp.students.interfaces import (
    3637    IStudentsContainer, IStudent, IStudentClearance, IStudentPasswordSetting,
     
    500501    def label(self):
    501502        return '%s: Study Course' % self.context.__parent__.fullname
     503
     504    @property
     505    def current_mode(self):
     506        return study_modes.getTermByToken(
     507            self.context.certificate.study_mode).title
    502508
    503509class StudyCourseManageActionButton(ManageActionButton):
  • main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates/studycoursepage.pt

    r6806 r6912  
    2020    </tr>
    2121  </tal:block>
     22    <tr>
     23      <td>
     24        <label>
     25          Study Mode:
     26        </label>
     27      </td>
     28      <td class="field" tal:on-error="default">
     29        <div class="widget" tal:content="view/current_mode">
     30          <input type="text" />
     31        </div>
     32      </td>
     33    </tr>
    2234</tbody>
    2335</table>
Note: See TracChangeset for help on using the changeset viewer.