Changeset 4342 for akademie


Ignore:
Timestamp:
23 Jun 2009, 11:42:29 (16 years ago)
Author:
Henrik Bettermann
Message:

weitere Anpassungen des Kontaktformulars

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  
    201201       
    202202
    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   
    227204       
    228205        <div class="field"
  • akademie/plone_themes/akademie.theme/akademie/theme/skins/akademie_theme_custom_skins/send_feedback_site.cpy

    r4296 r4342  
    2727
    2828## make these arguments?
    29 subject = REQUEST.get('subject', '')
     29#subject = REQUEST.get('subject', '')
     30subject = 'Akademie EE Kontaktformular'3
    3031message = REQUEST.get('message', '')
    3132sender_from_address = REQUEST.get('sender_from_address', '')
    3233sender_lastname = REQUEST.get('sender_lastname', '')
    3334sender_firstname = REQUEST.get('sender_firstname', '')
     35
     36sender_company = REQUEST.get('sender_company', '')
     37sender_address = REQUEST.get('sender_address', '')
     38sender_city   = REQUEST.get('sender_city', '')
     39sender_phone  = REQUEST.get('sender_phone', '')
     40
     41stud_interesse = REQUEST.get('sender_from_address', '')
     42ab_jahr = REQUEST.get('ab_jahr', '')
     43interesse = REQUEST.get('interesse', '')
     44schwerpunkt = REQUEST.get('schwerpunkt', '')
     45about = REQUEST.get('about', '')
     46frage4 = REQUEST.get('frage4', '')
     47frage1 = REQUEST.get('frage1', '')
     48frage2 = REQUEST.get('frage2', '')
     49frage3 = REQUEST.get('frage3', '')
     50
    3451
    3552send_to_address = portal.getProperty('email_from_address')
     
    4360variables = {'sender_from_address' : sender_from_address,
    4461             '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,
    4667             '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
    4979             }
    5080
     
    6393## clear request variables so form is cleared as well
    6494REQUEST.set('message', None)
    65 REQUEST.set('subject', None)
     95#REQUEST.set('subject', None)
    6696REQUEST.set('sender_from_address', None)
    6797REQUEST.set('sender_lastname', None)
    6898REQUEST.set('sender_firstname', None)
     99REQUEST.set('sender_company', None)
     100REQUEST.set('sender_address', None)
     101REQUEST.set('sender_city', None)
     102REQUEST.set('sender_phone', None)
     103REQUEST.set('ab_jahr', None)
     104REQUEST.set('interesse', None)
     105REQUEST.set('schwerpunkt', None)
     106REQUEST.set('about', None)
     107REQUEST.set('frage4', None)
     108REQUEST.set('frage1', None)
     109REQUEST.set('frage2', None)
     110REQUEST.set('frage3', None)
     111
    69112
    70113plone_utils.addPortalMessage(_(u'Mail sent.'))
  • akademie/plone_themes/akademie.theme/akademie/theme/skins/akademie_theme_custom_skins/site_feedback_template.pt

    r4296 r4342  
    44                 portal utool/getPortalObject;
    55                 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);">
    127
    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
     10Anfrage über das Kontaktformular der Akademie für Erneuerbare Energien:<br />
     11
     12Name: <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 />
     14Email: <span i18n:name="from_address" tal:omit-tag="" tal:content="options/sender_from_address"/><br />
     15Firma: <span i18n:name="sender_company" tal:omit-tag="" tal:content="options/sender_company"/><br />
     16Adresse: <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 />
     18Telefon: <span i18n:name="sender_phone" tal:omit-tag="" tal:content="options/sender_phone"/><br />
     19
     20Mitteilung: <span i18n:name="message" tal:omit-tag="" tal:content="options/message | nothing" /><br />
     21--
     22Ich bin an einem Studium an der Akademie f&uuml;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
     26Ich interessiere mich f&uuml;r: <span i18n:name="interesse" tal:omit-tag="" tal:content="options/interesse | nothing" /><br />
     27
     28Meine gew&uuml;nschten Themenschwerpunkte sind: <span i18n:name="schwerpunkt" tal:omit-tag="" tal:content="options/schwerpunkt | nothing" /><br />
     29
     30Ich bin: <span i18n:name="about" tal:omit-tag="" tal:content="options/about | nothing" /><br />
     31
     32Ich bin an einer Mitarbeit an der Akademie f&uuml;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
     36Bitte informieren Sie mich &uuml;ber Studienangebot und Inhalte:
     37<span i18n:name="frage1" tal:omit-tag="" tal:content="options/frage1 | nothing" /><br />
     38
     39Bitte nehmen Sie mich in die Warteliste f&uuml;r den gew&uuml;nschten Studiengang auf
     40und informieren Sie mich kurzfristig &uuml;ber den fr&uuml;hestm&ouml;glichen Studieneinstiegstermin:
     41<span i18n:name="frage2" tal:omit-tag="" tal:content="options/frage2 | nothing" /><br />
     42
     43Bitte kontaktieren Sie mich f&uuml;r ein unverbindliches Informationsgespr&auml;ch per E-Mail oder Telefon.
     44<span i18n:name="frage3" tal:omit-tag="" tal:content="options/frage3 | nothing" />
    1445
    1546</div>
  • akademie/plone_themes/akademie.theme/akademie/theme/skins/akademie_theme_custom_skins/validate_site_feedback.vpy

    r4296 r4342  
    2626    state.setError('sender_firstname', _(u'Bitte geben Sie Ihren Vornamen ein.'), 'sender_firstname_required')     
    2727 
    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')
    3030
    3131if state.getErrors():
Note: See TracChangeset for help on using the changeset viewer.