- Timestamp:
- 23 Aug 2007, 21:19:43 (17 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_student
- Files:
-
- 1 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/apply_pume_form.pt
r2155 r2157 55 55 <p>Instructions :</p> 56 56 <ul> 57 <li>Enter your JAMB Registration Number and the Application PIN above.</li>57 <li>Enter your JAMB Registration Number and the Application PIN.</li> 58 58 <li>Fill the form and upload your Passport Photograph with red background in jpg format.</li> 59 59 <li>Save and preview picture. -
WAeUP_SRP/trunk/skins/waeup_student/apply_pume_manage.py
r2156 r2157 32 32 if not context.isStaff(): 33 33 return request.RESPONSE.redirect("%s/srp_anonymous_view" % context.absolete_url()) 34 34 35 #type_name = 'StudentApplication' 35 36 #ti = context.portal_types[type_name] … … 37 38 reset = "reset" in request.keys() 38 39 lt = context.portal_layouts 39 reg_no = request.form.get('reg_no','') 40 if same_type(reg_no, []): 41 if reset: 42 reg_no = reg_no[0] 43 elif reg_no[1]: 44 reg_no = reg_no[1] 40 41 reg_no = request.get('reg_no','') 42 new_reg_no = request.get('new_reg_no','') 43 44 if reset: 45 reg_no = reg_no 46 elif new_reg_no: 47 reg_no = new_reg_no 48 45 49 res = '' 46 50 psm = '' … … 49 53 if reset and reg_no: 50 54 data['reg_no'] = reg_no 51 psm = "You successfully reset !"55 psm = "You successfully reset the record! The applicant will be able to edit and resubmit the data." 52 56 data['status'] = "edited" 53 57 context.applicants_catalog.modifyRecord(**data) 54 58 logger.info('%s reset application record of %s' % (member,reg_no)) 59 60 #set_trace() 61 62 ds = [] 55 63 if reg_no: 56 64 brains = context.applicants_catalog(reg_no = reg_no) … … 58 66 for field in context.applicants_catalog.schema(): 59 67 object[field] = getattr(brains[0],field,None) 60 res,psm ,ds = lt.renderLayout(layout_id= 'application',68 res,psm_dummy,ds = lt.renderLayout(layout_id= 'application', 61 69 schema_id= 'application', 62 layout_mode = "view ",70 layout_mode = "view_slip", 63 71 context=context, 64 72 ob=object, … … 67 75 else: 68 76 psm = "reg no %s not found" % reg_no 77 69 78 return context.apply_pume_manage_form(rendered = res, 70 79 psm = psm, 71 80 reg_no = reg_no, 81 ds = ds 72 82 ) 73 83 -
WAeUP_SRP/trunk/skins/waeup_student/apply_pume_manage_form.pt
r2156 r2157 2 2 portal_status_message options/psm|nothing; 3 3 reg_no options/reg_no|nothing; 4 ds options/ds|nothing; 4 5 " 5 6 > 6 7 <metal:block define-macro="edit_form"> 7 8 <metal:block use-macro="here/main_template/macros/master"> 8 <metal:block fill-slot="main" >9 <h3>Search for PUME Application Record</h3>10 <br /> 9 <metal:block fill-slot="main" 10 tal:define="info_applicants context/getApplicantsStatistics"> 11 11 12 <form action="" id="editForm" method="post" 12 13 enctype="multipart/form-data" class="workflow" 13 14 tal:attributes="action string:${context/absolute_url}/apply_pume_manage" 14 15 > 16 15 17 <span tal:condition="not: rendered_main"> 18 <h3>Application Process</h3> 19 <br /> 20 21 <table> 22 <tr> 23 <td>Number of records viewed:</td> 24 <td><span tal:replace="info_applicants/pin_entered" /></td> 25 </tr> 26 <tr> 27 <td>Number of records submitted:</td> 28 <td><span tal:replace="info_applicants/submitted" /></td> 29 </tr> 30 </table> 31 32 <br/> 33 16 34 <div class="label">Registration No:</div> 17 35 <input type="text" name="reg_no" size="15" … … 22 40 /> 23 41 </span> 42 24 43 <span tal:condition="rendered_main"> 44 <h3>PUME Application Record <span tal:replace="reg_no"/></h3> 45 <br /> 25 46 <div tal:replace="structure rendered_main" /> 47 26 48 <input type="hidden" name="reg_no" 27 49 tal:attributes="value reg_no|nothing" … … 29 51 <input type="submit" class="standalone" 30 52 name="reset" 31 value="Reenable" 32 /><br /> 53 value="Reset" 54 tal:condition="python: ds['status'] == 'submitted'" 55 /> 56 <br /><br /> 57 58 33 59 <div class="label">Registration No:</div> 34 <input type="text" name=" reg_no" size="15"35 /> 60 <input type="text" name="new_reg_no" size="15" 61 /> 36 62 <input type="submit" class="standalone" 37 63 name="search" -
WAeUP_SRP/trunk/skins/waeup_student/search_students_form.pt
r2148 r2157 20 20 <nobr><a href="statistics_simple_view">Basic Student Statistics</a> 21 21 </nobr> 22 <nobr><a href=" statistics_applicants_view">Application Process</a>22 <nobr><a href="apply_pume_manage">Application Process</a> 23 23 </nobr> 24 24 <span tal:condition="is_so">
Note: See TracChangeset for help on using the changeset viewer.