From a06c11a9aaa86e3ceaba5cf0d7625b7ef6fc3d30 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Mon, 30 Sep 2019 18:35:07 +0200 Subject: [PATCH] wip #3075 @0.25 --- app/Models/Specification.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/Models/Specification.php b/app/Models/Specification.php index bca4d59..3647f1c 100644 --- a/app/Models/Specification.php +++ b/app/Models/Specification.php @@ -63,5 +63,13 @@ class Specification extends CubistMagicTranslatableModel 'translatable' => false, 'column' => true, ]); + + $this->addField(['name' => 'logarithmic_scale', + 'label' => 'Echelle logarithmique', + 'hint' => 'Lorsque cette spécification est utilisée comme un filtre, utiliser une échelle logarithmique', + 'type' => 'Checkbox', + 'when' => ['type' => ['numeric', 'range', 'numeric_list']], + 'translatable' => false, + 'column' => false]); } } -- 2.39.5