Changeset 1595 for WAeUP_SRP/trunk/skins/waeup_student
- Timestamp:
- 19 Mar 2007, 21:42:40 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_student
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/contact_student_form.pt
r1575 r1595 28 28 <input type="hidden" name="probtype" type="text" id="probtype" 29 29 tal:attributes="value subject"/> 30 <input type="hidden" name="action" type="text" id="action" 31 tal:attributes="value continue"/> 30 32 31 33 <table width="100%" border="0" cellspacing="5" cellpadding="0"> -
WAeUP_SRP/trunk/skins/waeup_student/mail2student.py
r1575 r1595 5 5 ##bind script=script 6 6 ##bind subpath=traverse_subpath 7 ##parameters=co_name=None,co_email=None,student_email=None,probtype=None,commt=None 7 ##parameters=co_name=None,co_email=None,student_email=None,probtype=None,commt=None, action=None 8 8 ##title= 9 9 ## … … 27 27 #prop.email_from_address should be used for To: 28 28 REQUEST = context.REQUEST 29 url_tuple = REQUEST.HTTP_REFERER.split('?') 30 if len(url_tuple) == 2: 31 url_tuple[1] ='portal_status_message=Your message has been sent!' 32 else: 33 url_tuple.append('portal_status_message=Your message has been sent!') 34 redirect_url = "?".join(url_tuple) 35 REQUEST.set('rurl', redirect_url) # to see the result in the error log 29 30 #url_tuple = REQUEST.HTTP_REFERER.split('?') 31 #if len(url_tuple) == 2: 32 # url_tuple[1] ='portal_status_message=Your message has been sent!' 33 #else: 34 # url_tuple.append('portal_status_message=Your message has been sent!') 35 #redirect_url = "?".join(url_tuple) 36 #REQUEST.set('rurl', redirect_url) # to see the result in the error log 37 36 38 msg = message % ( 37 39 co_name, … … 47 49 mhost.send(msg) 48 50 49 REQUEST = context.REQUEST50 RESPONSE = REQUEST.RESPONSE51 51 52 RESPONSE.redirect(redirect_url) 52 #REQUEST = context.REQUEST 53 #RESPONSE = REQUEST.RESPONSE 54 #RESPONSE.redirect(redirect_url) 55 56 args = {} 57 psm = "Your message has been sent!" 58 args['portal_status_message'] = psm 59 url = context.absolute_url() + '/' + action + '?' + urlencode(args) 60 return REQUEST.RESPONSE.redirect(url) 61 62 63 64 -
WAeUP_SRP/trunk/skins/waeup_student/study_level_view.pt
r1590 r1595 142 142 <input tal:condition="python: review_state in ('courses_registered', 'courses_validated',)" type="submit" name="reject_courses:method" 143 143 class="context" value="Reject" /> 144 145 <input type="hidden" name="action_after_validate" type="text" id="action_after_validate" 146 tal:attributes="value string:/study_level_view"/> 147 <input type="hidden" name="action_after_reject" type="text" id="action_after_reject" 148 tal:attributes="value string:/contact_student_form"/> 144 149 145 150 </td>
Note: See TracChangeset for help on using the changeset viewer.