-
Notifications
You must be signed in to change notification settings - Fork 113
/
contact.html
executable file
·73 lines (67 loc) · 2.73 KB
/
contact.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
<div class="dialog-form ui-widget" >
<form id="node-form" class="ui-corner-all ui-widget-content" method="post" action="">
<h1>Contatta il nodo {{ node.name }}</h1>
<p>I campi contrassegnati con un asterisco sono obbligatori.</p>
<fieldset>
{% csrf_token %}
{% if form.non_field_errors %}
<div class="ui-state-error">
{{ form.non_field_errors }}
</div><br />
{% endif %}
<div class="fieldWrapper">
<label for="id_name">Tuo nome: <big>*</big><label>
{% if form.name.errors %}
<div class="ui-state-error">
{{ form.name.errors }}
</div>
{% endif %}
{{ form.name }}
</div>
<div class="fieldWrapper">
<label for="id_email">Email: <big>*</big><label>
{% if form.email.errors %}
<div class="ui-state-error">
{{ form.email.errors }}
</div>
{% endif %}
{{ form.email }}
</div>
<div class="fieldWrapper">
<label for="id_text">Testo: <big>*</big><label>
{% if form.text.errors %}
<div class="ui-state-error">
{{ form.text.errors }}
</div>
{% endif %}
{{ form.text }}
</div>
<div class="fieldWrapper">
{% if form.math_captcha_field.errors %}
<div class="ui-state-error">
{{ form.math_captcha_field.errors }}
</div>
{% endif %}
{% autoescape off %}{{ form.math_captcha_field }}{% endautoescape %}
</div>
<p style="overflow:hidden">
<input id="contact-form-submit" class="submit-button ui-priority-primary ui-corner-all ui-state-disabled hover" type="submit" value="Invia" />
<input id="contact-form-cancel" class="cancel-button ui-priority-primary ui-corner-all ui-state-disabled hover" type="button" value="Annulla" />
</p>
</fieldset>
</form>
</div>
<script>
$('#contact-form-submit, #contact-form-cancel').button();
var inputs = $("#node-form").find("input , select ,textarea");
$.each(inputs,function(){
$(this).bind({
focusin: function() {
$(this).toggleClass('ui-state-focus');
},
focusout: function() {
$(this).toggleClass('ui-state-focus');
}
});
});
</script>