';\r
foreach ($this->forms as $formname => $form) {\r
if ($tab !== 'form') {\r
- echo $this->generateV3Field(['name' => 'section_' . $formname, 'type' => 'FormSection', 'label' => $form['label']]);\r
+ echo $this->generateV3Field(['name' => 'section_' . $formname, 'type' => 'FormSection', 'label' => '§!§'.$form['label'].'!§!']);\r
$_tab = $tab;\r
} else {\r
$_tab = $form['label'];\r
\r
public function _generateV3Field($name, $f, $tab = false)\r
{\r
- if (stristr($name, '-')) {\r
- die($name);\r
- }\r
-\r
$typeMap = ['combo' => 'SelectFromArray', 'boolean' => 'Checkbox', 'couleur' => 'Color', 'couleurAlpha' => 'Color', 'integer' => 'Integer', 'float' => 'Number', 'text' => 'LongText', 'textarea' => 'Textarea', 'file' => 'Images', 'freefile' => 'FilesOrURL'];\r
$copyAttrs = ['min' => 'min', 'max' => 'max', 'default' => 'default', 'allows_alpha' => 'allows_alpha'];\r
$transAttrs = ['label' => 'label', 'hint' => 'hint'];\r
\r
$attrs = ['name' => $name, 'type' => isset($typeMap[$f['type']]) ? $typeMap[$f['type']] : $f['type']];\r
\r
+ if ($name == 'signature') {\r
+ $attrs['type'] = 'FluidbookSignature';\r
+ $attrs['default'] = '1';\r
+ } else if ($name == 'mobileLVersion') {\r
+ $attrs['type'] = 'FluidbookDevelopmentVersion';\r
+ }\r
+\r
if ($attrs['type'] === 'SelectFromArray') {\r
$attrs['options'] = array_flip($f['datas']);\r
}\r