Changeset 2579 for WAeUP_SRP/base


Ignore:
Timestamp:
8 Nov 2007, 10:14:35 (17 years ago)
Author:
Henrik Bettermann
Message:

Ziwschenversion

Ich arbeite noch an layout_application_edit.pt

Location:
WAeUP_SRP/base
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/WAeUPTables.py

    r2561 r2579  
    517517
    518518        records = self.searchResults(student = student_id)
    519         if len(records) > 0 and prefix in ('CLR','APP'):
    520             for r in records:
    521                 if r.pin != uid and r.prefix_batch.startswith(prefix):
    522                     return -2
     519        #if len(records) > 0 and prefix in ('CLR','APP'):
     520        #    for r in records:
     521        #        if r.pin != uid and r.prefix_batch.startswith(prefix):
     522        #            return -2
    523523        records = self.searchResults({"%s" % self.key : uid})
    524524        if len(records) > 1:
  • WAeUP_SRP/base/WAeUPTool.py

    r2576 r2579  
    658658            password = pin_parts[2]
    659659            self.makeStudentMember(student_id,password = password)
    660         else:
    661             self.makeStudentMember(student_id)
    662660        student_object.manage_setLocalRoles(student_id, ['Owner',])
    663661        #logger.info("creating %s reg_no %s" % (student_id,brain.reg_no))
  • WAeUP_SRP/base/skins/cps_custom/logged_in.py

    r2489 r2579  
    149149        # 1. add pin and application date to app_doc
    150150
    151         if s_review_state in ("student_created","admitted") and\
    152                              a_review_state == 'created' :
     151        if s_review_state == "student_created":
     152            wftool.doActionFor(student,'admit')
     153            s_review_state = 'admitted'       
     154
     155        if s_review_state == "admitted" and a_review_state == 'created':
    153156            wftool.doActionFor(student_app,'open')
    154157            #if student_pume is not None:
     
    231234                    lnr = context.getLevelFromResultsCosCode(has_results)
    232235                    dsc['current_level'] = "%d00" % lnr
    233                 elif not has_level and s_review_state == 'school_fee_paid':     
     236                elif not has_level and s_review_state == 'school_fee_paid':
    234237                    lnr = context.getLevelFromResultsCosCode(has_results)
    235238                    cv = context.getVerdict(has_results[0].Verdict)[0]
  • WAeUP_SRP/base/skins/waeup_default/waeup_edit_form.pt

    r2042 r2579  
    109109        </div>
    110110
    111         <tal:block condition="python: 0 and not creation">
    112           <div class="tooltipArea" style="visibility: hidden;"
    113                id="transition_comments_help"
    114                onclick="showElement(false, 'transition_comments_help')"
    115                i18n:translate="help_transition_comments_modification">
    116             In this field you can give the reason for the modification
    117             on this document. Your comments may be used to notify other users.
    118           </div>
    119           <dl>
    120             <dt><label for="comments"
    121                        i18n:translate="transition_comments_modification"
    122                        >Reason of the modification</label>
    123               <button type="button" class="tooltipControl"
    124                       onclick="toggleElementVisibility('transition_comments_help')"> ? </button>
    125             </dt>
    126             <dd>
    127               <textarea name="comments" id="comments" cols="60" rows="3"
    128                         tal:content="nothing">
    129               </textarea>
    130             </dd>
    131           </dl>         
    132         </tal:block>
    133111        <metal:block use-macro="python:path('context/%s_edit_buttons/macros/buttons' % form_type)"/>
    134112        </div>
  • WAeUP_SRP/base/skins/waeup_layout/layout_application_edit.pt

    r2243 r2579  
    1 <metal:block define-macro="default_edit"
     1<metal:define tal:define="isStaff context/isStaff;
     2                          isStudent context/isStudent;">
     3
     4<metal:block tal:condition="isStaff">             
     5<metal:block use-macro="here/layout_waeup_edit/macros/default_edit"/>             
     6</metal:block>       
     7
     8
     9<metal:block define-macro="application_student_edit"
     10  tal:condition="isStudent"
    211  tal:define="layout options/layout;
    312  ds options/datastructure;
     
    817  proceed options/proceed|nothing;
    918  widgets python:context.getRenderedWidgets(layout);
    10   ">
     19  fields python:( 'app_email',
     20                  'app_mobile',)">
    1121  <table class="layoutDefault" summary="Form layout"
    1222         tal:condition="layout/rows">
     
    107117  </table>
    108118</metal:block>
     119</metal:define>
  • WAeUP_SRP/base/skins/waeup_student/admission_form.pt

    r1808 r2579  
    3030            tal:content="structure python: info['app_doc'].render(proxy=info['app_doc'],
    3131            layout_mode='view_info',
    32             layout_id='student_application_fe')"
     32            layout_id='student_application')"
    3333            />
    3434
  • WAeUP_SRP/base/skins/waeup_student/admission_slip.pt

    r1977 r2579  
    2020            tal:content="structure python: info['app_doc'].render(proxy=info['app_doc'],
    2121            layout_mode='view_info',
    22             layout_id='student_application_fe')"
     22            layout_id='student_application')"
    2323            />
    2424
  • WAeUP_SRP/base/skins/waeup_student/application_edit.py

    r2390 r2579  
    3939is_valid, ds = app_doc.validate(request=REQUEST,
    4040                                schema_id = 'student_application',
    41                                 layout_id = 'student_application_fe',
     41                                layout_id = 'student_application',
    4242                                proxy=app,
    4343                                use_session=False)
  • WAeUP_SRP/base/skins/waeup_student/clearance_slip.pt

    r1737 r2579  
    1414              tal:content="structure python: info['app_doc'].render(proxy=info['app_doc'],
    1515              layout_mode='view_info',
    16               layout_id='student_application_fe')"
     16              layout_id='student_application')"
    1717              />       
    1818             
  • WAeUP_SRP/base/skins/waeup_student/course_registration_slip.pt

    r2489 r2579  
    3131            tal:content="structure python: info['app_doc'].render(proxy=info['app_doc'],
    3232            layout_mode='view_info',
    33             layout_id='student_application_fe')"
     33            layout_id='student_application')"
    3434            />           
    3535      <table  cellpadding="2" cellspacing="0">
Note: See TracChangeset for help on using the changeset viewer.