Changeset 182 for waeup_product/trunk/skins/waeup_student
- Timestamp:
- 16 Nov 2005, 23:30:12 (19 years ago)
- Location:
- waeup_product/trunk/skins/waeup_student
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup_product/trunk/skins/waeup_student/eligibility.py
r179 r182 9 9 rset = request.set 10 10 fget = request.form.get 11 form = request.form 11 12 fhas = request.form.has_key 12 13 … … 18 19 sr = eli.schoolresults 19 20 20 res,psm,ds = lt.renderLayout(layout_id= 'student_schoolresults', 21 validate = fhas('add') or fhas('change') or fhas('delete') 22 23 form['widget__jamb_results'] = eli.jamb_results 24 form['widget__jamb_aggregate'] =eli.jamb_aggregate 25 form['widget__faculty'] =eli.faculty 26 form['widget__course'] =eli.course 27 res,psm,ds = lt.renderLayout(layout_id= 'student_eligibility_edit', 21 28 schema_id= 'student_eligibility', 22 29 context=context, … … 29 36 30 37 inr = 0 38 rset('ds',ds) 31 39 if fhas('add') and (fget('type') or fget('subject') or fget('result')): 32 40 sr.append((fget('type'),fget('subject'),fget('result'))) … … 48 56 else: 49 57 psm = '' 50 eli.edit(mapping={'schoolresults': sr}) 51 res,dummy,ds = lt.renderLayout(layout_id= 'student_schoolresults', 58 ds.set('schoolresults',sr) 59 eli.edit(mapping={'schoolresults':sr, 60 'jamb_aggregate': fget('widget__aggregate'), 61 }) 62 #eli.edit(mapping=ds) 63 res,dummy,ds = lt.renderLayout(layout_id= 'student_eligibility_edit', 52 64 schema_id= 'student_eligibility', 53 65 context=context, -
waeup_product/trunk/skins/waeup_student/layout_eligibility_create.pt
r165 r182 10 10 edit_form python:ti and ti.getActionById('edit', 'cpsdocument_edit_form') or 'cpsdocument_edit_form'; 11 11 metadata_form python:ti and ti.getActionById('metadata', 'cpsdocument_metadata') or 'cpsdocument_metadata'; 12 formaction string:check_admission_form;12 formaction options/formaction; 13 13 first_layout options/first_layout|python:0; 14 14 last_layout options/last_layout|python:0; 15 15 is_flexible options/is_flexible; 16 16 cpsmcat nocall:here/translation_service; 17 results options/schoolresults; 17 18 " 18 19 > 19 <form action='eligibility' method='post' 20 <form action='eligibility' method='post' tal:attributes="action formaction" 20 21 enctype='multipart/form-data' class='workflow'> 21 22 <div class='group'> … … 76 77 </tr> 77 78 </table> 78 <input type="submit" class="standalone" name="cpsdocument_edit_button" value="submit" /> 79 </div> 80 </div> 79 <table cellspacing="0" cellpadding="2" border="0" width="100%" tal:condition="results|nothing"> 80 <tr> 81 <td align="left" valign="top"> 82 83 </td> 84 <td align="left" valign="top"> 85 <div class="label">Type</div> 86 </td> 87 <td align="left" valign="top"> 88 <div class="label">Subject</div> 89 </td> 90 <td align="left" valign="top"> 91 <div class="label">Result</div> 92 </td> 93 </tr> 94 <span tal:repeat="row results" tal:omit-tag=""> 95 <tr tal:define="rindex repeat/row/index"> 96 <td align="left" valign="top"> 97 <input type="checkbox" name="keys:list" value="100" tal:attributes="value string:${repeat/row/index}"/> 98 </td> 99 <td align="left" valign="top"> 100 <div class="field"> 101 <input type="text" name="key_0" value="100" size="20" 102 tal:attributes="name string:type_${rindex};value python:row[0]" /> 103 </div> 104 </td> 105 <td align="left"> 106 <div class="field"> 107 <input type="text" name="label_0" value="Year 1 (100 Level)" size="40" 108 tal:attributes="name string:subject_${rindex};value python:row[1]" /> 109 </div> 110 </td> 111 <td align="left"> 112 <div class="field"> 113 <input type="text" name="msgid_0" value="" size="10" 114 tal:attributes="name string:result_${rindex};value python:row[2]" /> 115 </div> 116 </td> 117 </tr> 118 </span> 119 <tr> 120 <td align="left" colspan="3"> 121 <input class="standalone" type="submit" name="change" value=" Change " /> 122 <input class="standalone" type="submit" name="delete" value=" Delete " /> 123 </td> 124 </tr> 125 </table> 126 <table cellspacing="0" cellpadding="2" border="0" width="100%"> 127 <tr> 128 <td align="left" valign="top" colspan="2"> 129 <div>Add a new postprimary school result</div> 130 </td> 131 </tr> 132 <tr> 133 <td align="left" valign="top"> 134 135 </td> 136 <td align="left" valign="top"> 137 <div class="label">Type</div> 138 </td> 139 <td align="left" valign="top"> 140 <div class="label">Subject</div> 141 </td> 142 <td align="left" valign="top"> 143 <div class="label">Result</div> 144 </td> 145 </tr> 146 <tr> 147 <td align="left" valign="top"> 148 149 </td> 150 <td align="left" valign="top"> 151 <div class="field"> 152 <input type="text" name="type" value="" size="20" /> 153 </div> 154 </td> 155 <td align="left"> 156 <div class="field"> 157 <input type="text" name="subject" value="" size="40" /> 158 </div> 159 </td> 160 <td align="left"> 161 <div class="field"> 162 <input type="text" name="result" value="" size="10" /> 163 </div> 164 </td> 165 </tr> 166 <tr> 167 <td align="left" colspan="3"> 168 <input class="standalone" type="submit" name="add" value=" Add " /> 169 </td> 170 </tr> 171 </table> 81 172 </form> 82 173 </metal:block> -
waeup_product/trunk/skins/waeup_student/process_waeup_login.py
r179 r182 53 53 context.notifyCPSDocumentCreation(ob=pd) 54 54 55 return response.redirect("%s /personal_addon" % ma.absolute_url())55 return response.redirect("%s" % ma.absolute_url()) 56 56 #return ma.personal_addon(REQUEST=context.REQUEST) 57 57
Note: See TracChangeset for help on using the changeset viewer.