-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreate-orphanage.html
More file actions
executable file
·148 lines (125 loc) · 5.08 KB
/
create-orphanage.html
File metadata and controls
executable file
·148 lines (125 loc) · 5.08 KB
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
<!DOCTYPE html>
<html lang="pt_BR">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Adicionar um orfanato | Happy</title>
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.7.1/dist/leaflet.css" integrity="sha512-xodZBNTC5n17Xt2atTPuE1HxjVMSvLVW9ocqUKLsCC5CXdbqCmblAshOMAS6/keqq/sMZMZ19scR4PsZChSR7A==" crossorigin=""/>
<!-- Make sure you put this AFTER Leaflet's CSS -->
<script src="https://unpkg.com/leaflet@1.7.1/dist/leaflet.js" integrity="sha512-XQoYMqMTK8LvdxXYG3nZ448hOEQiglfqkJs1NOQV44cWnUrBc8PkAOcXy20w0vlaXaVUearIOBhiXZ5V3ynxwA==" crossorigin=""></script>
<link rel="icon" href="./public/images/logo-icon.png">
<link href="https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap" rel="stylesheet">
<link rel="stylesheet" href="./public/css/main.css">
<link rel="stylesheet" href="./public/css/page-create-orphanage.css">
<link rel="stylesheet" href="./public/css/animations.css">
<link rel="stylesheet" href="./public/css/sidebar.css">
<link rel="stylesheet" href="./public/css/map.css">
<link rel="stylesheet" href="./public/css/form.css">
<link rel="stylesheet" href="./public/css/buttons.css">
<link rel="stylesheet" href="./public/css/fontawesome.css"/>
<!--font awesome-->
<script src="https://kit.fontawesome.com/2d70225091.js" crossorigin="anonymous"></script>
</head>
<body>
<div id="page-create-orphanage">
<aside class="animate-right sidebar">
<a href="index.html">
<img src="./public/images/map-marker.svg" alt="Happy">
</a>
<footer>
<button onclick="history.back()">
<img src="./public/images/arrow-back.svg" alt="Voltar">
</button>
</footer>
</aside>
<main class="animate-appear with-sidebar">
<form action="">
<!--FIELD 1-->
<fieldset>
<legend>Dados</legend>
<div class="map-container">
<div id="mapid"></div>
<input type="hidden"
name="lat">
<input type="hidden"
name="lng">
<footer>
<a href="#"
id="select-point">
Clique no mapa para adicionar a localização
</a>
</footer>
</div><!--map-container-->
<!--Nome-->
<div class="input-block">
<label for="name">Nome</label>
<input id="name" name="name" required>
</div>
<!--Sobre-->
<div class="input-block">
<label for="about">Sobre <span>Máximo de 300 caracteres</span></label>
<textarea id="about" name="about" required></textarea>
</div>
<!--Número-->
<div class="input-block">
<label for="whatsapp">Número de Whatsapp</label>
<input id="whatsapp" name="whatsapp" required>
</div>
<!--Imagens-->
<div class="input-block images">
<label for="images">Foto</label>
<div
class="images-upload"
id="images">
<div class="new-upload">
<input name="images" placeholder="Cole o link da foto aqui" required>
<span class="span" onclick="deleteField(event)"><i class="fas fa-times"></i></span>
</div><!--new-upload-->
</div><!--images-upload-->
<button type="button"
onclick="addPhotoField()">
<i class="fas fa-plus"></i>
</button>
</div><!--input-block images-->
</fieldset>
<!--FIELD 2-->
<fieldset>
<legend>Visitação</legend>
<!--Instruções-->
<div class="input-block">
<label for="instructions">Instruções</label>
<textarea id="instructions" name="instructions" required></textarea>
</div>
<!--Horário das visitas-->
<div class="input-block">
<label for="opening_hours">Horário das visitas</label>
<input id="opening_hours" name="opening_hours" required>
</div>
<!---->
<div class="input-block">
<label for="open_on_weekends">Atende fim de semana?</label>
<input
type="hidden"
id="open_on_weekends"
name="open_on_weekends"
value="1"
required>
<div class="button-select">
<button data-value="1"
onclick="toggleSelect(event)"
type="button"
class="active">Sim</button>
<button data-value="0"
onclick="toggleSelect(event)"
type="button">Não</button>
</div>
<button type="submit"
class="primary-button">Confirmar</button>
</div>
</fieldset>
</form>
</main>
</div><!--page-orphanage-->
<script src="./public/scripts/page-create-orphanage.js"></script>
</body>
</html>