Changeset 2146
- Timestamp:
- 22 Aug 2007, 13:05:07 (17 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_student
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/apply_pume.py
r2141 r2146 63 63 mode = "view_slip" 64 64 logger.info('%s views application slip' % (reg_no)) 65 66 65 res,psm,ds = lt.renderLayout(layout_id= 'application', 67 66 schema_id= 'application', … … 98 97 data = {} 99 98 dm = ds.getDataModel() 100 #set_trace()101 99 for field in context.applicants_catalog.schema(): 102 100 if dm.has_key("%s" % field): 103 101 data[field] = dm.get(field) 104 102 data['reg_no'] = reg_no 105 #set_trace()106 103 if apply_pume: 107 104 if submitted: … … 159 156 ) 160 157 elif edit: 161 #set_trace()162 158 if submitted: 163 159 mode = "view" … … 180 176 181 177 182 183 178 return context.apply_pume_form(rendered = res, 184 179 psm = psm, 185 180 #psm = "%s, %s" % (psm,ds), 186 181 mode = mode, 182 show_submit = bool(data['passport']), 187 183 ds = ds, 188 184 ) -
WAeUP_SRP/trunk/skins/waeup_student/apply_pume_form.pt
r2129 r2146 4 4 jamb options/jamb/getContent|nothing; 5 5 mode options/mode; 6 show_submit options/show_submit|nothing; 6 7 " 7 8 > … … 41 42 <input type="submit" class="standalone" name="apply" 42 43 value="Final Submit" 43 tal:condition="python: mode == 'edit'"44 tal:condition="python: show_submit and mode == 'edit'" 44 45 /> 45 46 <input type="submit"
Note: See TracChangeset for help on using the changeset viewer.