Ignore:
Timestamp:
5 Sep 2006, 17:12:01 (18 years ago)
Author:
joachim
Message:

added app_ac_date

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

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_student/apply_admission.py

    r481 r482  
    55return html renderer + psm
    66"""
     7import DateTime
     8current = DateTime.DateTime()
     9
     10
    711type_name = 'StudentApplication'
    812ti = context.portal_types[type_name]
     
    7983da['app_ac_batch_no'] = ds.get('app_ac_batch_no')
    8084da['app_ac_pin'] = ds.get('app_ac_pin')
     85da['app_ac_date'] = current
    8186apdoc.edit(mapping = da)
    8287# now display the passport form with jamb-data readonly
  • WAeUP_SRP/trunk/skins/waeup_student/layout_student_edit.pt

    r481 r482  
    103103</table>
    104104
    105 <tal:block condition="is_flexible">
     105<tal:block condition="python:0 and is_flexible">
    106106<div tal:define="flexible_widgets options/flexible_widgets">
    107107  <input type="hidden" name="layout_id" value="."
     
    167167    </dl>
    168168  </tal:block>
     169
    169170  <input type="submit" class="standalone" name="cpsdocument_edit_button"
    170171    value="button_change" i18n:attributes="value" id="cpsdocument_edit_button"
     
    173174    value="button_change_and_view" i18n:attributes="value"
    174175    id="cpsdocument_edit_and_view_button"
    175     tal:condition="not:creation" />
     176    tal:condition="python:0 and not creation" />
    176177  <input type="submit"
    177178         class="standalone"
  • WAeUP_SRP/trunk/skins/waeup_student/student_edit.py

    r479 r482  
    5353            if cpsdocument_edit_and_view_button is not None:
    5454                action = ''
    55             psm = 'psm_content_changed'
     55            psm = 'passport image uploaded'
    5656            args = {}
     57            action = "/view"
    5758        else:
    5859            psm = 'psm_content_error'
    5960            args = getFormUidUrlArg(REQUEST)
    6061    else:
     62        args = {}
    6163        psm = "Application applied waiting for results"
    6264        action = "/view"
Note: See TracChangeset for help on using the changeset viewer.