Change order in poi edit: coordinates before type selector

This commit is contained in:
Léo Serre 2021-05-25 19:54:52 +02:00
parent 35281f4e30
commit 26ddc99766
2 changed files with 15 additions and 7 deletions

View File

@ -68,6 +68,13 @@ form.form h1 {
flex-direction: row;
}
.flex_line > :first-child {
margin-left: 0 !important;
}
.flex_line > :last-child {
margin-right: 0 !important;
}
.flex_line input[type=text] {
flex: 1;
margin: 10px 5px 0 5px;
@ -83,6 +90,7 @@ form.form input[type=radio] {
display: none;
}
form.form input[type=radio]+label {
margin-top: 10px;
font-size: 13px;
flex: 1;
text-align: center;

View File

@ -26,13 +26,6 @@
</select>
</h1>
<div class="flex_line" id="type_selector">
<? foreach($poi_types as $type) { ?>
<input type="radio" name="poi_type" value="<?=$type[3]?>" id="<?=$type[3]?>">
<label for="<?=$type[3]?>"><img src="<?=$config['views_url']?>img/<?=$type[3]?>.svg"><br><?=$type[0]?></label>
<? } ?>
</div>
<div class="flex_line">
<input type="text" value="<?=$poi->lat?>" name="lat" id="lat" placeholder="Latitude">
<input type="text" value="<?=$poi->lon?>" name="lon" id="lon" placeholder="Longitude">
@ -40,6 +33,13 @@
<div id="elevation_icon" style="display:none;" title="Calculer l'altitude"><i class="fas fa-search-location"></i></div>
</div>
<div class="flex_line" id="type_selector">
<? foreach($poi_types as $type) { ?>
<input type="radio" name="poi_type" value="<?=$type[3]?>" id="<?=$type[3]?>">
<label for="<?=$type[3]?>"><img src="<?=$config['views_url']?>img/<?=$type[3]?>.svg"><br><?=$type[0]?></label>
<? } ?>
</div>
<input name="submit" id="submit" type="submit" value="Ajouter l'hébergement">
</form>
</section>