]> _ Git - fluidbook-toolbox.git/commitdiff
wip #5389 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 12 Aug 2022 08:28:38 +0000 (10:28 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 12 Aug 2022 08:28:38 +0000 (10:28 +0200)
app/Models/Traits/PublicationSettings.php

index 6e8afeba1f78b92634dcb65604f06ec79a73ec01..56ddd987bfc9570fe021f95523a432a73e5b362e 100644 (file)
@@ -14,7 +14,9 @@ use Cubist\Backpack\Magic\Fields\Hidden;
 use Cubist\Backpack\Magic\Fields\Integer;
 use Cubist\Backpack\Magic\Fields\LongText;
 use Cubist\Backpack\Magic\Fields\Number;
+use Cubist\Backpack\Magic\Fields\ReadOnlyValue;
 use Cubist\Backpack\Magic\Fields\SelectFromArray;
+use Cubist\Backpack\Magic\Fields\StaticValue;
 use Cubist\Backpack\Magic\Fields\Textarea;
 
 
@@ -497,7 +499,7 @@ trait PublicationSettings
                 'pdf' => $this->__('Cairo'),
                 'mu' => $this->__('Mu'),
             ],
-            'default' => 'pdftocairo',
+            'default' => 'pdf',
             'fake' => true,
             'store_in' => 'settings',
             'translatable' => false,
@@ -598,21 +600,21 @@ trait PublicationSettings
             'store_in' => 'settings',
             'translatable' => false,
         ]);
-        $this->addField('pages', Integer::class, $this->__('Nombre de pages'), [
+        $this->addField('pages', ReadOnlyValue::class, $this->__('Nombre de pages'), [
             'v2' => '{"type":"integer","default":0,"editable":false,"label":"\\u00a7!\\u00a7Nombre de pages!\\u00a7!"}',
             'default' => 0,
             'fake' => true,
             'store_in' => 'settings',
             'translatable' => false,
         ]);
-        $this->addField('width', Number::class, $this->__('Largeur'), [
+        $this->addField('width', ReadOnlyValue::class, $this->__('Largeur'), [
             'v2' => '{"type":"float","default":0,"editable":false,"label":"\\u00a7!\\u00a7Largeur!\\u00a7!"}',
             'default' => 0,
             'fake' => true,
             'store_in' => 'settings',
             'translatable' => false,
         ]);
-        $this->addField('height', Number::class, $this->__('Hauteur'), [
+        $this->addField('height', ReadOnlyValue::class, $this->__('Hauteur'), [
             'v2' => '{"type":"float","default":0,"editable":false,"label":"\\u00a7!\\u00a7Hauteur!\\u00a7!"}',
             'default' => 0,
             'fake' => true,
@@ -2132,7 +2134,7 @@ trait PublicationSettings
                 'icon-360' => $this->__('360°'),
                 'icon-photo' => $this->__('Photo'),
             ],
-            'default' => 'click',
+            'default' => 'none',
             'fake' => true,
             'store_in' => 'settings',
             'translatable' => false,
@@ -2189,7 +2191,7 @@ trait PublicationSettings
                 'icon-360' => $this->__('360°'),
                 'icon-photo' => $this->__('Photo'),
             ],
-            'default' => 'click',
+            'default' => 'none',
             'fake' => true,
             'store_in' => 'settings',
             'translatable' => false,
@@ -2246,7 +2248,7 @@ trait PublicationSettings
                 'icon-360' => $this->__('360°'),
                 'icon-photo' => $this->__('Photo'),
             ],
-            'default' => 'click',
+            'default' => 'none',
             'fake' => true,
             'store_in' => 'settings',
             'translatable' => false,
@@ -2425,7 +2427,7 @@ trait PublicationSettings
                 'harmonie-mutuelle' => 'Harmonie Mutuelle',
                 'business-immo' => 'Business Immo',
             ],
-            'default' => true,
+            'default' => "default",
             'fake' => true,
             'store_in' => 'settings',
             'translatable' => false,
@@ -2532,7 +2534,7 @@ trait PublicationSettings
                 'CFOC' => 'CFOC',
                 'Bastide' => 'Bastide',
             ],
-            'default' => 'classic',
+            'default' => 'com.fluidbook.player.basket.BasketManager',
             'fake' => true,
             'store_in' => 'settings',
             'translatable' => false,