Changeset 4342 for akademie/plone_themes
- Timestamp:
- 23 Jun 2009, 11:42:29 (16 years ago)
- Location:
- akademie/plone_themes/akademie.theme/akademie/theme/skins/akademie_theme_custom_skins
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
akademie/plone_themes/akademie.theme/akademie/theme/skins/akademie_theme_custom_skins/contact-info.cpt
r4296 r4342 201 201 202 202 203 <div class="field" 204 tal:define="error errors/subject|nothing" 205 tal:attributes="class python:test(error, 'field error', 'field')"> 206 <label> 207 Betreff 208 </label> 209 <span class="fieldRequired" title="Required" 210 i18n:attributes="title title_required;" 211 i18n:translate="label_required">(Required)</span> 212 <div> 213 Bitte geben Sie den Betreff der zu sendenden Nachricht ein. 214 </div> 215 216 <div tal:content="error">Validation error output</div> 217 218 <input type="text" 219 id="subject" 220 name="subject" 221 size="95" 222 value 223 tal:attributes="value request/subject|nothing" 224 /> 225 </div> 226 203 227 204 228 205 <div class="field" -
akademie/plone_themes/akademie.theme/akademie/theme/skins/akademie_theme_custom_skins/send_feedback_site.cpy
r4296 r4342 27 27 28 28 ## make these arguments? 29 subject = REQUEST.get('subject', '') 29 #subject = REQUEST.get('subject', '') 30 subject = 'Akademie EE Kontaktformular'3 30 31 message = REQUEST.get('message', '') 31 32 sender_from_address = REQUEST.get('sender_from_address', '') 32 33 sender_lastname = REQUEST.get('sender_lastname', '') 33 34 sender_firstname = REQUEST.get('sender_firstname', '') 35 36 sender_company = REQUEST.get('sender_company', '') 37 sender_address = REQUEST.get('sender_address', '') 38 sender_city = REQUEST.get('sender_city', '') 39 sender_phone = REQUEST.get('sender_phone', '') 40 41 stud_interesse = REQUEST.get('sender_from_address', '') 42 ab_jahr = REQUEST.get('ab_jahr', '') 43 interesse = REQUEST.get('interesse', '') 44 schwerpunkt = REQUEST.get('schwerpunkt', '') 45 about = REQUEST.get('about', '') 46 frage4 = REQUEST.get('frage4', '') 47 frage1 = REQUEST.get('frage1', '') 48 frage2 = REQUEST.get('frage2', '') 49 frage3 = REQUEST.get('frage3', '') 50 34 51 35 52 send_to_address = portal.getProperty('email_from_address') … … 43 60 variables = {'sender_from_address' : sender_from_address, 44 61 'sender_lastname' : sender_lastname, 45 'sender_firstname' : sender_firstname, 62 'sender_firstname' : sender_firstname, 63 'sender_company' : sender_company, 64 'sender_address' : sender_address, 65 'sender_city' : sender_city, 66 'sender_phone' : sender_phone, 46 67 'url' : url, 47 'subject' : subject, 48 'message' : message 68 # 'subject' : subject, 69 'message' : message, 70 'stud_interesse' : stud_interesse, 71 'ab_jahr' : ab_jahr, 72 'interesse' : interesse, 73 'schwerpunkt' : schwerpunkt, 74 'about' : about, 75 'frage4' : frage4, 76 'frage1' : frage1, 77 'frage2' : frage2, 78 'frage3' : frage3 49 79 } 50 80 … … 63 93 ## clear request variables so form is cleared as well 64 94 REQUEST.set('message', None) 65 REQUEST.set('subject', None)95 #REQUEST.set('subject', None) 66 96 REQUEST.set('sender_from_address', None) 67 97 REQUEST.set('sender_lastname', None) 68 98 REQUEST.set('sender_firstname', None) 99 REQUEST.set('sender_company', None) 100 REQUEST.set('sender_address', None) 101 REQUEST.set('sender_city', None) 102 REQUEST.set('sender_phone', None) 103 REQUEST.set('ab_jahr', None) 104 REQUEST.set('interesse', None) 105 REQUEST.set('schwerpunkt', None) 106 REQUEST.set('about', None) 107 REQUEST.set('frage4', None) 108 REQUEST.set('frage1', None) 109 REQUEST.set('frage2', None) 110 REQUEST.set('frage3', None) 111 69 112 70 113 plone_utils.addPortalMessage(_(u'Mail sent.')) -
akademie/plone_themes/akademie.theme/akademie/theme/skins/akademie_theme_custom_skins/site_feedback_template.pt
r4296 r4342 4 4 portal utool/getPortalObject; 5 5 charset portal/email_charset|string:utf-8; 6 dummy python:request.RESPONSE.setHeader('Content-Type', 'text/plain;;charset=%s' % charset);" 7 ><div i18n:translate="site_feedback_mailtemplate_body" tal:omit-tag=""> 8 You are receiving this mail because <span i18n:name="fullname" tal:omit-tag="" tal:content="options/sender_fullname|nothing" /> 9 <span i18n:name="from_address" tal:omit-tag="" tal:content="options/sender_from_address"/> 10 is sending feedback about the site administered by you at <span i18n:name="url" tal:replace="options/url" />. 11 The message sent was: 6 dummy python:request.RESPONSE.setHeader('Content-Type', 'text/plain;;charset=%s' % charset);"> 12 7 13 <span i18n:name="message" tal:omit-tag="" tal:content="options/message | nothing" /> 8 <div i18n:translate="site_feedback_mailtemplate_body" tal:omit-tag=""> 9 10 Anfrage über das Kontaktformular der Akademie für Erneuerbare Energien:<br /> 11 12 Name: <span i18n:name="sender_firstname" tal:omit-tag="" tal:content="options/sender_firstname|nothing" /> 13 <span i18n:name="sender_lastname" tal:omit-tag="" tal:content="options/sender_lastname|nothing" /><br /> 14 Email: <span i18n:name="from_address" tal:omit-tag="" tal:content="options/sender_from_address"/><br /> 15 Firma: <span i18n:name="sender_company" tal:omit-tag="" tal:content="options/sender_company"/><br /> 16 Adresse: <span i18n:name="sender_address" tal:omit-tag="" tal:content="options/sender_address"/>, 17 <span i18n:name="sender_city" tal:omit-tag="" tal:content="options/sender_city"/><br /> 18 Telefon: <span i18n:name="sender_phone" tal:omit-tag="" tal:content="options/sender_phone"/><br /> 19 20 Mitteilung: <span i18n:name="message" tal:omit-tag="" tal:content="options/message | nothing" /><br /> 21 -- 22 Ich bin an einem Studium an der Akademie für Erneuerbare Energien interessiert: 23 <span i18n:name="stud_interesse" tal:omit-tag="" tal:content="options/stud_interesse | nothing" />, ab: 24 <span i18n:name="ab_jahr" tal:omit-tag="" tal:content="options/ab_jahr | nothing" /><br /> 25 26 Ich interessiere mich für: <span i18n:name="interesse" tal:omit-tag="" tal:content="options/interesse | nothing" /><br /> 27 28 Meine gewünschten Themenschwerpunkte sind: <span i18n:name="schwerpunkt" tal:omit-tag="" tal:content="options/schwerpunkt | nothing" /><br /> 29 30 Ich bin: <span i18n:name="about" tal:omit-tag="" tal:content="options/about | nothing" /><br /> 31 32 Ich bin an einer Mitarbeit an der Akademie für Erneuerbare Energien interessiert. Bitte nehmen Sie Kontakt mit mir auf: 33 <span i18n:name="frage4" tal:omit-tag="" tal:content="options/frage4 | nothing" /><br /> 34 35 36 Bitte informieren Sie mich über Studienangebot und Inhalte: 37 <span i18n:name="frage1" tal:omit-tag="" tal:content="options/frage1 | nothing" /><br /> 38 39 Bitte nehmen Sie mich in die Warteliste für den gewünschten Studiengang auf 40 und informieren Sie mich kurzfristig über den frühestmöglichen Studieneinstiegstermin: 41 <span i18n:name="frage2" tal:omit-tag="" tal:content="options/frage2 | nothing" /><br /> 42 43 Bitte kontaktieren Sie mich für ein unverbindliches Informationsgespräch per E-Mail oder Telefon. 44 <span i18n:name="frage3" tal:omit-tag="" tal:content="options/frage3 | nothing" /> 14 45 15 46 </div> -
akademie/plone_themes/akademie.theme/akademie/theme/skins/akademie_theme_custom_skins/validate_site_feedback.vpy
r4296 r4342 26 26 state.setError('sender_firstname', _(u'Bitte geben Sie Ihren Vornamen ein.'), 'sender_firstname_required') 27 27 28 if not (subject and subject.strip()):29 state.setError('subject', _(u'Please enter a subject.'), 'subject_required')28 #if not (subject and subject.strip()): 29 # state.setError('subject', _(u'Please enter a subject.'), 'subject_required') 30 30 31 31 if state.getErrors():
Note: See TracChangeset for help on using the changeset viewer.