]> _ Git - fluidbook-toolbox.git/commitdiff
wip #6775 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 11 Mar 2024 15:09:46 +0000 (16:09 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 11 Mar 2024 15:09:46 +0000 (16:09 +0100)
app/Models/ToolWebflow.php [new file with mode: 0644]

diff --git a/app/Models/ToolWebflow.php b/app/Models/ToolWebflow.php
new file mode 100644 (file)
index 0000000..a6bba9b
--- /dev/null
@@ -0,0 +1,34 @@
+<?php
+
+namespace App\Models;
+
+use App\Models\Base\ToolboxModel;
+use App\SubForms\ToolSVGSpriteIcon;
+use Cubist\Backpack\Magic\Fields\BunchOfFieldsMultiple;
+use Cubist\Backpack\Magic\Fields\Checkbox;
+use Cubist\Backpack\Magic\Fields\Table;
+use Cubist\Backpack\Magic\Fields\Text;
+use Cubist\Util\Str;
+use Fluidbook\Tools\SVG\SVGTools;
+
+// __('!! Outils')
+class ToolWebflow extends ToolboxModel
+{
+    protected static $_permissionBase = 'webflow';
+
+    protected $table = 'webflow_site';
+
+    protected $_options = ['name' => 'tool-webflow',
+        'singular' => 'site',
+        'plural' => 'sites'];
+
+    protected $_operations = [];
+
+    public function setFields()
+    {
+        parent::setFields();
+
+        $this->addField('name', Text::class, __('Projet'), ['column' => true]);
+    }
+
+}