diff --git a/models/d.poi.php b/models/d.poi.php index 3dcb7cb..d1ed5b2 100755 --- a/models/d.poi.php +++ b/models/d.poi.php @@ -12,6 +12,16 @@ namespace Kabano; require_once($config['third_folder']."Md/MarkdownExtra.inc.php"); +// This array is related to the defined SQL enum, do not touch. +$poi_types = array( + "basic_hut" => array("Abri sommaire", "Abri", "#ef2929", "basic_hut"), + "wilderness_hut" => array("Cabane non gardée", "Cabane", "#ef2929", "wilderness_hut"), + "alpine_hut" => array("Refuge gardé", "Refuge", "#ef2929", "alpine_hut"), + "halt" => array("Gîte d'étape", "Gîte", "#4e9a06", "halt"), + "bivouac" => array("Zone de bivouac", "Bivouac", "#ef2929", "bivouac"), + "campsite" => array("Camping", "Camping", "#4e9a06", "campsite") +); + class Poi { public $poi_id = NULL; diff --git a/models/d.users.php b/models/d.users.php index b03573d..d6d361d 100755 --- a/models/d.users.php +++ b/models/d.users.php @@ -12,6 +12,7 @@ namespace Kabano; require_once($config['models_folder']."d.locales.php"); +// This array is related to the defined SQL enum, do not touch. $ranks = array( "administrator" => array(1000,"Administrateur", "red", "administrator"), "moderator" => array(800,"Modérateur", "orangered", "moderator"), diff --git a/views/css/d.poi.css b/views/css/d.poi.css index b6687c0..81dfc74 100755 --- a/views/css/d.poi.css +++ b/views/css/d.poi.css @@ -70,6 +70,24 @@ form.form input[type=submit] { border-bottom: 2px solid blue; } +#type_selector { + display: flex; + flex-direction: row; +} +form.form input[type=radio] { + display: none; +} +form.form input[type=radio]+label { + flex: 1; + text-align: center; + padding: 10px 5px; + vertical-align: middle; + border-bottom: 2px solid transparent; +} +form.form input[type=radio]:checked+label { + background: #ddd; + border-bottom: 2px solid #ccc; +} /***************************************** Controls of the map diff --git a/views/d.poi.edit.html b/views/d.poi.edit.html index 86ba1fe..bba422f 100755 --- a/views/d.poi.edit.html +++ b/views/d.poi.edit.html @@ -13,6 +13,14 @@
+
+
+ + + + +
+

- +
diff --git a/views/img/alpine_hut.svg b/views/img/alpine_hut.svg new file mode 100755 index 0000000..d4cf615 --- /dev/null +++ b/views/img/alpine_hut.svg @@ -0,0 +1,29 @@ + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/views/img/basic_hut.svg b/views/img/basic_hut.svg new file mode 100755 index 0000000..33728e6 --- /dev/null +++ b/views/img/basic_hut.svg @@ -0,0 +1,27 @@ + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/views/img/bivouac.svg b/views/img/bivouac.svg new file mode 100755 index 0000000..de2b38c --- /dev/null +++ b/views/img/bivouac.svg @@ -0,0 +1,27 @@ + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/views/img/campsite.svg b/views/img/campsite.svg new file mode 100755 index 0000000..e35c518 --- /dev/null +++ b/views/img/campsite.svg @@ -0,0 +1,110 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + diff --git a/views/img/halt.svg b/views/img/halt.svg new file mode 100755 index 0000000..34f1660 --- /dev/null +++ b/views/img/halt.svg @@ -0,0 +1,30 @@ + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/views/img/wilderness_hut.svg b/views/img/wilderness_hut.svg new file mode 100755 index 0000000..61ac32e --- /dev/null +++ b/views/img/wilderness_hut.svg @@ -0,0 +1,28 @@ + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + \ No newline at end of file