Changeset 523 for WAeUP_SRP/trunk/skins


Ignore:
Timestamp:
15 Sep 2006, 13:06:52 (18 years ago)
Author:
joachim
Message:

using home_student as defaultview

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

Legend:

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

    r522 r523  
    1717
    1818info = {}
    19 student = getattr(context.students,str(member))
     19student = getattr(context.students,str(member),None)
     20if student is None:
     21    return
    2022info['review_state'] = wf.getInfoFor(student,'review_state','keiner')
    2123#info['wf_state'] = 'keiner'
  • WAeUP_SRP/trunk/skins/waeup_student/home_student.pt

    r509 r523  
    1 <metal:html>
     1<metal:html tal:define="info context/get_student_info">
    22
    33<metal:body use-macro="here/main_template/macros/master">
    44
    55<metal:main fill-slot="main">
    6 
     6<span tal:condition="isAnon">
    77  <h2>Welcome to the     
    88   
     
    2323 
    2424  <p>This site is best seen in Firefox browser.</p>
     25</span>
     26<span tal:condition="not:isAnon">
     27    <h3 tal:content="info/review_state"></h3>
     28   <span tal:omit-tag="" tal:condition="python:info['review_state'] == 'admission_applied'"
     29          tal:content="structure python: info['app_doc'].render(proxy=info['app_doc'],
     30                                                               layout_mode='view',
     31                                                               layout_id='student_application_fe')" />
     32     
     33
     34</span>
    2535 
    2636</metal:main>
  • WAeUP_SRP/trunk/skins/waeup_student/student_edit.py

    r486 r523  
    77##parameters=REQUEST, cluster=None, cpsdocument_edit_and_view_button=None, action=None
    88##title=
    9 ##
    109# $Id$
    1110"""
     
    3837if context.portal_type == "StudentApplication":
    3938    student = context.aq_parent
    40     if context.portal_workflow.getInfoFor(student,'review_state',None) == "application_pin_entered":
     39    state = context.portal_workflow.getInfoFor(student,'review_state',None)
     40    if state == "application_pin_entered":
    4141        student.content_status_modify(workflow_action="apply_for_admission")
     42    if doc.passport is None:
    4243        is_valid, ds = doc.validate(request=REQUEST,
    4344                                    proxy=context,
     
    4546                                    layout_mode = 'edit',
    4647                                    use_session=True)
    47 
     48   
    4849        action = '/application_form'
    49 
    5050        if is_valid:
    5151            comments = REQUEST.get('comments')
  • WAeUP_SRP/trunk/skins/waeup_student/widget_scratch_card_pin_render.pt

    r490 r523  
    44                   id_n string:${id}_n;
    55                   prefix options/prefix;
    6                    value options/datastructure/?id;
    76                   batch options/datastructure/?id_b;
    87                   nr options/datastructure/?id_n;
    98">
    109<tal:block condition="python: mode == 'view'">
    11 <span tal:replace="value" />
     10<span tal:replace="prefix" />-<span tal:replace="batch" />-<span tal:replace="nr" />
    1211</tal:block>
    1312<tal:block define="name here/getHtmlWidgetId;"
Note: See TracChangeset for help on using the changeset viewer.