form name fb_form ng-submit processForm class ng-pristine ng-valid div

 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
<form name="fb_form" ng-submit="processForm()" class="ng-pristine ng-valid">
<div class="modal-body">
<div id="name-group" class="form-group name_field" ng-class="{ 'has-error' : errorName }">
<label>Ваше имя</label>
<input type="text" name="name" class="form-control ng-pristine ng-valid" placeholder="" ng-model="formData.name">
<span class="help-block ng-binding ng-hide" ng-show="errorName"></span>
</div>
<div id="email-group" class="form-group email_field" ng-class="{ 'has-error' : errorEmail }">
<label>Email</label>
<input type="email" name="email" class="form-control ng-pristine ng-valid ng-valid-email" placeholder="" ng-model="formData.email">
<span class="help-block ng-binding ng-hide" ng-show="errorEmail"></span>
</div>
<div id="feedback-group" class="form-group about_field" ng-class="{ 'has-error' : errorFeedback }">
<label>Информация о себе</label>
<textarea name="about" class="form-control ng-pristine ng-valid" ng-model="formData.about" rows="10"></textarea>
<span class="help-block ng-binding ng-hide" ng-show="errorAbout"></span>
</div>
<div id="name-group" class="form-group country_field" ng-class="{ 'has-error' : errorCountry }">
<label>Страна</label>
<input type="text" name="country" class="form-control ng-pristine ng-valid" placeholder="Например 'Россия'" ng-model="formData.country">
<span class="help-block ng-binding ng-hide" ng-show="errorCountry"></span>
</div>
<input type="hidden" name="item_id" value="12">
<!-- SHOW DATA FROM INPUTS AS THEY ARE BEING TYPED -->
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Отмена</button>
<button type="submit" class="btn btn-primary">Отправить</button>
</div>
</form>