Changeset 832 for WAeUP_SRP/trunk
- Timestamp:
- 10 Nov 2006, 16:52:23 (18 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/profiles/default/layouts/student_clearance_fe.xml
r826 r832 123 123 <property name="label">Results</property> 124 124 <property name="label_edit">Results</property> 125 <property name="readonly_layout_modes"/> 126 <property name="hidden_layout_modes"/> 125 <property name="hidden_layout_modes"> 126 <element value="create"/> 127 </property> 127 128 <property name="hidden_readonly_layout_modes"/> 128 129 </widget> … … 349 350 <property name="label_edit">Results</property> 350 351 <property name="readonly_layout_modes"/> 351 <property name="hidden_layout_modes"/> 352 <property name="hidden_layout_modes"> 353 <element value="create"/> 354 </property> 352 355 <property name="hidden_readonly_layout_modes"/> 353 356 </widget> … … 661 664 <property name="label_edit">Results</property> 662 665 <property name="readonly_layout_modes"/> 663 <property name="hidden_layout_modes"/> 666 <property name="hidden_layout_modes"> 667 <element value="create"/> 668 </property> 664 669 <property name="hidden_readonly_layout_modes"/> 665 670 </widget> -
WAeUP_SRP/trunk/skins/waeup_student/clearance_edit.py
r805 r832 5 5 ##bind script=script 6 6 ##bind subpath=traverse_subpath 7 ##parameters=REQUEST,proceed=None, cpsdocument_edit_button=None, action=None7 ##parameters=REQUEST,proceed=None, cpsdocument_edit_button=None, final_submit=None, action=None 8 8 ##title= 9 9 # $Id$ … … 25 25 # Validate the document and write it if it's valid 26 26 # (We don't call getEditableContent here, validate does it when needed.) 27 wftool = context.portal_workflow 27 28 info = context.getStudentInfo() 28 29 … … 33 34 clear_doc = info['clear_doc'] 34 35 state = context.getStudentInfo()['review_state'] 36 if final_submit: 37 wftool.doActionFor(info['clear'],'close') 38 wftool.doActionFor(info['student'],'request_clearance') 39 return REQUEST.RESPONSE.redirect("%s/student_index" % info['url']) 40 35 41 is_valid, ds = clear_doc.validate(request=REQUEST, 36 42 schema_id = 'student_clearance', … … 45 51 if is_valid: 46 52 psm = 'Content changed.' 53 if ds.get('acknow'): 54 args['final_submit'] = "Finally Submit" 47 55 else: 48 56 args = getFormUidUrlArg(REQUEST) -
WAeUP_SRP/trunk/skins/waeup_student/clearance_edit_form.pt
r826 r832 68 68 id="cpsdocument_edit_button" 69 69 tal:condition="not:creation" /> 70 <input type="submit" class="standalone" 71 tal:condition="request/final_submit|nothing" 72 name="final_submit" 73 tal:attributes="value request/final_submit" 74 /> 70 75 </form> 71 76 <div id="ajax_psm" style="display:none"> -
WAeUP_SRP/trunk/skins/waeup_student/students_index.py
r827 r832 21 21 22 22 students_url = "%s/campus/students" % (context.portal_url.getPortalPath()) 23 #campus = context.portal_catalog(meta_type = "University")[-1].getObject()24 23 25 24 if context.isManager(): … … 29 28 student = info['student'] 30 29 return redirect("%s/student_view" % student.absolute_url()) 31 -
WAeUP_SRP/trunk/skins/waeup_student/widget_waeup_result_render.pt
r807 r832 23 23 </tr> 24 24 <tr> 25 <td> 26 <input type="text" size="10" maxlength="10" 27 tal:attributes="name string:${name}_s; 28 id string:${name}_s; 29 value subject" 30 /> 25 <td><select size="1" 26 tal:attributes="name string:${name}_s; 27 id string:${name}_s;"> 28 <option tal:repeat="sub python:(('','----'),('Math','Math'),('English','English'))" 29 tal:attributes="value python:sub[0]" 30 tal:content="python: sub[1]"> 31 </option> 32 </select> 31 33 </td> 32 34 <td> 33 <input type="text" size="2" maxlength="2" 34 tal:attributes="name string:${name}_g; 35 id string:${name}_g; 36 value grade" 37 /> 35 <select size="1" 36 tal:attributes="name string:${name}_g; 37 id string:${name}_g;"> 38 <option tal:repeat="sub python:(('','-'),('A','A'),('B','B'),('C','C'),('D','D'))" 39 tal:attributes="value python:sub[0]" 40 tal:content="python: sub[1]"> 41 </option> 42 </select> 38 43 </td> 39 44 <td>
Note: See TracChangeset for help on using the changeset viewer.