@@ -60,84 +60,84 @@ |
||
60 | 60 | $json = (string)json_encode($this->rows, JSON_HEX_QUOT | JSON_HEX_TAG | JSON_HEX_AMP | JSON_HEX_APOS); |
61 | 61 | $html = []; |
62 | 62 | $html[] = '<div class="formengine-field-item t3js-formengine-field-item">'; |
63 | - $html[] = $fieldInformationHtml; |
|
64 | - $html[] = '<div class="form-control-wrap">'; |
|
65 | - $html[] = '<div class="form-wizards-wrap">'; |
|
66 | - $html[] = '<div class="form-wizards-element">'; |
|
67 | - $html[] = '<input'; |
|
68 | - $html[] = ' type="hidden"'; |
|
69 | - $html[] = ' name="' . htmlspecialchars($this->data['parameterArray']['itemFormElName']) . '"'; |
|
70 | - $html[] = ' value="' . htmlspecialchars($this->data['parameterArray']['itemFormElValue']) . '"'; |
|
71 | - $html[] = '/>'; |
|
72 | - $html[] = '<table class="grideditor table table-bordered">'; |
|
73 | - $html[] = '<tr>'; |
|
74 | - $html[] = '<td colspan="2" align="center">'; |
|
75 | - $html[] = '<div class="btn-group">'; |
|
76 | - $html[] = '<a class="btn btn-default btn-sm t3js-grideditor-removerow-top" href="#"'; |
|
77 | - $html[] = ' title="' . htmlspecialchars($lang->getLL('grid_removeRow')) . '">'; |
|
78 | - $html[] = '<i class="fa fa-fw fa-minus"></i>'; |
|
79 | - $html[] = '</a>'; |
|
80 | - $html[] = '<a class="btn btn-default btn-sm t3js-grideditor-addrow-top" href="#"'; |
|
81 | - $html[] = ' title="' . htmlspecialchars($lang->getLL('grid_addRow')) . '">'; |
|
82 | - $html[] = '<i class="fa fa-fw fa-plus"></i>'; |
|
83 | - $html[] = '</a>'; |
|
84 | - $html[] = '</div>'; |
|
85 | - $html[] = '</td>'; |
|
86 | - $html[] = '</tr>'; |
|
87 | - $html[] = '<tr>'; |
|
88 | - $html[] = '<td class="editor_cell">'; |
|
89 | - $html[] = '<div'; |
|
90 | - $html[] = ' id="editor"'; |
|
91 | - $html[] = ' class="t3js-grideditor"'; |
|
92 | - $html[] = ' data-data="' . htmlspecialchars($json) . '"'; |
|
93 | - $html[] = ' data-rowcount="' . (int)$this->rowCount . '"'; |
|
94 | - $html[] = ' data-colcount="' . (int)$this->colCount . '"'; |
|
95 | - $html[] = ' data-field="' . htmlspecialchars($this->data['parameterArray']['itemFormElName']) . '"'; |
|
96 | - $html[] = '>'; |
|
97 | - $html[] = '</div>'; |
|
98 | - $html[] = '</td>'; |
|
99 | - $html[] = '<td>'; |
|
100 | - $html[] = '<div class="btn-group-vertical">'; |
|
101 | - $html[] = '<a class="btn btn-default btn-sm t3js-grideditor-addcolumn" href="#"'; |
|
102 | - $html[] = ' title="' . htmlspecialchars($lang->getLL('grid_addColumn')) . '">'; |
|
103 | - $html[] = '<i class="fa fa-fw fa-plus"></i>'; |
|
104 | - $html[] = '</a>'; |
|
105 | - $html[] = '<a class="btn btn-default btn-sm t3js-grideditor-removecolumn" href="#"'; |
|
106 | - $html[] = ' title="' . htmlspecialchars($lang->getLL('grid_removeColumn')) . '">'; |
|
107 | - $html[] = '<i class="fa fa-fw fa-minus"></i>'; |
|
108 | - $html[] = '</a>'; |
|
109 | - $html[] = '</div>'; |
|
110 | - $html[] = '</td>'; |
|
111 | - $html[] = '</tr>'; |
|
112 | - $html[] = '<tr>'; |
|
113 | - $html[] = '<td colspan="2" align="center">'; |
|
114 | - $html[] = '<div class="btn-group">'; |
|
115 | - $html[] = '<a class="btn btn-default btn-sm t3js-grideditor-addrow-bottom" href="#"'; |
|
116 | - $html[] = ' title="' . htmlspecialchars($lang->getLL('grid_addRow')) . '">'; |
|
117 | - $html[] = '<i class="fa fa-fw fa-plus"></i>'; |
|
118 | - $html[] = '</a>'; |
|
119 | - $html[] = '<a class="btn btn-default btn-sm t3js-grideditor-removerow-bottom" href="#"'; |
|
120 | - $html[] = ' title="' . htmlspecialchars($lang->getLL('grid_removeRow')) . '">'; |
|
121 | - $html[] = '<i class="fa fa-fw fa-minus"></i>'; |
|
122 | - $html[] = '</a>'; |
|
123 | - $html[] = '</div>'; |
|
124 | - $html[] = '</td>'; |
|
125 | - $html[] = '</tr>'; |
|
126 | - $html[] = '<tr>'; |
|
127 | - $html[] = '<td colspan="2">'; |
|
128 | - $html[] = '<a href="#" class="btn btn-default btn-sm t3js-grideditor-preview-button"></a>'; |
|
129 | - $html[] = '<pre class="t3js-grideditor-preview-config grideditor-preview"><code></code></pre>'; |
|
130 | - $html[] = '</td>'; |
|
131 | - $html[] = '</tr>'; |
|
132 | - $html[] = '</table>'; |
|
133 | - $html[] = '</div>'; |
|
63 | + $html[] = $fieldInformationHtml; |
|
64 | + $html[] = '<div class="form-control-wrap">'; |
|
65 | + $html[] = '<div class="form-wizards-wrap">'; |
|
66 | + $html[] = '<div class="form-wizards-element">'; |
|
67 | + $html[] = '<input'; |
|
68 | + $html[] = ' type="hidden"'; |
|
69 | + $html[] = ' name="' . htmlspecialchars($this->data['parameterArray']['itemFormElName']) . '"'; |
|
70 | + $html[] = ' value="' . htmlspecialchars($this->data['parameterArray']['itemFormElValue']) . '"'; |
|
71 | + $html[] = '/>'; |
|
72 | + $html[] = '<table class="grideditor table table-bordered">'; |
|
73 | + $html[] = '<tr>'; |
|
74 | + $html[] = '<td colspan="2" align="center">'; |
|
75 | + $html[] = '<div class="btn-group">'; |
|
76 | + $html[] = '<a class="btn btn-default btn-sm t3js-grideditor-removerow-top" href="#"'; |
|
77 | + $html[] = ' title="' . htmlspecialchars($lang->getLL('grid_removeRow')) . '">'; |
|
78 | + $html[] = '<i class="fa fa-fw fa-minus"></i>'; |
|
79 | + $html[] = '</a>'; |
|
80 | + $html[] = '<a class="btn btn-default btn-sm t3js-grideditor-addrow-top" href="#"'; |
|
81 | + $html[] = ' title="' . htmlspecialchars($lang->getLL('grid_addRow')) . '">'; |
|
82 | + $html[] = '<i class="fa fa-fw fa-plus"></i>'; |
|
83 | + $html[] = '</a>'; |
|
84 | + $html[] = '</div>'; |
|
85 | + $html[] = '</td>'; |
|
86 | + $html[] = '</tr>'; |
|
87 | + $html[] = '<tr>'; |
|
88 | + $html[] = '<td class="editor_cell">'; |
|
89 | + $html[] = '<div'; |
|
90 | + $html[] = ' id="editor"'; |
|
91 | + $html[] = ' class="t3js-grideditor"'; |
|
92 | + $html[] = ' data-data="' . htmlspecialchars($json) . '"'; |
|
93 | + $html[] = ' data-rowcount="' . (int)$this->rowCount . '"'; |
|
94 | + $html[] = ' data-colcount="' . (int)$this->colCount . '"'; |
|
95 | + $html[] = ' data-field="' . htmlspecialchars($this->data['parameterArray']['itemFormElName']) . '"'; |
|
96 | + $html[] = '>'; |
|
97 | + $html[] = '</div>'; |
|
98 | + $html[] = '</td>'; |
|
99 | + $html[] = '<td>'; |
|
100 | + $html[] = '<div class="btn-group-vertical">'; |
|
101 | + $html[] = '<a class="btn btn-default btn-sm t3js-grideditor-addcolumn" href="#"'; |
|
102 | + $html[] = ' title="' . htmlspecialchars($lang->getLL('grid_addColumn')) . '">'; |
|
103 | + $html[] = '<i class="fa fa-fw fa-plus"></i>'; |
|
104 | + $html[] = '</a>'; |
|
105 | + $html[] = '<a class="btn btn-default btn-sm t3js-grideditor-removecolumn" href="#"'; |
|
106 | + $html[] = ' title="' . htmlspecialchars($lang->getLL('grid_removeColumn')) . '">'; |
|
107 | + $html[] = '<i class="fa fa-fw fa-minus"></i>'; |
|
108 | + $html[] = '</a>'; |
|
109 | + $html[] = '</div>'; |
|
110 | + $html[] = '</td>'; |
|
111 | + $html[] = '</tr>'; |
|
112 | + $html[] = '<tr>'; |
|
113 | + $html[] = '<td colspan="2" align="center">'; |
|
114 | + $html[] = '<div class="btn-group">'; |
|
115 | + $html[] = '<a class="btn btn-default btn-sm t3js-grideditor-addrow-bottom" href="#"'; |
|
116 | + $html[] = ' title="' . htmlspecialchars($lang->getLL('grid_addRow')) . '">'; |
|
117 | + $html[] = '<i class="fa fa-fw fa-plus"></i>'; |
|
118 | + $html[] = '</a>'; |
|
119 | + $html[] = '<a class="btn btn-default btn-sm t3js-grideditor-removerow-bottom" href="#"'; |
|
120 | + $html[] = ' title="' . htmlspecialchars($lang->getLL('grid_removeRow')) . '">'; |
|
121 | + $html[] = '<i class="fa fa-fw fa-minus"></i>'; |
|
122 | + $html[] = '</a>'; |
|
123 | + $html[] = '</div>'; |
|
124 | + $html[] = '</td>'; |
|
125 | + $html[] = '</tr>'; |
|
126 | + $html[] = '<tr>'; |
|
127 | + $html[] = '<td colspan="2">'; |
|
128 | + $html[] = '<a href="#" class="btn btn-default btn-sm t3js-grideditor-preview-button"></a>'; |
|
129 | + $html[] = '<pre class="t3js-grideditor-preview-config grideditor-preview"><code></code></pre>'; |
|
130 | + $html[] = '</td>'; |
|
131 | + $html[] = '</tr>'; |
|
132 | + $html[] = '</table>'; |
|
133 | + $html[] = '</div>'; |
|
134 | 134 | if (!empty($fieldWizardHtml)) { |
135 | 135 | $html[] = '<div class="form-wizards-items-bottom">'; |
136 | 136 | $html[] = $fieldWizardHtml; |
137 | 137 | $html[] = '</div>'; |
138 | 138 | } |
139 | - $html[] = '</div>'; |
|
140 | - $html[] = '</div>'; |
|
139 | + $html[] = '</div>'; |
|
140 | + $html[] = '</div>'; |
|
141 | 141 | $html[] = '</div>'; |
142 | 142 | |
143 | 143 | $html = implode(LF, $html); |