Changeset 803 for WAeUP_SRP/trunk


Ignore:
Timestamp:
9 Nov 2006, 08:19:43 (18 years ago)
Author:
joachim
Message:

application_edit etc. like clearance_edit

Location:
WAeUP_SRP/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/Widgets.py

    r796 r803  
    341341    def validate(self, datastructure, **kw): ###(
    342342        """Validate datastructure and update datamodel."""
    343         #import pdb;pdb.set_trace()
     343        import pdb;pdb.set_trace()
    344344        widget_id = self.getWidgetId()
    345345        v = datastructure[widget_id]
     
    347347        s = datastructure[widget_id+'_s'].strip()
    348348        g = datastructure[widget_id+'_g'].strip()
    349         if not s and g:
     349        if not type(v) is type({}):
     350            pass
     351        elif not s and g:
    350352            err = "no subject grad for subject %s " % s
    351353        elif v.has_key(s):
  • WAeUP_SRP/trunk/skins/waeup_custom/logged_in.py

    r796 r803  
    5353            if info['review_state'] in ("student_created","admitted"):
    5454                #student.content_status_modify(workflow_action="enter_clearance_pin")
    55                 wftool.doActionFor(info['app'],'open',dest_container=info['app'])
     55                wftool.doActionFor(info['app'],'open')
     56                #wftool.doActionFor(info['pume'],'close')
    5657                if info['pume'] is not None:
    57                   wftool.doActionFor(info['pume'],'close',dest_container=info['pume'])
     58                  wftool.doActionFor(info['pume'],'close')
    5859                da = {}
    5960                pin = request.get('pin')
  • WAeUP_SRP/trunk/skins/waeup_student/application_edit_form.pt

    r796 r803  
    11<metal:html tal:define="info context/getStudentInfo;
    2             rendered_main python:info['app_doc'].render(layout_mode='edit',
    3                       proceed = request.get('proceed'),
     2            rendered_main python:info['app_doc'].render(
     3                      layout_mode='edit',
    44                      schema_id = 'student_application',
    55                      layout_id = 'student_application_fe',
    6                       request=request, proxy=info['app'],
    7                       use_session=True, no_form=True)">
     6                      request=request,
     7                      use_session=True,);
     8           form_action string:application_edit;
     9            proceed request/proceed|nothing;
     10           edition python:True;
     11           creation python:False;
     12           metadata nothing;
     13            ">
    814  <metal:body use-macro="here/waeup_content_master/macros/master">
    9  
    1015    <metal:block fill-slot="header">
    1116      <a href=""
     
    1924 
    2025    <metal:main fill-slot="main">
     26    <form action="ACTION" method="post" id="editForm"
     27          enctype="multipart/form-data" class="workflow"
     28          tal:attributes="action form_action">
    2129      <span tal:condition="not: info">
    2230        <metal:block use-macro="here/error_not_found/macros/not_found" />
     
    2533        <span tal:omit-tag="" tal:replace="structure rendered_main"/>
    2634      </span>
     35      <input type="submit" class="standalone" name="cpsdocument_edit_button"
     36             value="Save"
     37             id="cpsdocument_edit_button"
     38             tal:condition="not:creation" />
     39      <input type="submit" class="standalone" name="proceed"
     40             value="proceed"
     41             id="cpsdocument_edit_and_view_button"
     42             tal:condition="proceed"
     43             tal:attributes="value proceed"/>
     44    </form>
    2745    </metal:main>
    2846  </metal:body>
  • WAeUP_SRP/trunk/skins/waeup_student/defer_admission.py

    r801 r803  
    2424info['app_doc'].edit(mapping={'defer_date':current,})
    2525wf.doActionFor(info['student'],'defer')
    26 return context.defer_view(info=info)
     26return context.defersvn_view(info=info)
  • WAeUP_SRP/trunk/skins/waeup_student/getStudentInfo.py

    r801 r803  
    9595
    9696items = []
    97 s_edit_links = {'StudentApplication': 'application_edit',
     97s_edit_links = {'StudentApplication': 'application_edit_form',
    9898              'StudentAccommodation': '',
    99               'StudentClearance': 'clearance_edit',
     99              'StudentClearance': 'clearance_edit_form',
    100100              'StudentPersonal': '',
    101101              }
  • WAeUP_SRP/trunk/skins/waeup_student/layout_application_edit.pt

    r799 r803  
    1515  widgets python:context.getRenderedWidgets(layout);
    1616  ">
    17   <form action="" id="editForm" method="post"
    18         enctype="multipart/form-data" class="workflow"
    19         tal:attributes="action formaction"
    20         >
    2117  <table class="layoutDefault" summary="Form layout"
    2218         tal:condition="layout/rows">
     
    116112    </tr>
    117113  </table>
    118   <br />
    119   <input type="submit" class="standalone" name="cpsdocument_edit_button"
    120          value="Save"
    121          id="cpsdocument_edit_button"
    122          tal:condition="not:creation" />
    123   <input type="submit" class="standalone" name="proceed"
    124          value="proceed"
    125          id="cpsdocument_edit_and_view_button"
    126          tal:condition="proceed"
    127          tal:attributes="value proceed"/>
    128   <input type="submit"
    129          class="standalone"
    130          name="cpsdocument_create_button"
    131          value="apply"
    132          tal:attributes="value options/button"
    133          tal:condition="creation" />
    134 
    135 </form>
    136114</metal:block>
Note: See TracChangeset for help on using the changeset viewer.