-
Notifications
You must be signed in to change notification settings - Fork 7
/
index.html
249 lines (238 loc) · 11.9 KB
/
index.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
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"
/>
<meta name="description" content="Пример формы обработной связи с подсказками DaData.ru" />
<title>Обращение в правительство Москвы</title>
<link rel="icon" href="img/favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="img/favicon.ico" type="image/x-icon" />
<link rel="stylesheet" href="css/bootstrap-3.1.1.min.css" />
<link rel="stylesheet" href="css/suggestions.css" />
<link rel="stylesheet" href="css/styles.css" />
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/suggestions.min.css"
rel="stylesheet"
/>
</head>
<body>
<div class="container">
<div class="page-header">
<h1>Обращение в правительство Москвы</h1>
<p class="lead">Пожалуйста, укажите ваши контактные данные и суть вопроса</p>
</div>
<form role="form" id="feedback-form">
<div class="row">
<div class="col-xs-12 col-md-6">
<!-- ФИО -->
<div class="form-group">
<label for="fullname">ФИО</label><span class="required"> ∗</span>
<input
type="text"
class="form-control"
id="fullname"
placeholder="Введите ФИО в свободной форме"
autofocus
/>
</div>
<div class="suggestion">
<div class="row suggestion-item">
<div class="col-sm-2 col-md-2">
<label for="fullname-surname">Фамилия</label>
</div>
<div class="col-sm-10 col-md-10">
<input
type="text"
class="form-control suggestion-editable"
id="fullname-surname"
required
/>
</div>
</div>
<div class="row suggestion-item">
<div class="col-sm-2 col-md-2">
<label for="fullname-name">Имя</label>
</div>
<div class="col-sm-10 col-md-10">
<input
type="text"
class="form-control suggestion-editable"
id="fullname-name"
required
/>
</div>
</div>
<div class="row suggestion-item">
<div class="col-sm-2 col-md-2">
<label for="fullname-patronymic">Отчество</label>
</div>
<div class="col-sm-10 col-md-10">
<input
type="text"
class="form-control suggestion-editable"
id="fullname-patronymic"
/>
</div>
</div>
</div>
<!-- Телефон -->
<div class="form-group">
<label for="phone">Контактный телефон</label>
<input
type="tel"
class="form-control"
id="phone"
placeholder="+7 916 123-45-67"
/>
</div>
<!-- Email-->
<div class="form-group">
<label for="email">E-mail</label><span class="required"> ∗</span>
<input
type="email"
class="form-control"
id="email"
placeholder="[email protected]"
required
/>
</div>
</div>
<div class="col-xs-12 col-md-6">
<!-- Адрес -->
<div class="form-group">
<label for="address">Адрес</label><span class="required"> </span>
<input
type="text"
class="form-control"
id="address"
placeholder="Введите адрес в свободной форме"
/>
</div>
<div id="address-suggestion" class="suggestion"></div>
<div class="suggestion">
<div class="row suggestion-item">
<div class="col-sm-2 col-md-2">
<label for="address-postal_code">Индекс</label>
</div>
<div class="col-sm-10 col-md-10">
<input
type="text"
class="form-control suggestion-editable"
id="address-postal_code"
/>
</div>
</div>
<div class="row suggestion-item">
<div class="col-sm-2 col-md-2">
<label for="address-region">Регион</label>
</div>
<div class="col-sm-10 col-md-10">
<input
type="text"
class="form-control suggestion-editable"
id="address-region"
readonly
tabindex="-1"
/>
</div>
</div>
<div class="row suggestion-item">
<div class="col-sm-2 col-md-2">
<label for="address-city">Город</label>
</div>
<div class="col-sm-10 col-md-10">
<input
type="text"
class="form-control suggestion-editable"
id="address-city"
/>
</div>
</div>
<div class="row suggestion-item">
<div class="col-sm-2 col-md-2">
<label for="address-street">Улица</label>
</div>
<div class="col-sm-10 col-md-10">
<input
type="text"
class="form-control suggestion-editable"
id="address-street"
/>
</div>
</div>
<div class="row suggestion-item">
<div class="col-sm-2 col-md-2">
<label for="address-house">Дом</label>
</div>
<div class="col-sm-10 col-md-10">
<input
type="text"
class="form-control suggestion-editable"
id="address-house"
/>
</div>
</div>
<div class="row suggestion-item">
<div class="col-sm-2 col-md-2">
<label for="address-flat">Квартира</label>
</div>
<div class="col-sm-10 col-md-10">
<input
type="text"
class="form-control suggestion-editable"
id="address-flat"
/>
</div>
</div>
</div>
</div>
</div>
<!-- Обращение -->
<div class="form-group">
<label for="message">Содержание обращения</label
><span class="required"> ∗</span>
<textarea class="form-control" id="message" rows="5" required></textarea>
</div>
<div class="progress" style="display: none;">
<div
id="feedback-progress"
class="progress-bar"
role="progressbar"
aria-valuenow="0"
aria-valuemin="0"
aria-valuemax="100"
style="width: 0;"
>
<span class="sr-only"></span>
</div>
</div>
<div
id="feedback-message"
class="alert alert-danger fade in"
style="display: none;"
>
<h4></h4>
<p data-message></p>
<p>
<button type="button" class="btn btn-default" data-action="ok">
Хорошо, я понял
</button>
</p>
</div>
<div class="form-group">
<button type="submit" class="btn btn-primary btn-lg">
Отправить обращение
</button>
</div>
</form>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/jquery.suggestions.js"></script>
<script src="js/suggest.js"></script>
<script src="js/main.js"></script>
</body>
</html>