Git Repository Public Repository

namibia

URLs

Copy to Clipboard
 
00360e7bf4369a0f38aeec2a9b695ce2b0243ff4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
<script>
	dataLayer = [];
</script>
<!-- Google Tag Manager -->
<noscript>
	<iframe src="//www.googletagmanager.com/ns.html?id=GTM-PQWKM6" height="0" width="0"
	        style="display:none;visibility:hidden"></iframe>
</noscript>
<script>(function (w, d, s, l, i) {
	w[l] = w[l] || [];
	w[l].push({
		'gtm.start': new Date().getTime(), event: 'gtm.js'
	});
	var f = d.getElementsByTagName(s)[0],
		  j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : '';
	j.async = true;
	j.src =
		  '//www.googletagmanager.com/gtm.js?id=' + i + dl;
	f.parentNode.insertBefore(j, f);
})(window, document, 'script', 'dataLayer', 'GTM-PQWKM6');
</script>
<!-- End Google Tag Manager -->


<center>
	<div class="Terms" style="background-color:rgba(0,0,0,.5);">
		<div class="Terms_top">
			<h2 class="highlighted">We want to hear from you...</h2>
		</div>
		<div class="contactDiv">
			<!--<div class="contact_lft">-->
				<!--<div class="arrowDiv">-->
					<!--<h2>feel</h2>-->

					<!--<p>free to</p>-->
					<!--<a href="#" title="">contact us</a>-->
				<!--</div>-->
				<!--<div class="contactText">-->
					<!--<div class="contactpost">-->
						<!--<p>Cash-Cars Cape Town</p>-->
						<!--<p>Southern Star Vehicle Yard</p>-->
						<!--<p>Transnet Complex</p>-->
						<!--<p>Caledon West Street</p>-->
						<!--<p>Bellville South</p>-->
						<!--<p>Cape Town</p>-->
						<!--<p>7530</p>-->
					<!--</div>-->
					<!--<p class="contact-no"><font size=5 color="#d52e31">Contact</br> 021 917 1018</font></p>-->
				<!--</div>-->
			<!--</div>-->
			<!--<div class="contactForm">-->
				<form id="contactForm">
                    <div class="inputDiv"><input type="text" name="name" id="name" required placeholder="Name and surname" /></div>
                    <!--<div class="inputDiv"><input type="text" name="company" id="company" required placeholder="Location" /></div>-->
                    <div class="inputDiv" >
                        <select placeholder="Location" name="company" id="company" style="color:slategray;margin-top: 5px;width: 225px;">
                            <option style="color:grey" value="0">Location</option>
                            <option style="color:black" value="1">Cape Town</option>
                            <option style="color:black" value="2">Johannesburg</option>
                        </select>
                    </div>
                    <!--<div class="control-group mobile-control-group" id="[tid]_vehicleYear">[vehicleYear]</div>-->
                    <div class="inputDiv"><input type="text" name="email" id="email" required placeholder="E-mail address" /></div>
                    <div class="control-group mobile-control-group inputDivs">
                        <div class="input-prepend">
                            <span class="add-on">+264</span>
                            <span class="inputDiv" ><input type="text" name="mobile" required placeholder="Mobile phone" /></span>
                        </div>
                    </div>
                    <div class="control-group mobile-control-group inputDivs">
                        <div class="input-prepend">
                            <span class="add-on">+264</span>
                            <span class="inputDiv"><input type="text" name="telephone" required placeholder="Telephone" /></span>
                        </div>
                    </div>
                    <div class="inputDiv"><input type="text" name="subject" id="subject" required placeholder="Subject"/></div>
                    <div class="inputDiv"><textarea cols="5" name="message" id="message" required rows="5" placeholder="Message"></textarea></div>
					<div class="sentbtn"><input type="submit" value="&nbsp;"/></div>
				</form>
			<!--</div>-->
		</div>
	</div>
</center>

<!--<div class="gradientFoot navbar-fixed-bottom">&lt;!&ndash;footerSec&ndash;&gt;-->
	<!--<div class="footer">-->
		<!--<ul class="fmenu">-->
			<!--<li><a href="/" title="">Home</a></li>-->
			<!--<li><a href="/documents/Legal_Notice_v2.pdf" title="" target="_blank">Terms &amp; Conditions</a></li>-->
			<!--<li><a href="/documents/Legal_Notice_v2.pdf" title="" target="_blank">Legal Notice</a></li>-->
			<!--<li><a href="/documents/Privacy_Policy_v2.pdf" title="" target="_blank">Privacy Policy</a></li>-->
			<!--<li><a href="/#/publicfaq" title="">FAQ</a></li>-->
			<!--<li><a href="/#/publiccontact_us" title="">CONTACT US</a></li>-->
			<!--<br/>-->
			<!--<p>&nbsp;</p>-->
		<!--</ul>-->
		<!--<div class="footer_rgt">-->
			<!--<ul>-->
				<!--<li><a href="/#" title=""><img src="/images/flag02.png" alt=""/></a></li>-->
			<!--</ul>-->
		<!--</div>-->
	<!--</div>-->
<!--</div>&lt;!&ndash;/footerSec&ndash;&gt;-->

<script>
//	$("#contactForm").submit(function () {
//		var data = $(this).serialize();
//		$.post('/workspace/contact-request-cc', data, function (data) {
//			if (data.Status == "Success")
//			{
//				alert('Your message has been sent');
//				window.history.back();
//			}
//		});
//		return false;
//	});

$.validator.addMethod("valueNotEquals", function(value, element, arg){
    return arg != value;
}, "Location must be selected.");

var rules = {
    name: {required: true, minlength: 3},
    company: {required:true, valueNotEquals: "0"},
    email: {required: true, email: true},
    mobile: {required: true, mobile: true},
    telephone: {required: true, mobile: true},
    subject: {required: true},
    message: {required: true, minlength: 3}
};

$('#contactForm').validate({
    "rules": rules,
    messages: {
        name: {
            minlength: "This field is required."
        },
        company: {
            minlength: "This field is required."
        },
        email: {
            required: "This field is required.",
            email: "Please enter a valid<br/>email address."
        },
        mobile : "This field is required.",
        telephone : "This field is required.",
        subject : "This field is required.",
        message : {
            minlength: "This field is required."
        }
    },
    invalidHandler: function(event, validator) {

//        console.log('event',event);
//        console.log('validator',validator);

        var errors = validator.numberOfInvalids();

//        console.log('errors',errors);

        if (errors) {
            var message = 'Please fill in all required fields. It has been highlighted';
            alert(message);
        }
        _w.publicvaluation.validations++;
    },
    submitHandler: function( form ) {

        var data = $('#contactForm').serialize();

//        console.log('data',data);

        $.post('/workspace/contact-request-cc', data, function (data) {
            if (data.Status == "Success")
            {
                alert('Your message has been sent');
                window.history.back();
            }
        });

        return;
    }
});

</script>

Commits for namibiapublic/templates/page/publiccontact_us.html

Diff revisions: vs.
Revision Author Commited Message
00360e ... Diff Diff Mark Thu 27 Oct, 2016 11:16:18 +0000

latest updates

df0489 ... Mark Fri 14 Oct, 2016 10:01:00 +0000

initial commit