-
Notifications
You must be signed in to change notification settings - Fork 0
/
create-orphanage.html
146 lines (126 loc) · 4.83 KB
/
create-orphanage.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
<!DOCTYPE html>
<html lang="pt_BR">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Adicionar um orfanato | Happy</title>
<link
rel="stylesheet"
href="https://unpkg.com/[email protected]/dist/leaflet.css"
integrity="sha512-xodZBNTC5n17Xt2atTPuE1HxjVMSvLVW9ocqUKLsCC5CXdbqCmblAshOMAS6/keqq/sMZMZ19scR4PsZChSR7A=="
crossorigin=""
/>
<script
src="https://unpkg.com/[email protected]/dist/leaflet.js"
integrity="sha512-XQoYMqMTK8LvdxXYG3nZ448hOEQiglfqkJs1NOQV44cWnUrBc8PkAOcXy20w0vlaXaVUearIOBhiXZ5V3ynxwA=="
crossorigin=""
></script>
<link rel="icon" href="./public/images/logo-icon.png" />
<link rel="stylesheet" href="./public/css/main.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/page-create-orphanage.css" />
<link
href="https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap"
rel="stylesheet"
/>
</head>
<body>
<div id="page-create-orphanage">
<aside class="animate-right sidebar">
<img src="./public/images/map-marker.svg" alt="Happy" />
<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="">
<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>
<div class="input-block">
<label for="name">Nome</label>
<input id="name" name="name" required />
</div>
<div class="input-block">
<label for="about"
>Sobre <span>Máximo de 300 caracteres</span></label
>
<textarea id="about" name="about" required></textarea>
</div>
<div class="input-block">
<label for="whatsapp">Número de WhatsApp</label>
<input id="whatsapp" name="whatsapp" required />
</div>
<div class="input-block images">
<label for="images">Fotos</label>
<div class="images-upload" id="images">
<div class="new-upload">
<input
name="images"
placeholder="Cole o link da foto aqui"
required
/>
<span onclick="deleteField(event)">
<img
src="./public/images/remove-file.svg"
alt="Remover Foto"
/>
</span>
</div>
</div>
<button onclick="addPhotoField()" type="button">
<img src="./public/images/add-file.svg" alt="Adicionar foto" />
</button>
</div>
</fieldset>
<fieldset>
<legend>Visitação</legend>
<div class="input-block">
<label for="instructions">Instruções</label>
<textarea
id="instructions"
name="instructions"
required
></textarea>
</div>
<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>
<script src="./public/scripts/page-create-orphanage.js"></script>
</body>
</html>