From bccdb4bafce0ba383935a5f06fbcd8dececee12c Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Tue, 29 Mar 2022 19:54:29 +0200 Subject: [PATCH] wip #5194 @0.25 --- app/Models/Settings.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Models/Settings.php b/app/Models/Settings.php index 57e2df2..cffd42f 100644 --- a/app/Models/Settings.php +++ b/app/Models/Settings.php @@ -4,6 +4,8 @@ namespace App\Models; +use Cubist\Backpack\Magic\Fields\Code; + class Settings extends \Cubist\Backpack\Magic\Models\Settings { protected $_options = ['name' => 'settings', @@ -14,7 +16,6 @@ class Settings extends \Cubist\Backpack\Magic\Models\Settings public function setFields() { $this->addField('pin', 'Text', 'Code PIN', ['pattern' => '\d{4}', 'translatable' => false, 'tab' => 'Splash']); - - + $this->addField('settings_xml', Code::class, 'Settings.xml de Kiosk Pro', ['language' => 'xml', 'tab' => 'Splash']); } } -- 2.39.5