Changeset 7491 for main/waeup.sirp


Ignore:
Timestamp:
20 Jan 2012, 08:09:04 (13 years ago)
Author:
Henrik Bettermann
Message:

Redirect to tab-2 after visiting the upload pages.

Location:
main/waeup.sirp/trunk/src/waeup/sirp/students
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates/basemanagepage.pt

    r7464 r7491  
    33
    44  <ul class="tabs" data-tabs="tabs">
    5     <li class="active"><a href="#tab-1"><span>Base Data</span></a></li>
    6     <li><a href="#tab-2"><span>Passport Picture</span></a></li>
     5    <li tal:attributes="class view/tab1"><a href="#tab-1"><span>Base Data</span></a></li>
     6    <li tal:attributes="class view/tab2"><a href="#tab-2"><span>Passport Picture</span></a></li>
    77  </ul>
    88
    99  <div class="tab-content">
    10     <div id="tab-1" class="active">
     10    <div id="tab-1" tal:attributes="class view/tab1">
    1111      <table class="form-table">
    1212        <tbody>
     
    6464    </div>
    6565
    66     <div id="tab-2">
     66    <div id="tab-2"  tal:attributes="class view/tab2">
    6767      <table class="form-table">
    6868        <tbody>
  • main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates/clearanceeditpage.pt

    r7464 r7491  
    33
    44  <ul class="tabs" data-tabs="tabs">
    5     <li class="active"><a href="#tab-1"><span>Clearance Data</span></a></li>
    6     <li><a href="#tab-2"><span>Scans</span></a></li>
     5    <li tal:attributes="class view/tab1"><a href="#tab-1"><span>Clearance Data</span></a></li>
     6    <li tal:attributes="class view/tab2"><a href="#tab-2"><span>Scans</span></a></li>
    77  </ul>
    88  <div class="tab-content">
    9     <div id="tab-1" class="active">
     9    <div id="tab-1" tal:attributes="class view/tab1">
    1010      <table class="form-table">
    1111        <tbody>
     
    3939    </div>
    4040
    41     <div id="tab-2">
     41    <div id="tab-2" tal:attributes="class view/tab2">
    4242      <table class="form-table">
    4343        <tbody>
  • main/waeup.sirp/trunk/src/waeup/sirp/students/viewlets.py

    r7459 r7491  
    278278    grok.template('fileupload')
    279279    grok.require('waeup.uploadStudentFile')
    280     tab_redirect = ''
     280    tab_redirect = '?tab2'
    281281    mus = 1024 * 150
    282282
     
    337337    mus = 1024 * 50
    338338    download_name = u'passport.jpg'
    339     tab_redirect = '#tab-2'
     339    tab_redirect = '?tab2'
    340340
    341341class PassportUploadEdit(PassportUploadManage):
     
    364364    mus = 1024 * 150
    365365    download_name = u'birth_certificate'
    366     tab_redirect = '#tab-2'
     366    tab_redirect = '?tab2'
    367367
    368368class AcceptanceLetterDisplay(FileDisplay):
     
    385385    mus = 1024 * 150
    386386    download_name = u'acceptance_letter'
    387     tab_redirect = '#tab-2'
     387    tab_redirect = '?tab2'
    388388
    389389class Image(grok.View):
Note: See TracChangeset for help on using the changeset viewer.