-
Notifications
You must be signed in to change notification settings - Fork 2
/
page.tpl
76 lines (74 loc) · 3.35 KB
/
page.tpl
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
{include file="header.tpl"}
<div id="content">
<div id="job-listings"></div><!-- #job-listings -->
<h3 class="page-heading">{$page.title}</h3>
{$page.content}
{if $page.has_form == '1'}
{if $errors}
<div class="validation-failure">
{$errors.contact_error}
</div>
{elseif $smarty.session.contact_msg_sent == 1}
<div class="apply-status-ok">
{$page.form_message}
</div>
{/if}
{if $smarty.session.contact_msg_sent != 1}
<div id="contact-form">
<div id="contact-form-contents">
<form id="apply-online" method="post" action="{$BASE_URL}{$page.url}/">
<label for="contact_name">{$translations.contact.name_label}:</label><br />
<input {if $errors.contact_name}class="error"{/if} type="text" name="contact_name" id="contact_name" maxlength="50" size="30" value="{$smarty.post.contact_name}" />
<span class="validation-error">{if $errors.contact_name}<img src="{$BASE_URL}_templates/{$THEME}/img/icon-delete.png" alt="" />{/if}</span>
<br /><br />
<label for="contact_email">{$translations.contact.email_label}:</label><br />
<input {if $errors.contact_email}class="error"{/if} type="text" name="contact_email" id="contact_email" maxlength="50" size="30" value="{$smarty.post.contact_email}" />
<span class="validation-error">{if $errors.contact_email}<img src="{$BASE_URL}_templates/{$THEME}/img/icon-delete.png" alt="" />{/if}</span>
<br /><br />
<label for="contact_msg">{$translations.contact.message_label}:</label><br />
<textarea {if $errors.contact_msg}class="error"{/if} name="contact_msg" id="contact_msg" cols="50" rows="8">{$smarty.post.contact_msg}</textarea>
<span class="validation-error">{if $errors.contact_msg}<img src="{$BASE_URL}_templates/{$THEME}/img/icon-delete.png" alt="" />{/if}</span>
{if $ENABLE_RECAPTCHA}
<br /><br />
<label for="recaptcha_response_field">{$translations.captcha.captcha_title}:</label><br />
{literal}
<script type="text/javascript">
var RecaptchaOptions = {
theme : 'white',
tabindex : 9
};
</script>
{/literal}
{$the_captcha}
<span class="validation-error">{if $errors.captcha}<img src="{$BASE_URL}_templates/{$THEME}/img/icon-delete.png" alt="" /> {$errors.captcha}{/if}</span>
{/if}
<br /><br />
<input type="submit" name="submit" id="submit" value="{$translations.contact.submit}" />
</form>
</div><!-- #contact-form-contents -->
{/if}
</div><!-- #contact-form -->
{/if}
</div><!-- /content -->
{if $page.has_form == '1'}
{literal}
<script type="text/javascript">
$(document).ready(function()
{
$("#apply-online").validate({
rules: {
contact_name: { required: true },
contact_email: { required: true, email: true },
contact_msg: { required: true }
},
messages: {
contact_name: ' <img src="{/literal}{$BASE_URL}_templates/{$THEME}/{literal}img/icon-delete.png" alt="" />',
contact_email: ' <img src="{/literal}{$BASE_URL}_templates/{$THEME}/{literal}img/icon-delete.png" alt="" />',
contact_msg: ' <img src="{/literal}{$BASE_URL}_templates/{$THEME}/{literal}img/icon-delete.png" alt="" />'
}
});
});
</script>
{/literal}
{/if}
{include file="footer.tpl"}