]> _ Git - pmi.git/commitdiff
wip #3075 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 30 Sep 2019 16:35:07 +0000 (18:35 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 30 Sep 2019 16:35:07 +0000 (18:35 +0200)
app/Models/Specification.php

index bca4d59a5cc85a2b9fcfa6c02c2f79c0ae214161..3647f1ca232ec0182309331ffe3df59e6bce35a9 100644 (file)
@@ -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]);
     }
 }