Changeset 543


Ignore:
Timestamp:
24 Sep 2006, 07:44:32 (18 years ago)
Author:
Henrik Bettermann
Message:

reorganisation part 2
themes modification will follow

Location:
WAeUP_SRP/trunk
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/profiles/default/actionicons.xml

    r526 r543  
    156156              title="Members" priority="4"
    157157              icon_expr="blank.gif"/>
     158 <action-icon category="navigation" action_id="view_pins"
     159              title="PINs" priority="5"
     160              icon_expr="blank.gif"/>             
    158161 <action-icon category="navigation" action_id="home"
    159162              title="Home" priority="0"
  • WAeUP_SRP/trunk/profiles/default/actions.xml

    r542 r543  
    22<object name="portal_actions" meta_type="CMF Actions Tool">
    33 <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"
    55     condition_expr="not: member"
    6      url_expr="python:&quot;%s/login_form?%s&quot; % (portal_url, modules[&quot;urllib&quot;].urlencode({&quot;came_from&quot;: request.URL}))"
     6     url_expr="python:&quot;%s/login_staff?%s&quot; % (portal_url, modules[&quot;urllib&quot;].urlencode({&quot;came_from&quot;: request.URL}))"
    77     visible="True">
    88   <permission>View</permission>
     
    3232   <permission>View</permission>
    3333  </action>
    34   <action title="Login" action_id="login_student" category="student"
     34  <action title="Student Login" action_id="login_student" category="student"
    3535     condition_expr="not:member"
    3636     url_expr="python:&quot;%s/login_student?%s&quot; % (portal_url, modules[&quot;urllib&quot;].urlencode({&quot;came_from&quot;: request.URL}))"
     
    118118   <permission>Modify portal content</permission>
    119119  </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> 
    120125  <action title="Unchecked Items" action_id="unchecked" category="object"
    121126     condition_expr="member" url_expr="string:./unchecked" visible="True">
     
    128133  <action title="Apply for PUME" action_id="apply_admission"
    129134     category="student" condition_expr="not:member"
    130      url_expr="string:${portal_url}/campus/students/apply_admission"
     135     url_expr="string:${portal_url}/apply_admission"
    131136     visible="True">
    132137   <permission>View</permission>
  • WAeUP_SRP/trunk/skins/waeup_default/campus_index.py

    r542 r543  
    1 ## Script (Python) "home_index"
     1## Script (Python) "campus_index"
    22##bind container=container
    33##bind context=context
     
    1919
    2020if pm.isAnonymousUser():
    21     return redirect("%s/campus_anonymous_view" % request.get('URL1')) 
     21    return redirect("%s/campus_anonymous_view" % request.get('URL1'))
    2222
    2323campus = context.portal_catalog(meta_type = "University")[-1].getObject()
     
    2929if isManager:
    3030    return redirect("%s/campus_manager_view" % campus.absolute_url())
    31    
     31
    3232if isStudent:
    3333    return redirect("%s/students_index" % campus.students.absolute_url())
  • WAeUP_SRP/trunk/skins/waeup_default/index_html.py

    r542 r543  
    2727
    2828if isManager:
    29     return redirect("%s/srp_manager_view" % absolute_url())
     29    return redirect("%s/srp_manager_view" % context.absolute_url())
    3030
    3131if isStudent:
    32     return redirect("%s/srp_anonymous_view" % absolute_url())
     32    return redirect("%s/srp_anonymous_view" % context.absolute_url())
    3333
  • WAeUP_SRP/trunk/skins/waeup_default/login_staff.pt

    r542 r543  
    66      tal:define="username request/username | request/__ac_name | nothing">
    77
    8   <h3 i18n:translate="">Student Login</h3>
     8  <h3 i18n:translate="">Staff Login</h3>
    99
    1010  <form id="" action="" method="post"
    1111        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 see
    15   <a href="" tal:attributes="href string:http://waeup.org">waeup.org</a>. </p>
    1612 
    1713  <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  
    11<tal:block define="item nocall:options/context_obj;
    22                   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'];">
    46
    5 <span tal:condition="python:path('info/review_state')!='work'">
     7<span tal:condition="python:path('info/review_state') in status_list ">
    68  Status: <span tal:content="info/review_state" />
    79</ span>
  • WAeUP_SRP/trunk/skins/waeup_pins/batch_index_html.pt

    r535 r543  
    77      </span>
    88      <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 />
    1012        <span tal:omit-tag=""
    1113              tal:content="structure python: info['batch_doc'].render(proxy=info['batch_doc'],
     
    1315              )"
    1416              />
     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     
    1525      </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
    2227    </metal:main>
    2328  </metal:body>
  • WAeUP_SRP/trunk/skins/waeup_pins/pins_index_html.pt

    r535 r543  
    55      </span> 
    66      <span tal:condition="not:isAnon">
     7        <h3>PIN Batches</h3>
     8        <br />
    79        <table tal:define="batches python: context.objectValues()">
    810          <tr tal:repeat="batch batches">
  • WAeUP_SRP/trunk/skins/waeup_student/apply_admission.py

    r511 r543  
    4848    return context.REQUEST.RESPONSE.redirect("%s/logged_in?__ac_name=%s&__ac_password=%s&pin=%s"
    4949          % (context.absolute_url(),s_id,pin.split('-')[2],pin))
    50    
     50
    5151##    jamb_id = ds.get('jamb_reg_no')
    5252##    student = context.getContent().getStudentByRegNo(jamb_id)
     
    6868
    6969# 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
     73return
    7274
    7375
  • WAeUP_SRP/trunk/skins/waeup_student/students_index.py

    r542 r543  
    1919
    2020if pm.isAnonymousUser():
    21     return redirect("%s/campus_anonymous_view" % context.campus.absolute_url())
     21    return redirect("%s/srp_anonymous_view" % context.absolute_url())
    2222
    2323
     
    2929
    3030if isManager:
    31     return redirect("%s/academics_contents" % campus.students.absolute_url())
     31    return redirect("%s/students_manager_view" % campus.students.absolute_url())
    3232if isStudent:
    3333    info = context.getStudentInfo()
  • WAeUP_SRP/trunk/skins/waeup_student/students_manager_view.pt

    r535 r543  
    99      </span>
    1010      <span tal:condition="isManager">
     11      <h3>All Students</h3>
     12        <br />
    1113        <table tal:define="students python: context.objectValues()">
    1214          <tr tal:repeat="student students">
Note: See TracChangeset for help on using the changeset viewer.