Changeset 523 for WAeUP_SRP/trunk/skins/waeup_student
- Timestamp:
- 15 Sep 2006, 13:06:52 (18 years ago)
- 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 17 17 18 18 info = {} 19 student = getattr(context.students,str(member)) 19 student = getattr(context.students,str(member),None) 20 if student is None: 21 return 20 22 info['review_state'] = wf.getInfoFor(student,'review_state','keiner') 21 23 #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"> 2 2 3 3 <metal:body use-macro="here/main_template/macros/master"> 4 4 5 5 <metal:main fill-slot="main"> 6 6 <span tal:condition="isAnon"> 7 7 <h2>Welcome to the 8 8 … … 23 23 24 24 <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> 25 35 26 36 </metal:main> -
WAeUP_SRP/trunk/skins/waeup_student/student_edit.py
r486 r523 7 7 ##parameters=REQUEST, cluster=None, cpsdocument_edit_and_view_button=None, action=None 8 8 ##title= 9 ##10 9 # $Id$ 11 10 """ … … 38 37 if context.portal_type == "StudentApplication": 39 38 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": 41 41 student.content_status_modify(workflow_action="apply_for_admission") 42 if doc.passport is None: 42 43 is_valid, ds = doc.validate(request=REQUEST, 43 44 proxy=context, … … 45 46 layout_mode = 'edit', 46 47 use_session=True) 47 48 48 49 action = '/application_form' 49 50 50 if is_valid: 51 51 comments = REQUEST.get('comments') -
WAeUP_SRP/trunk/skins/waeup_student/widget_scratch_card_pin_render.pt
r490 r523 4 4 id_n string:${id}_n; 5 5 prefix options/prefix; 6 value options/datastructure/?id;7 6 batch options/datastructure/?id_b; 8 7 nr options/datastructure/?id_n; 9 8 "> 10 9 <tal:block condition="python: mode == 'view'"> 11 <span tal:replace=" value" />10 <span tal:replace="prefix" />-<span tal:replace="batch" />-<span tal:replace="nr" /> 12 11 </tal:block> 13 12 <tal:block define="name here/getHtmlWidgetId;"
Note: See TracChangeset for help on using the changeset viewer.