~joaopinto/apt-portal/pre-modules

« back to all changes in this revision

Viewing changes to applications/om-showroom/views/contact.html

  • Committer: Joao Pinto
  • Date: 2009-07-06 17:20:36 UTC
  • Revision ID: joao.pinto@getdeb.net-20090706172036-ilg4m4ne7oxn80z3
Include debfactory's apt2sql to simplify installation

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
## -*- coding: utf-8 -*-
2
 
<%inherit file="base.html"/>
3
 
<%def name="page_head()">
4
 
        <link rel="stylesheet" href="/css/contact.css" type="text/css" media="screen" />        
5
 
        <script type="text/javascript" src="/common/js/jquery.validate.min.js"></script>
6
 
        <script type="text/javascript">
7
 
                $(document).ready(function(){
8
 
                        $("#commentForm").validate();
9
 
                        /* anti-spam code */
10
 
                        trickit = "${self_url}";
11
 
                        trickit = trickit.replace(/!/g, "t");
12
 
                        document.forms.commentForm.action = trickit;                    
13
 
                });
14
 
        </script>
15
 
</%def>
16
 
<%def name="title()">
17
 
${_("Contact")}
18
 
</%def>
19
 
<%def name="body()">
20
 
% if contact_received==1:
21
 
                <h1>Thank You</h1>
22
 
                <p>${_("We have received your message and will contact you as soon as we can.")}</p> 
23
 
% else:
24
 
                        <h1>Email</h1>
25
 
                        <form id="commentForm" method="post" action="spam">
26
 
                                <fieldset>
27
 
                    <input name="submitting" value="1" type="hidden" />
28
 
                                        <legend>You can use the form below to contact us</legend>
29
 
                                        <p class="note"><span>*</span> denotes a required field</p>
30
 
                                        <p>
31
 
                                                <label for="cname">Name</label><em>*</em>
32
 
                                                <input id="cname" name="name" size="25" class="required" />
33
 
                                        </p>
34
 
                                        <p>
35
 
                                                <label for="cemail">E-Mail</label><em>*</em>
36
 
                                                <input id="cemail" name="email" size="25"  class="required email" />
37
 
                                        </p>
38
 
                                        <p class="clear">
39
 
                                                <label for="ccomment">Your comment</label><em>*</em>
40
 
                                                <textarea id="ccomment" name="comment" cols="22"  rows="5" class="required" style="clear:both;"></textarea>
41
 
                                        </p>
42
 
                                        <p class="clear">
43
 
                                                <input class="submit" type="submit" value="Submit" />
44
 
                                        </p>
45
 
                                </fieldset>                
46
 
                        </form>
47
 
                        <h1>IRC</h1>
48
 
                        <p>You can find us in <a href="irc://irc.freenode.org">#getdeb on irc.freenode.org</a>.</p>
49
 
% endif
50
 
</%def>
51
 
## Contact email settings
52
 
<%def name="destination_email()">
53
 
## mangle to avoid spambots
54
 
${"%s@%s" % ('general','getdeb.net')}
55
 
</%def>