forked from zuramai/mazer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathform-validation-parsley.html
215 lines (214 loc) · 8.3 KB
/
form-validation-parsley.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
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
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
{% set title = 'Form Validation' %} {% set filename =
'form-validation-parsley.html' %} {% extends 'src/layouts/master.html' %} {% block
content %}
<div class="page-heading">
<div class="page-title">
<div class="row">
<div class="col-12 col-md-6 order-md-1 order-last">
<h3>Form Validation</h3>
<p class="text-subtitle text-muted">
Complete the form with powerful validation library such as Parsley.
</p>
</div>
<div class="col-12 col-md-6 order-md-2 order-first">
<nav
aria-label="breadcrumb"
class="breadcrumb-header float-start float-lg-end"
>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index.html">Dashboard</a></li>
<li class="breadcrumb-item active" aria-current="page">
Form Validation
</li>
<li class="breadcrumb-item active" aria-current="page">Parsley</li>
</ol>
</nav>
</div>
</div>
</div>
<!-- // Basic multiple Column Form section start -->
<section id="multiple-column-form">
<div class="row match-height">
<div class="col-12">
<div class="card">
<div class="card-header">
<h4 class="card-title">Multiple Column</h4>
</div>
<div class="card-content">
<div class="card-body">
<form class="form" data-parsley-validate>
<div class="row">
<div class="col-md-6 col-12">
<div class="form-group mandatory">
<label for="first-name-column" class="form-label"
>First Name</label
>
<input
type="text"
id="first-name-column"
class="form-control"
placeholder="First Name"
name="fname-column"
data-parsley-required="true"
/>
</div>
</div>
<div class="col-md-6 col-12">
<div class="form-group">
<label for="last-name-column" class="form-label"
>Last Name</label
>
<input
type="text"
id="last-name-column"
class="form-control"
placeholder="Last Name"
name="lname-column"
data-parsley-required="true"
/>
</div>
</div>
<div class="col-md-6 col-12">
<div class="form-group">
<label for="city-column" class="form-label">City</label>
<input
type="text"
id="city-column"
class="form-control"
placeholder="Custom validation. Value has to be Jakarta."
name="city-column"
data-parsley-restricted-city="Jakarta"
data-parsley-required="true"
/>
</div>
</div>
<div class="col-md-6 col-12">
<div class="form-group">
<label for="country-floating" class="form-label"
>Country</label
>
<input
type="text"
id="country-floating"
class="form-control"
name="country-floating"
placeholder="Country"
data-parsley-required="true"
/>
</div>
</div>
<div class="col-md-6 col-12">
<div class="form-group">
<label for="company-column" class="form-label"
>Company</label
>
<input
type="text"
id="company-column"
class="form-control"
name="company-column"
placeholder="Company"
data-parsley-required="true"
/>
</div>
</div>
<div class="col-md-6 col-12">
<div class="form-group mandatory">
<label for="email-id-column" class="form-label"
>Email</label
>
<input
type="email"
id="email-id-column"
class="form-control"
name="email-id-column"
placeholder="Email"
data-parsley-required="true"
/>
</div>
</div>
<div class="col-12">
<div class="form-group">
<div class="form-check mandatory">
<input
type="checkbox"
id="checkbox5"
class="form-check-input"
checked
data-parsley-required="true"
data-parsley-error-message="You have to accept our terms and conditions to proceed."
/>
<label
for="checkbox5"
class="form-check-label form-label"
>I accept these terms and conditions.</label
>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="form-group mandatory">
<fieldset>
<label class="form-label"> Favourite Colour </label>
<div class="form-check">
<input
class="form-check-input"
type="radio"
name="flexRadioDefault"
id="flexRadioDefault1"
data-parsley-required="true"
/>
<label
class="form-check-label form-label"
for="flexRadioDefault1"
>
Red
</label>
</div>
<div class="form-check">
<input
class="form-check-input"
type="radio"
name="flexRadioDefault"
id="flexRadioDefault2"
/>
<label
class="form-check-label form-label"
for="flexRadioDefault2"
>
Blue
</label>
</div>
</fieldset>
</div>
</div>
</div>
<div class="row">
<div class="col-12 d-flex justify-content-end">
<button type="submit" class="btn btn-primary me-1 mb-1">
Submit
</button>
<button
type="reset"
class="btn btn-light-secondary me-1 mb-1"
>
Reset
</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- // Basic multiple Column Form section end -->
</div>
{% endblock %} {% block js %}
<script src="assets/extensions/jquery/jquery.min.js"></script>
<script src="assets/extensions/parsleyjs/parsley.min.js"></script>
<script src="assets/static/js/pages/parsley.js"></script>
{% endblock %}