Ignore:
Timestamp:
21 Aug 2007, 16:02:50 (17 years ago)
Author:
Henrik Bettermann
Message:

used PIN list fixed
size of reg_no widget changed

Location:
WAeUP_SRP/trunk/skins/waeup_pins
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_pins/batch_view.pt

    r1540 r2140  
    3737              <a tal:condition="pin/student_url" href="" tal:content="pin/student"
    3838                 tal:attributes="href pin/student_url"></a>
    39               <span tal:condition="not: pin/student_url" tal:content="pin/student" />
     39              <span tal:condition="python: not pin['student_url'] and not pin['student'].startswith('disabled')" tal:content="pin/student" />
    4040            </td>
    4141          </tr>
  • WAeUP_SRP/trunk/skins/waeup_pins/pins_view.pt

    r1064 r2140  
    2525            <td tal:content="pin/pin" />
    2626            <td tal:content="pin/student_id" />
    27             <td tal:condition="pin/student_url">
     27            <td>
    2828              <a tal:condition="pin/student_url" href="" tal:content="pin/student"
    2929                 tal:attributes="href pin/student_url"></a>
    30               <span tal:condition="not: pin/student_url" tal:content="pin/student" />
     30              <span tal:condition="python: not pin['student_url'] and not pin['student'].startswith('disabled')" tal:content="pin/student" />
    3131            </td>
    3232          </tr>
  • WAeUP_SRP/trunk/skins/waeup_pins/search_pins.py

    r1853 r2140  
    6464            else:
    6565                item['pin'] = "%s%s****%s" % (i.prefix_batch,pin[-10:-7],pin[-3:])
    66         if len(sno)==10 or '/' in sno:
     66       
     67        if sno.startswith('disabled'):
     68            item['student_url'] = None
     69            item['student_id'] = sno
     70        elif len(sno)==10 or '/' in sno:
    6771            #res = context.portal_catalog(SearchableText=sno,portal_type='StudentApplication')
    6872            res = context.students_catalog(jamb_reg_no=sno.upper())
    6973            if len(res) > 0:
    70                 if sno.startswith('disabled'):
    71                     item['student_url'] = None
    72                 else:
    73                     item['student_url'] = "%s/campus/students/%s/application" % (context.portal_url(),res[0].id)
     74                item['student_url'] = "%s/campus/students/%s/application" % (context.portal_url(),res[0].id)
    7475                item['student_id'] = res[0].id
    7576            else:
     
    7778                item['student_id'] = ''
    7879        elif sno:
    79             if sno.startswith('disabled'):
    80                 item['student_url'] = None
    81                 item['student_id'] = ''
    82             else:
    83                 item['student_url'] = '%s/campus/students/%s' % (context.portal_url(),item['student'])
    84                 item['student_id'] = item['student']
     80            item['student_url'] = '%s/campus/students/%s' % (context.portal_url(),item['student'])
     81            item['student_id'] = item['student']
    8582        else:
    8683            item['student_url'] = ''
Note: See TracChangeset for help on using the changeset viewer.