|
@@ -78,22 +78,22 @@ discard block |
|
|
block discarded – undo |
|
78
|
78
|
} |
|
79
|
79
|
$containerTemplateHtml = []; |
|
80
|
80
|
$containerTemplateHtml[] = '<a'; |
|
81
|
|
- $containerTemplateHtml[] = 'href="#"'; |
|
82
|
|
- $containerTemplateHtml[] = 'class="btn btn-default t3js-flex-container-add"'; |
|
83
|
|
- $containerTemplateHtml[] = 'data-vanillauid="' . (int)$this->data['vanillaUid'] . '"'; |
|
|
81
|
+ $containerTemplateHtml[] = 'href="#"'; |
|
|
82
|
+ $containerTemplateHtml[] = 'class="btn btn-default t3js-flex-container-add"'; |
|
|
83
|
+ $containerTemplateHtml[] = 'data-vanillauid="' . (int)$this->data['vanillaUid'] . '"'; |
|
84
|
84
|
// no int cast for databaseRow uid, this can be "NEW1234..." |
|
85
|
|
- $containerTemplateHtml[] = 'data-databaserowuid="' . htmlspecialchars($this->data['databaseRow']['uid']) . '"'; |
|
86
|
|
- $containerTemplateHtml[] = 'data-command="' . htmlspecialchars($this->data['command']) . '"'; |
|
87
|
|
- $containerTemplateHtml[] = 'data-tablename="' . htmlspecialchars($this->data['tableName']) . '"'; |
|
88
|
|
- $containerTemplateHtml[] = 'data-fieldname="' . htmlspecialchars($this->data['fieldName']) . '"'; |
|
89
|
|
- $containerTemplateHtml[] = 'data-recordtypevalue="' . $this->data['recordTypeValue'] . '"'; |
|
90
|
|
- $containerTemplateHtml[] = 'data-datastructureidentifier="' . htmlspecialchars($flexFormDataStructureIdentifier) . '"'; |
|
91
|
|
- $containerTemplateHtml[] = 'data-flexformsheetname="' . htmlspecialchars($flexFormSheetName) . '"'; |
|
92
|
|
- $containerTemplateHtml[] = 'data-flexformfieldname="' . htmlspecialchars($flexFormFieldName) . '"'; |
|
93
|
|
- $containerTemplateHtml[] = 'data-flexformcontainername="' . htmlspecialchars($flexFormContainerName) . '"'; |
|
|
85
|
+ $containerTemplateHtml[] = 'data-databaserowuid="' . htmlspecialchars($this->data['databaseRow']['uid']) . '"'; |
|
|
86
|
+ $containerTemplateHtml[] = 'data-command="' . htmlspecialchars($this->data['command']) . '"'; |
|
|
87
|
+ $containerTemplateHtml[] = 'data-tablename="' . htmlspecialchars($this->data['tableName']) . '"'; |
|
|
88
|
+ $containerTemplateHtml[] = 'data-fieldname="' . htmlspecialchars($this->data['fieldName']) . '"'; |
|
|
89
|
+ $containerTemplateHtml[] = 'data-recordtypevalue="' . $this->data['recordTypeValue'] . '"'; |
|
|
90
|
+ $containerTemplateHtml[] = 'data-datastructureidentifier="' . htmlspecialchars($flexFormDataStructureIdentifier) . '"'; |
|
|
91
|
+ $containerTemplateHtml[] = 'data-flexformsheetname="' . htmlspecialchars($flexFormSheetName) . '"'; |
|
|
92
|
+ $containerTemplateHtml[] = 'data-flexformfieldname="' . htmlspecialchars($flexFormFieldName) . '"'; |
|
|
93
|
+ $containerTemplateHtml[] = 'data-flexformcontainername="' . htmlspecialchars($flexFormContainerName) . '"'; |
|
94
|
94
|
$containerTemplateHtml[] = '>'; |
|
95
|
|
- $containerTemplateHtml[] = $iconFactory->getIcon('actions-document-new', Icon::SIZE_SMALL)->render(); |
|
96
|
|
- $containerTemplateHtml[] = htmlspecialchars(GeneralUtility::fixed_lgd_cs($containerTitle, 30)); |
|
|
95
|
+ $containerTemplateHtml[] = $iconFactory->getIcon('actions-document-new', Icon::SIZE_SMALL)->render(); |
|
|
96
|
+ $containerTemplateHtml[] = htmlspecialchars(GeneralUtility::fixed_lgd_cs($containerTitle, 30)); |
|
97
|
97
|
$containerTemplateHtml[] = '</a>'; |
|
98
|
98
|
$containerTemplatesHtml[] = implode(LF, $containerTemplateHtml); |
|
99
|
99
|
} |
|
@@ -101,9 +101,9 @@ discard block |
|
|
block discarded – undo |
|
101
|
101
|
$createElementsHtml = []; |
|
102
|
102
|
if ($userHasAccessToDefaultLanguage) { |
|
103
|
103
|
$createElementsHtml[] = '<div class="t3-form-field-add-flexsection">'; |
|
104
|
|
- $createElementsHtml[] = '<div class="btn-group">'; |
|
105
|
|
- $createElementsHtml[] = implode('', $containerTemplatesHtml); |
|
106
|
|
- $createElementsHtml[] = '</div>'; |
|
|
104
|
+ $createElementsHtml[] = '<div class="btn-group">'; |
|
|
105
|
+ $createElementsHtml[] = implode('', $containerTemplatesHtml); |
|
|
106
|
+ $createElementsHtml[] = '</div>'; |
|
107
|
107
|
$createElementsHtml[] = '</div>'; |
|
108
|
108
|
} |
|
109
|
109
|
|
|
@@ -116,28 +116,28 @@ discard block |
|
|
block discarded – undo |
|
116
|
116
|
$toggleAll = htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.toggleall')); |
|
117
|
117
|
$html = []; |
|
118
|
118
|
$html[] = '<div class="panel panel-tab">'; |
|
119
|
|
- $html[] = '<div class="panel-body">'; |
|
120
|
|
- $html[] = '<div class="t3-form-field-container t3-form-flex">'; |
|
121
|
|
- $html[] = '<div class="t3-form-field-label-flexsection">'; |
|
122
|
|
- $html[] = '<h4>'; |
|
123
|
|
- $html[] = htmlspecialchars($sectionTitle); |
|
124
|
|
- $html[] = '</h4>'; |
|
125
|
|
- $html[] = '</div>'; |
|
126
|
|
- $html[] = '<div class="t3js-form-field-toggle-flexsection t3-form-flexsection-toggle">'; |
|
127
|
|
- $html[] = '<a class="btn btn-default" href="#" title="' . $toggleAll . '">'; |
|
128
|
|
- $html[] = $iconFactory->getIcon('actions-move-right', Icon::SIZE_SMALL)->render() . $toggleAll; |
|
129
|
|
- $html[] = '</a>'; |
|
130
|
|
- $html[] = '</div>'; |
|
131
|
|
- $html[] = '<div'; |
|
132
|
|
- $html[] = 'id="flexform-container-' . htmlspecialchars($flexFormFieldName) . '"'; |
|
133
|
|
- $html[] = 'class="panel-group panel-hover t3-form-field-container-flexsection t3-flex-container"'; |
|
134
|
|
- $html[] = 'data-t3-flex-allow-restructure="' . ($userHasAccessToDefaultLanguage ? '1' : '0') . '"'; |
|
135
|
|
- $html[] = '>'; |
|
136
|
|
- $html[] = $resultArray['html']; |
|
137
|
|
- $html[] = '</div>'; |
|
138
|
|
- $html[] = implode(LF, $createElementsHtml); |
|
139
|
|
- $html[] = '</div>'; |
|
140
|
|
- $html[] = '</div>'; |
|
|
119
|
+ $html[] = '<div class="panel-body">'; |
|
|
120
|
+ $html[] = '<div class="t3-form-field-container t3-form-flex">'; |
|
|
121
|
+ $html[] = '<div class="t3-form-field-label-flexsection">'; |
|
|
122
|
+ $html[] = '<h4>'; |
|
|
123
|
+ $html[] = htmlspecialchars($sectionTitle); |
|
|
124
|
+ $html[] = '</h4>'; |
|
|
125
|
+ $html[] = '</div>'; |
|
|
126
|
+ $html[] = '<div class="t3js-form-field-toggle-flexsection t3-form-flexsection-toggle">'; |
|
|
127
|
+ $html[] = '<a class="btn btn-default" href="#" title="' . $toggleAll . '">'; |
|
|
128
|
+ $html[] = $iconFactory->getIcon('actions-move-right', Icon::SIZE_SMALL)->render() . $toggleAll; |
|
|
129
|
+ $html[] = '</a>'; |
|
|
130
|
+ $html[] = '</div>'; |
|
|
131
|
+ $html[] = '<div'; |
|
|
132
|
+ $html[] = 'id="flexform-container-' . htmlspecialchars($flexFormFieldName) . '"'; |
|
|
133
|
+ $html[] = 'class="panel-group panel-hover t3-form-field-container-flexsection t3-flex-container"'; |
|
|
134
|
+ $html[] = 'data-t3-flex-allow-restructure="' . ($userHasAccessToDefaultLanguage ? '1' : '0') . '"'; |
|
|
135
|
+ $html[] = '>'; |
|
|
136
|
+ $html[] = $resultArray['html']; |
|
|
137
|
+ $html[] = '</div>'; |
|
|
138
|
+ $html[] = implode(LF, $createElementsHtml); |
|
|
139
|
+ $html[] = '</div>'; |
|
|
140
|
+ $html[] = '</div>'; |
|
141
|
141
|
$html[] = '</div>'; |
|
142
|
142
|
|
|
143
|
143
|
$resultArray['html'] = implode(LF, $html); |