Changeset 789 for WAeUP_SRP/trunk/skins
- Timestamp:
- 8 Nov 2006, 10:50:36 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_student
- Files:
-
- 3 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/clearance_edit.py
r788 r789 41 41 psm = "" 42 42 args = {} 43 action = "/clearance_edit_ view"43 action = "/clearance_edit_form" 44 44 if cpsdocument_edit_button: 45 45 if is_valid: -
WAeUP_SRP/trunk/skins/waeup_student/clearance_edit_form.pt
r788 r789 5 5 schema_id='student_clearance', 6 6 layout_id='student_clearance_fe', 7 layout_mode='edit',); 7 layout_mode='edit', 8 use_session=True); 8 9 form_action string:clearance_edit; 9 10 edition python:True; … … 12 13 "> 13 14 <metal:block define-macro="edit_form"> 14 <metal:block use-macro="here/ content_lib_master/macros/master">15 <metal:block use-macro="here/waeup_content_master/macros/master"> 15 16 <metal:block fill-slot="style_slot"> 16 17 <link rel="Stylesheet" type="text/css" href="" … … 36 37 <script type="text/javascript" src="cpsdocument.js" 37 38 tal:attributes="src string:${base_url}cpsdocument.js"></script> 38 <tal:block condition="python:modules['Products.CPSUtil.integration'].isProductPresent('Products.FCKeditor')">39 <script type="text/javascript">40 var popup_editor_form = 'popup_fckeditor_form';41 var width = 640;42 var height = 520;43 </script>44 </tal:block>45 <tal:block condition="python:modules['Products.CPSUtil.integration'].isProductPresent('Products.Epoz')">46 <script type="text/javascript">47 var popup_editor_form = 'popup_rte_form';48 var width = 640;49 var height = 480;50 </script>51 </tal:block>52 <script type="text/javascript">53 function popup_rte(input_id, label_edit) {54 var args, value;55 value = document.getElementById(input_id).value;56 args = '?input_id='+input_id+'&label_edit='+escape(label_edit);57 str_window_features = 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,dependent=1,width=' + width + ',height=' + height;58 popup = window.open(popup_editor_form + args, input_id, str_window_features);59 if (!popup.opener) {60 popup.opener = window;61 }62 return false;63 }64 </script>65 39 </metal:block> 66 40 </metal:block> 67 41 68 <h1> Edit your clearance Data</h1> 42 <metal:block fill-slot="header"> 43 <metal:block define-slot="header"> 44 <h3> Edit your clearance Data</h3> 45 </metal:block> 46 </metal:block> 47 69 48 70 49 <metal:block fill-slot="main"> … … 81 60 </div> 82 61 </div> 83 <metal:block use-macro="here/cpsdocument_edit_buttons/macros/buttons"/>84 62 </div> 63 <input type="submit" class="standalone" name="cpsdocument_edit_button" 64 value="Save" 65 id="cpsdocument_edit_button" 66 tal:condition="not:creation" /> 85 67 </form> 86 68 <div id="ajax_psm" style="display:none"> -
WAeUP_SRP/trunk/skins/waeup_student/layout_clearance_edit.pt
r788 r789 14 14 widgets python:context.getRenderedWidgets(layout); 15 15 "> 16 <form action="" id="editForm" method="post"17 enctype="multipart/form-data" class="workflow"18 tal:attributes="action formaction"19 >20 16 <table class="layoutDefault" summary="Form layout" 21 17 tal:condition="layout/rows"> 22 18 <span tal:repeat="row python: layout['rows']" valign="top" > 23 19 <span tal:repeat="cell row"> 24 < trtal:define="widget cell/widget;20 <span tal:define="widget cell/widget; 25 21 wid widget/getWidgetId; 26 22 err python:ds.getError(wid); … … 32 28 tal:condition="python: wid != 'passport'" 33 29 > 30 <tr tal:condition="widget/description|nothing" class="even ajaxtd"> 31 <th colspan="5" align="center"><h3 tal:replace="widget/description" /></th> 32 </tr> 33 <tr> 34 34 <div tal:attributes="class widget_css_class; 35 35 id python:widget.getHtmlWidgetId()+'_widget';" … … 67 67 </tr> 68 68 </span> 69 </span> 69 70 </span> 70 71 </table> 71 <br />72 <input type="submit" class="standalone" name="cpsdocument_edit_button"73 value="Save"74 id="cpsdocument_edit_button"75 tal:condition="not:creation" />76 <input type="submit" class="standalone" name="proceed"77 value="apply for admission"78 id="cpsdocument_edit_and_view_button"79 tal:condition="proceed"80 tal:attributes="value proceed"/>81 <input type="submit"82 class="standalone"83 name="cpsdocument_create_button"84 value="apply"85 tal:attributes="value options/button"86 tal:condition="creation" />87 88 </form>89 72 </metal:block> -
WAeUP_SRP/trunk/skins/waeup_student/student_index.py
r788 r789 35 35 return redirect("%s/application_edit" % info['app'].absolute_url()) 36 36 elif state in ('admitted',): 37 return redirect("%s/ defer_view" % student.absolute_url())37 return redirect("%s/accept_aadmission_form" % student.absolute_url()) 38 38 elif state == 'clearance_pin_entered': 39 39 return redirect("%s/student_view" % info['clear'].absolute_url())
Note: See TracChangeset for help on using the changeset viewer.