]> _ Git - cubedesigners_userdatabase.git/commitdiff
wait #4269 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 17 Feb 2021 13:46:50 +0000 (14:46 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 17 Feb 2021 13:46:50 +0000 (14:46 +0100)
src/app/Models/Company.php
src/app/Models/User.php

index 003f75ba62ec921df782534c058d436d6fb30f53..ae0a62445a5b98fe5ff2df1610a96ba41552a9be 100644 (file)
@@ -95,7 +95,16 @@ class Company extends CubistMagicAbstractModel
             'type' => 'Hidden']);
 
         $this->addField(['name' => 'e1_ws_grade',
-            'type' => 'Hidden']);
+            'label' => 'Grade Workshop V2',
+            'type' => 'SelectFromArray',
+            'options' => [0 => __('Pas d\'accès'),
+                1 => __('Client'),
+                2 => __('Client (création)'),
+                3 => __('Revendeur'),
+                4 => __('Revendeur (création)'),
+                5 => __('Admin'),
+            ],
+            'tab' => 'Workshop V2']);
     }
 
     public function isOwner($user)
index a3572044c006c1807ba22e44a14e635f899476cb..06045acbb11cef2fcd48604ce414f556f80b6a1a 100644 (file)
@@ -77,7 +77,17 @@ class User extends CubistMagicAuthenticatable
             'type' => 'Locale',
             'tab' => __('Paramètres')]);
 
-        $extranetv1 = ['settings', 'ws_password', 'ws_settings', 'ws_rights', 'ws_domains', 'ws_count', 'login', 'mobile', 'fax', 'notes', 'grade', 'resetpassword'];
+        $this->addField(['name' => 'e1_grade',
+            'label' => 'Grade Extranet V1',
+            'type' => 'SelectFromArray',
+            'options' => [0 => __('Client'),
+                '0.5' => __('Newbie'),
+                1 => __('Equipier'),
+                2 => __('Admin'),
+                3 => __('Comptable')],
+            'tab' => 'Extranet V1']);
+
+        $extranetv1 = ['settings', 'ws_password', 'ws_settings', 'ws_rights', 'ws_domains', 'ws_count', 'login', 'mobile', 'fax', 'notes', 'resetpassword'];
 
         foreach ($extranetv1 as $f) {
             $this->addField(['name' => 'e1_' . $f,