forked from concur/developer.concur.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconcur-community.html
98 lines (89 loc) · 3.07 KB
/
concur-community.html
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
---
layout: page
title: Concur Community
---
<div class="col-md-12">
<h2>Welcome to the Concur Community</h2>
<p> This is a community for developers building on the Concur platform to interact with the Concur team and other developers.</p>
<p> Our community uses a great tool called <a href="https://slack.com/">Slack</a>. If you're not familiar with Slack yet, check it out. Go ahead and complete the form below and we'll send you an invite.<br>
<ul>
<li>It's free.</li>
<li>We won't Spam you.</li>
<li>By joining the Concur Community, you agree to our <a href="{{ site.baseurl }}/Terms-of-Use.html">terms</a> and <a href="https://www.concur.com/en-us/privacy-policy">privacy policy</a>.
</ul> <br>
<h3>Request an invite</h3>
{% include form-success.html %}
<!--=== Form ===-->
<form id="sandboxAssistance" class="sky-form" novalidate="novalidate">
<fieldset>
<section>
<label class="label">First Name</label>
<label class="input">
<input type="text" name="firstName" id="firstName">
</label>
</section>
<section>
<label class="label">Last Name</label>
<label class="input">
<input type="text" name="lastName" id="lastName">
</label>
</section>
<section>
<label class="label">Email Address</label>
<label class="input">
<input type="text" name="email" id="email">
</label>
</section>
<section>
<label class="label">Company Name</label>
<label class="input">
<input type="text" name="company" id="company">
</label>
</section
</fieldset>
<footer>
<button type="submit" class="button">Submit</button>
</footer>
</form>
</div><!--/col-md-12-->
<script>
$("#sandboxAssistance").validate({
// Rules for form validation
rules: {
firstName: { required: true },
lastName: { required: true },
email: {
required: true,
email: true
},
company: { required: true },
phoneNumber: { required: true },
message: { required: true }
},
// Messages for form validation
messages: {
firstName: { required: 'Please enter your first name' },
lastName: { required: 'Please enter your last name' },
email: { required: 'Please enter a valid email address' },
company: { required: 'Please enter your company name' },
phoneNumber: { required: 'Please enter a valid phone number' },
message: { required: 'Please enter the message details for this request' }
},
// Ajax form submition
submitHandler: function(form) {
$(form).ajaxSubmit({
beforeSend: function() {
$('#sandboxAssistance button[type="submit"]').attr('disabled', true);
},
success: function() {
$("#sandboxAssistance").addClass('submited');
$('#form-success').removeClass('form-success-hidden');
}
});
},
// Do not change code below
errorPlacement: function(error, element) {
error.insertAfter(element.parent());
}
});
</script>