HTML
xxxxxxxxxx
1
<div class="container">
2
<div class="row row-contact-2">
3
<div class="col-xl-6 offset-3 col-lg-6 offset-2 col-md-8 offset-2 mx-auto">
4
<!--Body-->
5
<form class="card-body z-depth-2" action="mail.php" method="POST" novalidate>
6
<h2 class="h2-responsive text-center text-white bg-primary py-3 z-depth-2">
7
<i class="fa fa-pencil-alt fa-xs pr-1">
8
</i>
9
Kontaktni obrazec
10
</h2>
11
<fieldset>
12
<!-- Material input name -->
13
<div class="md-form md-bg mb-5">
14
<i class="fa fa-user prefix my-fa-user-icon">
15
</i>
16
<input name="name" type="text" class="form-control validate" id="orangeForm-name" required>
17
<label data-error="Napaka!" data-success="Pravilno">Ime in priimek
18
<span class="text-danger pl-1">*
19
</span>
20
</label>
21
</div>
22
<!-- Material input email -->
23
<div class="md-form md-bg mb-5">
24
<i class="fa fa-envelope prefix my-fa-envelope-icon">
25
</i>
26
<input name="email" type="email" class="form-control validate" id="orangeForm-email" required>
27
<label data-error="Napaka!" data-success="Pravilno">Email
28
<span class="text-danger pl-1">*
29
</span>
30
</label>
31
</div>
32
<!-- Material input phone -->
33
<div class="md-form md-bg mb-5">
34
<i class="fas fa-phone fa-rotate-90 prefix my-fa-phone-icon">
35
</i>
36
<input name="phone" type="tel" class="form-control validate" id="orangeForm-phone" required>
37
<label data-error="Napaka!" data-success="Pravilno">Tel. št.
38
<span class="text-danger pl-1">*
39
</span>
40
</label>
41
</div>
42
<!-- Material textarea message -->
43
<div class="md-form md-bg mb-5">
44
<i class="fas fa-edit prefix my-fa-edit-icon"></i>
45
<textarea name="message" id="orangeForm-mesage" class="md-textarea form-control" rows="3"
46
required></textarea>
47
<label data-error="Napaka!" data-success="Pravilno">Sporočilo
48
<span class="text-danger pl-1">*
49
</span>
50
</label>
51
</div>
52
<p class="grey-text text-right">
53
<span class="text-danger pr-1">*
54
</span>=Zahtevano
55
</p>
56
<!-- Material unchecked -->
57
<div class="form-check my-3">
58
<input type="checkbox" class="form-check-input" id="materialUnchecked" required>
59
<label class="form-check-label" for="materialUnchecked">Strinjam se s splošnimi pogoji poslovanja centra
60
Holos in politiko varovanja osebnih podatkov!
61
</label>
62
</div>
63
</fieldset>
64
<div class="g-recaptcha mt-4" data-sitekey="6LesYV8UAAAAAFemD2towAKqCciQfNSTwsq9wcvY">
65
</div>
66
<button class="btn btn-primary mt-5 mb-4 my-btn-2" type="submit" onclick="validateForm()">Pošlji
67
</button>
68
</form>
69
</div>
70
</div>
71
</div>
CSS
xxxxxxxxxx
1
textarea {
2
background-color: transparent !important;
3
}
4
input{
5
background-color: transparent !important;
6
}
JS
1
1
Console errors: 0