Explorar el Código

new settings section

andre hace 5 meses
padre
commit
44248bdefd
Se han modificado 1 ficheros con 17 adiciones y 0 borrados
  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();
     }
 
+    /**
+     * @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 $row