Changeset 820


Ignore:
Timestamp:
9 Nov 2006, 21:29:25 (18 years ago)
Author:
Henrik Bettermann
Message:

contact form finished

Location:
WAeUP_SRP/trunk
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/profiles/default/actions.xml

    r818 r820  
    128128   <permission>Modify portal content</permission>
    129129  </action>
     130  <action title="Contact" action_id="contact" category="navigation"
     131     condition_expr="member" url_expr="string:${portal_url}/contact" visible="True">
     132   <permission>View</permission>
     133  </action> 
    130134  <action title="Unchecked Items" action_id="unchecked" category="object"
    131135     condition_expr="python:member and 'academics' in object_url"
     
    152156   <permission>View</permission>
    153157  </action>
    154  
     158
    155159  <action title="Book Hostel" action_id="reserve_accommodation"
    156160     category="student" condition_expr="member"
    157161     url_expr="string:${portal_url}/reserve_accommodation" visible="True"/>
    158162   <permission>View</permission>
    159  
     163
    160164  <action title="Register Courses" action_id="register_courses"
    161165     category="student" condition_expr="member"
    162166     url_expr="string:${portal_url}/register_courses" visible="False"/>
    163167   <permission>View</permission>
    164  
     168
    165169  <action title="Home" action_id="students_home" category="student_navigation"
    166170     condition_expr="member" url_expr="string:${portal_url}" visible="True">
  • WAeUP_SRP/trunk/skins/waeup_default/mail2admin.py

    r819 r820  
    55##bind script=script
    66##bind subpath=traverse_subpath
     7##parameters=fullname=None,studentid=None,email=None,probtype=None,descr=None,commt=None
    78##title=
    89##
     10# $Id: mai2admin.py 805 2006-11-09 09:38:29Z henrik $
    911
    10 # the objects we need
    11 mship = context.portal_membership
    1212mhost = context.MailHost
    1313prop = context.portal_properties
    1414
    1515# the message format, %s will be filled in from data
     16
    1617message = """
    1718From: %s
    1819To: %s
     20Bcc: %s
    1921Subject: Test Email from a Student
    2022
    21 Test
     23Fullname: %s
     24Student ID: %s
     25Email: %s
     26Problem Type: %s
     27Description: %s
     28Comment: %s
    2229"""
    2330
    2431msg = message % (
    2532     prop.email_from_address,
    26      'henrik@saoas.org',
     33     'henrik@saoas.org',
     34     'henrik@waeup.org',
     35     fullname,
     36     studentid,
     37     email,
     38     probtype,
     39     descr,
     40     commt,
    2741     )
    2842mhost.send(msg)
     43
Note: See TracChangeset for help on using the changeset viewer.