Changeset 543
- Timestamp:
- 24 Sep 2006, 07:44:32 (18 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/profiles/default/actionicons.xml
r526 r543 156 156 title="Members" priority="4" 157 157 icon_expr="blank.gif"/> 158 <action-icon category="navigation" action_id="view_pins" 159 title="PINs" priority="5" 160 icon_expr="blank.gif"/> 158 161 <action-icon category="navigation" action_id="home" 159 162 title="Home" priority="0" -
WAeUP_SRP/trunk/profiles/default/actions.xml
r542 r543 2 2 <object name="portal_actions" meta_type="CMF Actions Tool"> 3 3 <action-provider name="portal_membership"> 4 <action title=" Login" action_id="login" category="user"4 <action title="Staff Login" action_id="login_staff" category="user" 5 5 condition_expr="not: member" 6 url_expr="python:"%s/login_ form?%s" % (portal_url, modules["urllib"].urlencode({"came_from": request.URL}))"6 url_expr="python:"%s/login_staff?%s" % (portal_url, modules["urllib"].urlencode({"came_from": request.URL}))" 7 7 visible="True"> 8 8 <permission>View</permission> … … 32 32 <permission>View</permission> 33 33 </action> 34 <action title=" Login" action_id="login_student" category="student"34 <action title="Student Login" action_id="login_student" category="student" 35 35 condition_expr="not:member" 36 36 url_expr="python:"%s/login_student?%s" % (portal_url, modules["urllib"].urlencode({"came_from": request.URL}))" … … 118 118 <permission>Modify portal content</permission> 119 119 </action> 120 <action title="PINs" action_id="view_pins" category="navigation" 121 condition_expr="member" url_expr="string:${portal_url}/campus/pins" 122 visible="True"> 123 <permission>Modify portal content</permission> 124 </action> 120 125 <action title="Unchecked Items" action_id="unchecked" category="object" 121 126 condition_expr="member" url_expr="string:./unchecked" visible="True"> … … 128 133 <action title="Apply for PUME" action_id="apply_admission" 129 134 category="student" condition_expr="not:member" 130 url_expr="string:${portal_url}/ campus/students/apply_admission"135 url_expr="string:${portal_url}/apply_admission" 131 136 visible="True"> 132 137 <permission>View</permission> -
WAeUP_SRP/trunk/skins/waeup_default/campus_index.py
r542 r543 1 ## Script (Python) " home_index"1 ## Script (Python) "campus_index" 2 2 ##bind container=container 3 3 ##bind context=context … … 19 19 20 20 if pm.isAnonymousUser(): 21 return redirect("%s/campus_anonymous_view" % request.get('URL1')) 21 return redirect("%s/campus_anonymous_view" % request.get('URL1')) 22 22 23 23 campus = context.portal_catalog(meta_type = "University")[-1].getObject() … … 29 29 if isManager: 30 30 return redirect("%s/campus_manager_view" % campus.absolute_url()) 31 31 32 32 if isStudent: 33 33 return redirect("%s/students_index" % campus.students.absolute_url()) -
WAeUP_SRP/trunk/skins/waeup_default/index_html.py
r542 r543 27 27 28 28 if isManager: 29 return redirect("%s/srp_manager_view" % absolute_url())29 return redirect("%s/srp_manager_view" % context.absolute_url()) 30 30 31 31 if isStudent: 32 return redirect("%s/srp_anonymous_view" % absolute_url())32 return redirect("%s/srp_anonymous_view" % context.absolute_url()) 33 33 -
WAeUP_SRP/trunk/skins/waeup_default/login_staff.pt
r542 r543 6 6 tal:define="username request/username | request/__ac_name | nothing"> 7 7 8 <h3 i18n:translate="">St udentLogin</h3>8 <h3 i18n:translate="">Staff Login</h3> 9 9 10 10 <form id="" action="" method="post" 11 11 tal:attributes="action string:${base_url}logged_in"> 12 13 14 <p>This is the frontpage of Uniben's Student Registration Portal (SRP) which is part of the West African e-University Project. For further information see15 <a href="" tal:attributes="href string:http://waeup.org">waeup.org</a>. </p>16 12 17 13 <p>You've chosen the portal's 'back entrance' to log in. This entrance is dedicated to university staff members to maintain the portal's database.</p> -
WAeUP_SRP/trunk/skins/waeup_default/portlet_waeup_status_display.pt
r517 r543 1 1 <tal:block define="item nocall:options/context_obj; 2 2 info item/getContentInfo; 3 base_url python: request.get('cpsskins_base_url');"> 3 base_url python: request.get('cpsskins_base_url'); 4 status_list python: ['checked', 'unchecked', 'opened', 'closed', 5 'created', 'admission_pin_entered', 'admission_applied'];"> 4 6 5 <span tal:condition="python:path('info/review_state') !='work'">7 <span tal:condition="python:path('info/review_state') in status_list "> 6 8 Status: <span tal:content="info/review_state" /> 7 9 </ span> -
WAeUP_SRP/trunk/skins/waeup_pins/batch_index_html.pt
r535 r543 7 7 </span> 8 8 <span tal:condition="python:not isAnon and info"> 9 <h3 tal:content="info/review_state|nothing"></h3> 9 10 <h3>Unused PINs</h3> 11 <br /> 10 12 <span tal:omit-tag="" 11 13 tal:content="structure python: info['batch_doc'].render(proxy=info['batch_doc'], … … 13 15 )" 14 16 /> 17 <br /> 18 <table> 19 <tr tal:repeat="pin info/unused"> 20 <td tal:content="pin/serial" /> 21 <td tal:content="pin/pin" /> 22 </tr> 23 </table> 24 15 25 </span> 16 <table> 17 <tr tal:repeat="pin info/unused"> 18 <td tal:content="pin/serial" /> 19 <td tal:content="pin/pin" /> 20 </tr> 21 </table> 26 22 27 </metal:main> 23 28 </metal:body> -
WAeUP_SRP/trunk/skins/waeup_pins/pins_index_html.pt
r535 r543 5 5 </span> 6 6 <span tal:condition="not:isAnon"> 7 <h3>PIN Batches</h3> 8 <br /> 7 9 <table tal:define="batches python: context.objectValues()"> 8 10 <tr tal:repeat="batch batches"> -
WAeUP_SRP/trunk/skins/waeup_student/apply_admission.py
r511 r543 48 48 return context.REQUEST.RESPONSE.redirect("%s/logged_in?__ac_name=%s&__ac_password=%s&pin=%s" 49 49 % (context.absolute_url(),s_id,pin.split('-')[2],pin)) 50 50 51 51 ## jamb_id = ds.get('jamb_reg_no') 52 52 ## student = context.getContent().getStudentByRegNo(jamb_id) … … 68 68 69 69 # now display the passport form with jamb-data readonly 70 return context.REQUEST.RESPONSE.redirect("%s/application_form" % (student.application.absolute_url())) 71 return student.application_form() 70 ##return context.REQUEST.RESPONSE.redirect("%s/application_form" % (student.application.absolute_url())) 71 ##return student.application_form() 72 73 return 72 74 73 75 -
WAeUP_SRP/trunk/skins/waeup_student/students_index.py
r542 r543 19 19 20 20 if pm.isAnonymousUser(): 21 return redirect("%s/ campus_anonymous_view" % context.campus.absolute_url())21 return redirect("%s/srp_anonymous_view" % context.absolute_url()) 22 22 23 23 … … 29 29 30 30 if isManager: 31 return redirect("%s/ academics_contents" % campus.students.absolute_url())31 return redirect("%s/students_manager_view" % campus.students.absolute_url()) 32 32 if isStudent: 33 33 info = context.getStudentInfo() -
WAeUP_SRP/trunk/skins/waeup_student/students_manager_view.pt
r535 r543 9 9 </span> 10 10 <span tal:condition="isManager"> 11 <h3>All Students</h3> 12 <br /> 11 13 <table tal:define="students python: context.objectValues()"> 12 14 <tr tal:repeat="student students">
Note: See TracChangeset for help on using the changeset viewer.