Procházet zdrojové kódy

new settings section

andre před 5 měsíci
rodič
revize
44248bdefd
1 změnil soubory, kde provedl 17 přidání a 0 odebrání
  1. 17 0
      app/UI/Client/Setting/Pages/Settings.php

+ 17 - 0
app/UI/Client/Setting/Pages/Settings.php

@@ -86,6 +86,23 @@ class Settings extends DataTable implements ClientArea
         return $field->getHtml();
         return $field->getHtml();
     }
     }
 
 
+    /**
+     * @param $key
+     * @param $row
+     * @return mixed
+     */
+    public function replaceFieldMxactive($key, $row)
+    {
+        $status = self::STATUS_LABEL[$row[$key]] ? self::STATUS_LABEL[$row[$key]] : self::STATUS_LABEL['default'];
+        $label = di('lang')->absoluteT('kerio','account','status',$row[$key]);
+
+        $field = new EnabledField();
+        $field->setRawType($status);
+        $field->setRawTitle($label);
+
+        return $field->getHtml();
+    }
+
     /**
     /**
      * @param $key
      * @param $key
      * @param $row
      * @param $row