-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
151 lines (134 loc) · 4.64 KB
/
index.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
147
148
149
150
151
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Attestation Covid générique</title>
<link rel="icon" type="image/png" sizes="32x32" href="img/favicon.png">
<link rel="apple-touch-icon" sizes="32x32" href="img/favicon.png">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/polight/decor@master/decor.css">
<script src="utils.js"></script>
</head>
<body>
<h2>Mes modèles</h2>
<section id="cards">
<article>
<button title="supprimer ce modèle" onclick="deleteAttestation({id})">X</button>
<a href="/generate.html#{params}" title="Générer cette attestation">
<ul>
<li><img src="img/reason.svg"> <span>{reason}</span></li>
<li><img src="img/duration.svg"> <span>{delay} min. plus tôt</span></li>
</ul>
</a>
</article>
</section>
<div>
<h2>Créer un modèle d'attestation</h2>
<form onsubmit="submitData(this)">
<fieldset>
<label>Prénom</label>
<input name="firstname" autocomplete="given-name" placeholder="François"
aria-labelledby="field-firstname-label" required>
<label>Nom</label>
<input name="lastname" autocomplete="family-name" placeholder="Wyszkowski"
aria-labelledby="field-lastname-label" required>
</fieldset>
<fieldset>
<label>Date de naissance (jj/mm/aaaa)</label>
<input type=date id="birthday" name="birthday" placeholder="01/01/1970" minlength="10" maxlength="10" inputmode="numeric" required>
<label>Ville de naissance</label>
<input name="placeofbirth" placeholder="Antibes" required>
</fieldset>
<fieldset>
<label>Rue</label>
<input name="address" autocomplete="address-line1"
aria-labelledby="field-address-label" placeholder="1 place de la mairie" required>
<label>Ville</label>
<input name="city" autocomplete="address-level1" aria-labelledby="field-town-label"
placeholder="Bar-sur-Loup" required>
<label>Code postal</label>
<input name="zipcode" autocomplete="zipcode" minlength="5" maxlength="5"
aria-labelledby="field-zipcode-label" placeholder="06620" required>
</fieldset>
<fieldset>
<label>Motif du déplacement</label>
<select name="field-reason">
<option value="0"> — Sélectionnez un motif — </option>
<option value="travail">Déplacement professionnel</option>
<option value="achats">Achat de nécessité</option>
<option value="enfants">Enfants / École</option>
<option value="sport_animaux">Déplacement d'1h/1km de loisir / sport</option>
<option value="sante">Aide à la santé</option>
<option value="famille">Nécessité familialle</option>
<option value="handicap">Aide à une personne handicapée</option>
<option value="convocation">Convocation médicale ou administrative</option>
<option value="missions">Mission d'utilité publique</option>
</select>
<label>Depuis</label>
<div class=row><input type="number" name="delay" placeholder="0 min = maintenant" value="0" min="0" max="120"> minutes</div>
</fieldset>
<button>Valider</button>
</form>
<div id="generation-link">
<a href="generate.html"></a>
</div>
</div>
</body>
<script src="index.js"></script>
<!-- Matomo -->
<script type="text/javascript">
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//stats.connect.cafe/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '15']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.type='text/javascript'; g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Matomo Code -->
</html>
<style>
#cards {
display: flex;
flex-wrap: wrap;
}
#cards > * {
border: 1px solid #eee;
max-width: 100%;
min-width: 200px;
padding: 1rem;
margin: 0 1rem 1rem 0;
border-radius: .3rem;
}
#cards a {
color: inherit;
text-decoration: inherit;
}
#cards a:hover {
background-color: #eee;
}
#cards ul {
padding: 0;
}
#cards li {
display: flex;
}
#cards img {
height: 32px;
opacity: .55;
}
article {
position: relative;
}
article button {
position: absolute;
top: .3rem;
right: .3rem;
border: none;
padding: 0;
}
</style>