Changeset 1575 for WAeUP_SRP/trunk
- Timestamp:
- 18 Mar 2007, 12:53:54 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_student
- Files:
-
- 1 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/clearance_edit.py
r1571 r1575 122 122 action = "/contact_student_form" 123 123 psm = "Student's clearance request has been rejected! Please fill and submit the form below!" 124 subject = "Clearance request rejected" 125 args['subject'] = subject 126 args['continue'] = 'external_clearance_edit_form' 124 127 else: 125 128 psm = "Please correct your errors!" … … 128 131 args['portal_status_message'] = psm 129 132 url = clear.absolute_url() + action + '?' + urlencode(args) 130 REQUEST.RESPONSE.redirect(url)133 return REQUEST.RESPONSE.redirect(url) 131 134 -
WAeUP_SRP/trunk/skins/waeup_student/clearance_slip.pt
r1156 r1575 1 <metal: html tal:define="info context/getClearanceInfo">2 <metal:body use-macro="here/main_template/macros/master">3 <metal:main fill-slot="main">1 <metal:body use-macro="here/main_template/macros/master"> 2 <metal:main fill-slot="main" 3 tal:define="info context/getClearanceInfo"> 4 4 <span tal:condition="not: info"> 5 5 <span tal:content="here/illegal_view" /> … … 66 66 </span> 67 67 </metal:main> 68 </metal:body> 69 </metal:html> 68 </metal:body> -
WAeUP_SRP/trunk/skins/waeup_student/contact_student_form.pt
r1455 r1575 1 <metal:block define-macro="contact_student_form"> 1 2 <metal:body use-macro="here/main_template/macros/master"> 2 3 <metal:main fill-slot="main" 3 4 tal:define="member python:context.portal_membership.getAuthenticatedMember(); 4 5 info context/getStudentBaseInfo; 6 subject python:context.REQUEST.get('subject'); 7 continue python:context.REQUEST.get('continue') 5 8 "> 6 9 <span tal:condition="not: info"> … … 8 11 </span> 9 12 10 <span tal:condition=" info">13 <span tal:condition="python: info and subject"> 11 14 <h3>Contact Student</h3> 12 15 <br /> … … 23 26 <input type="hidden" name="student_email" type="text" id="student_email" 24 27 tal:attributes="value info/student/email"/> 25 28 <input type="hidden" name="probtype" type="text" id="probtype" 29 tal:attributes="value subject"/> 30 26 31 <table width="100%" border="0" cellspacing="5" cellpadding="0"> 27 32 <tr> … … 42 47 </tr> 43 48 <tr> 44 <td >45 <strong> Type of Rejection: </strong>49 <td valign="top"> 50 <strong>Reason of Notification: </strong> 46 51 </td> 47 <td> 48 <select name="probtype" class="boxgreen" id="probtype"> 49 <option>Clearance request rejected</option> 50 </select> 52 <td valign="bottom"> 53 <span tal:content="subject" /> 51 54 </td> 52 55 </tr> … … 67 70 </span> 68 71 <form action="." method="post" class="group"> 69 <input type="submit" name="external_clearance_edit_form:method" 72 <input type="submit" name="." 73 tal:attributes="name string:${continue}:method" 70 74 class="context" value="Continue" /> 71 75 </form> … … 73 77 </metal:main> 74 78 </metal:body> 79 </metal:block> -
WAeUP_SRP/trunk/skins/waeup_student/course_registration_slip.pt
r1516 r1575 1 <metal:html tal:define="info context/getStudyLevelInfo; 1 <metal:body use-macro="here/main_template/macros/master"> 2 <metal:main fill-slot="main" 3 tal:define="info context/getStudyLevelInfo; 2 4 is_so context/isSectionOfficer; 3 5 is_ca info/is_ca; 4 6 show_check_boxes info/show_check_boxes; 5 is_student info/is_student; 6 status_info info/status_info; 7 review_state info/review_state; 8 view_only info/view_only"> 9 <metal:body use-macro="here/main_template/macros/master"> 10 <metal:main fill-slot="main"> 7 validated python:context.getStudentReviewState() in ('courses_validated',); 8 is_student info/is_student; 9 status_info info/status_info; 10 review_state info/review_state; 11 view_only info/view_only"> 11 12 <span tal:condition="not: info"> 12 13 <span tal:content="here/illegal_view" /> … … 14 15 <span tal:condition="info"> 15 16 <h3>Course Registration Slip</h3> 17 16 18 <br /> 17 <table width="" cellpadding="2" cellspacing="0"> 19 20 <div tal:condition="validated"> 21 - validated by Course Adviser - 22 </div> 23 <div tal:condition="not: validated"> 24 - not yet validated by Course Adviser - 25 </div> 26 27 <br /> 28 <span tal:omit-tag="" 29 tal:content="structure python: info['app_doc'].render(proxy=info['app_doc'], 30 layout_mode='view_info', 31 layout_id='student_application_fe')" 32 /> 33 34 <table cellpadding="2" cellspacing="0"> 18 35 <tr> 19 <td valign="top"><span class="dlabel">Name</span>: 20 </td> 21 <td> 22 <span tal:content="info/student/name" /> 23 </td> 24 </tr> 25 <tr> 26 <td valign="top"><span class="dlabel">Student Id</span>: 27 </td> 28 <td> 29 <span tal:content="info/student/id" /> 30 </td> 31 </tr> 32 <tr> 33 <td valign="top"><span class="dlabel">Matriculation No</span>: 36 <td valign="top" width="180px"><span class="dlabel">Matriculation No</span>: 34 37 </td> 35 38 <td> … … 111 114 </span> 112 115 </metal:main> 113 </metal:body> 114 </metal:html> 116 </metal:body> 115 117 -
WAeUP_SRP/trunk/skins/waeup_student/getStudyLevelInfo.py
r1515 r1575 108 108 normal.sort(cmp_semester) 109 109 info['normal'] = normal 110 111 students_object = context.portal_url.getPortalObject().campus.students 112 student = getattr(students_object, student_id) 113 info['app'] = student.application 114 info['app_doc'] = student.application.getContent() 115 110 116 return info -
WAeUP_SRP/trunk/skins/waeup_student/mail2student.py
r909 r1575 37 37 co_name, 38 38 co_email, 39 student_email, 39 student_email, 40 40 co_email, 41 41 'henrik@waeup.org', -
WAeUP_SRP/trunk/skins/waeup_student/reject_courses.py
r1571 r1575 5 5 ##bind script=script 6 6 ##bind subpath=traverse_subpath 7 ##parameters= student=None7 ##parameters=REQUEST, student=None 8 8 ##title= 9 9 ## … … 17 17 def set_trace(): 18 18 pass 19 19 from urllib import urlencode 20 20 request = context.REQUEST 21 21 mtool = context.portal_membership … … 32 32 wftool.doActionFor(student,'reject_courses') 33 33 logger.info('%s rejected course list of %s' % (member,student.getId())) 34 return request.RESPONSE.redirect("%s" % context.absolute_url()) 34 35 args = {} 36 action = "/contact_student_form_2" 37 psm = "Student's course list has been rejected! Please fill and submit the form below!" 38 subject = "Course list rejected" 39 args['subject'] = subject 40 args['continue'] = 'study_level_view' 41 args['portal_status_message'] = psm 42 url = context.absolute_url() + action + '?' + urlencode(args) 43 return REQUEST.RESPONSE.redirect(url) 44 45 #return request.RESPONSE.redirect("%s" % context.absolute_url()) -
WAeUP_SRP/trunk/skins/waeup_student/validate_courses.py
r1571 r1575 29 29 student = getattr(students_folder,context.getStudentId()) 30 30 wftool.doActionFor(student,'validate_courses') 31 logger.info('%s validated course list for %s' % (member,student.getId())) 32 return request.RESPONSE.redirect("%s" % context.absolute_url()) 31 logger.info('%s validated course list of %s' % (member,student.getId())) 32 33 psm = 'portal_status_message=Course list validated!' 34 url = context.absolute_url() + '?' + psm 35 return request.RESPONSE.redirect(url) 36 37
Note: See TracChangeset for help on using the changeset viewer.