From: Vincent Vanwaelscappel Date: Mon, 30 Sep 2019 16:35:07 +0000 (+0200) Subject: wip #3075 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=a06c11a9aaa86e3ceaba5cf0d7625b7ef6fc3d30;p=pmi.git wip #3075 @0.25 --- 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]); } }