@@ -99,83 +99,83 @@ |
||
| 99 | 99 | $json = (string)json_encode($this->rows, JSON_HEX_QUOT | JSON_HEX_TAG | JSON_HEX_AMP | JSON_HEX_APOS); |
| 100 | 100 | $html = []; |
| 101 | 101 | $html[] = '<div class="formengine-field-item t3js-formengine-field-item">'; |
| 102 | - $html[] = $fieldInformationHtml; |
|
| 103 | - $html[] = '<div class="form-control-wrap">'; |
|
| 104 | - $html[] = '<div class="form-wizards-wrap">'; |
|
| 105 | - $html[] = '<div class="form-wizards-element">'; |
|
| 106 | - $html[] = '<input'; |
|
| 107 | - $html[] = ' type="hidden"'; |
|
| 108 | - $html[] = ' name="' . htmlspecialchars($this->data['parameterArray']['itemFormElName']) . '"'; |
|
| 109 | - $html[] = ' value="' . htmlspecialchars($this->data['parameterArray']['itemFormElValue']) . '"'; |
|
| 110 | - $html[] = '/>'; |
|
| 111 | - $html[] = '<table class="grideditor table table-bordered">'; |
|
| 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-removerow-top" href="#"'; |
|
| 116 | - $html[] = ' title="' . htmlspecialchars($lang->getLL('grid_removeRow')) . '">'; |
|
| 117 | - $html[] = '<i class="fa fa-fw fa-minus"></i>'; |
|
| 118 | - $html[] = '</a>'; |
|
| 119 | - $html[] = '<a class="btn btn-default btn-sm t3js-grideditor-addrow-top" href="#"'; |
|
| 120 | - $html[] = ' title="' . htmlspecialchars($lang->getLL('grid_addRow')) . '">'; |
|
| 121 | - $html[] = '<i class="fa fa-fw fa-plus"></i>'; |
|
| 122 | - $html[] = '</a>'; |
|
| 123 | - $html[] = '</div>'; |
|
| 124 | - $html[] = '</td>'; |
|
| 125 | - $html[] = '</tr>'; |
|
| 126 | - $html[] = '<tr>'; |
|
| 127 | - $html[] = '<td class="editor_cell">'; |
|
| 128 | - $html[] = '<div'; |
|
| 129 | - $html[] = ' id="editor"'; |
|
| 130 | - $html[] = ' class="t3js-grideditor"'; |
|
| 131 | - $html[] = ' data-data="' . htmlspecialchars($json) . '"'; |
|
| 132 | - $html[] = ' data-rowcount="' . (int)$this->rowCount . '"'; |
|
| 133 | - $html[] = ' data-colcount="' . (int)$this->colCount . '"'; |
|
| 134 | - $html[] = ' data-field="' . htmlspecialchars($this->data['parameterArray']['itemFormElName']) . '"'; |
|
| 135 | - $html[] = '>'; |
|
| 136 | - $html[] = '</div>'; |
|
| 137 | - $html[] = '</td>'; |
|
| 138 | - $html[] = '<td>'; |
|
| 139 | - $html[] = '<div class="btn-group-vertical">'; |
|
| 140 | - $html[] = '<a class="btn btn-default btn-sm t3js-grideditor-addcolumn" href="#"'; |
|
| 141 | - $html[] = ' title="' . htmlspecialchars($lang->getLL('grid_addColumn')) . '">'; |
|
| 142 | - $html[] = '<i class="fa fa-fw fa-plus"></i>'; |
|
| 143 | - $html[] = '</a>'; |
|
| 144 | - $html[] = '<a class="btn btn-default btn-sm t3js-grideditor-removecolumn" href="#"'; |
|
| 145 | - $html[] = ' title="' . htmlspecialchars($lang->getLL('grid_removeColumn')) . '">'; |
|
| 146 | - $html[] = '<i class="fa fa-fw fa-minus"></i>'; |
|
| 147 | - $html[] = '</a>'; |
|
| 148 | - $html[] = '</div>'; |
|
| 149 | - $html[] = '</td>'; |
|
| 150 | - $html[] = '</tr>'; |
|
| 151 | - $html[] = '<tr>'; |
|
| 152 | - $html[] = '<td colspan="2" align="center">'; |
|
| 153 | - $html[] = '<div class="btn-group">'; |
|
| 154 | - $html[] = '<a class="btn btn-default btn-sm t3js-grideditor-addrow-bottom" href="#"'; |
|
| 155 | - $html[] = ' title="' . htmlspecialchars($lang->getLL('grid_addRow')) . '">'; |
|
| 156 | - $html[] = '<i class="fa fa-fw fa-plus"></i>'; |
|
| 157 | - $html[] = '</a>'; |
|
| 158 | - $html[] = '<a class="btn btn-default btn-sm t3js-grideditor-removerow-bottom" href="#"'; |
|
| 159 | - $html[] = ' title="' . htmlspecialchars($lang->getLL('grid_removeRow')) . '">'; |
|
| 160 | - $html[] = '<i class="fa fa-fw fa-minus"></i>'; |
|
| 161 | - $html[] = '</a>'; |
|
| 162 | - $html[] = '</div>'; |
|
| 163 | - $html[] = '</td>'; |
|
| 164 | - $html[] = '</tr>'; |
|
| 165 | - $html[] = '<tr>'; |
|
| 166 | - $html[] = '<td colspan="2">'; |
|
| 167 | - $html[] = $editor; |
|
| 168 | - $html[] = '</td>'; |
|
| 169 | - $html[] = '</tr>'; |
|
| 170 | - $html[] = '</table>'; |
|
| 171 | - $html[] = '</div>'; |
|
| 102 | + $html[] = $fieldInformationHtml; |
|
| 103 | + $html[] = '<div class="form-control-wrap">'; |
|
| 104 | + $html[] = '<div class="form-wizards-wrap">'; |
|
| 105 | + $html[] = '<div class="form-wizards-element">'; |
|
| 106 | + $html[] = '<input'; |
|
| 107 | + $html[] = ' type="hidden"'; |
|
| 108 | + $html[] = ' name="' . htmlspecialchars($this->data['parameterArray']['itemFormElName']) . '"'; |
|
| 109 | + $html[] = ' value="' . htmlspecialchars($this->data['parameterArray']['itemFormElValue']) . '"'; |
|
| 110 | + $html[] = '/>'; |
|
| 111 | + $html[] = '<table class="grideditor table table-bordered">'; |
|
| 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-removerow-top" href="#"'; |
|
| 116 | + $html[] = ' title="' . htmlspecialchars($lang->getLL('grid_removeRow')) . '">'; |
|
| 117 | + $html[] = '<i class="fa fa-fw fa-minus"></i>'; |
|
| 118 | + $html[] = '</a>'; |
|
| 119 | + $html[] = '<a class="btn btn-default btn-sm t3js-grideditor-addrow-top" href="#"'; |
|
| 120 | + $html[] = ' title="' . htmlspecialchars($lang->getLL('grid_addRow')) . '">'; |
|
| 121 | + $html[] = '<i class="fa fa-fw fa-plus"></i>'; |
|
| 122 | + $html[] = '</a>'; |
|
| 123 | + $html[] = '</div>'; |
|
| 124 | + $html[] = '</td>'; |
|
| 125 | + $html[] = '</tr>'; |
|
| 126 | + $html[] = '<tr>'; |
|
| 127 | + $html[] = '<td class="editor_cell">'; |
|
| 128 | + $html[] = '<div'; |
|
| 129 | + $html[] = ' id="editor"'; |
|
| 130 | + $html[] = ' class="t3js-grideditor"'; |
|
| 131 | + $html[] = ' data-data="' . htmlspecialchars($json) . '"'; |
|
| 132 | + $html[] = ' data-rowcount="' . (int)$this->rowCount . '"'; |
|
| 133 | + $html[] = ' data-colcount="' . (int)$this->colCount . '"'; |
|
| 134 | + $html[] = ' data-field="' . htmlspecialchars($this->data['parameterArray']['itemFormElName']) . '"'; |
|
| 135 | + $html[] = '>'; |
|
| 136 | + $html[] = '</div>'; |
|
| 137 | + $html[] = '</td>'; |
|
| 138 | + $html[] = '<td>'; |
|
| 139 | + $html[] = '<div class="btn-group-vertical">'; |
|
| 140 | + $html[] = '<a class="btn btn-default btn-sm t3js-grideditor-addcolumn" href="#"'; |
|
| 141 | + $html[] = ' title="' . htmlspecialchars($lang->getLL('grid_addColumn')) . '">'; |
|
| 142 | + $html[] = '<i class="fa fa-fw fa-plus"></i>'; |
|
| 143 | + $html[] = '</a>'; |
|
| 144 | + $html[] = '<a class="btn btn-default btn-sm t3js-grideditor-removecolumn" href="#"'; |
|
| 145 | + $html[] = ' title="' . htmlspecialchars($lang->getLL('grid_removeColumn')) . '">'; |
|
| 146 | + $html[] = '<i class="fa fa-fw fa-minus"></i>'; |
|
| 147 | + $html[] = '</a>'; |
|
| 148 | + $html[] = '</div>'; |
|
| 149 | + $html[] = '</td>'; |
|
| 150 | + $html[] = '</tr>'; |
|
| 151 | + $html[] = '<tr>'; |
|
| 152 | + $html[] = '<td colspan="2" align="center">'; |
|
| 153 | + $html[] = '<div class="btn-group">'; |
|
| 154 | + $html[] = '<a class="btn btn-default btn-sm t3js-grideditor-addrow-bottom" href="#"'; |
|
| 155 | + $html[] = ' title="' . htmlspecialchars($lang->getLL('grid_addRow')) . '">'; |
|
| 156 | + $html[] = '<i class="fa fa-fw fa-plus"></i>'; |
|
| 157 | + $html[] = '</a>'; |
|
| 158 | + $html[] = '<a class="btn btn-default btn-sm t3js-grideditor-removerow-bottom" href="#"'; |
|
| 159 | + $html[] = ' title="' . htmlspecialchars($lang->getLL('grid_removeRow')) . '">'; |
|
| 160 | + $html[] = '<i class="fa fa-fw fa-minus"></i>'; |
|
| 161 | + $html[] = '</a>'; |
|
| 162 | + $html[] = '</div>'; |
|
| 163 | + $html[] = '</td>'; |
|
| 164 | + $html[] = '</tr>'; |
|
| 165 | + $html[] = '<tr>'; |
|
| 166 | + $html[] = '<td colspan="2">'; |
|
| 167 | + $html[] = $editor; |
|
| 168 | + $html[] = '</td>'; |
|
| 169 | + $html[] = '</tr>'; |
|
| 170 | + $html[] = '</table>'; |
|
| 171 | + $html[] = '</div>'; |
|
| 172 | 172 | if (!empty($fieldWizardHtml)) { |
| 173 | 173 | $html[] = '<div class="form-wizards-items-bottom">'; |
| 174 | 174 | $html[] = $fieldWizardHtml; |
| 175 | 175 | $html[] = '</div>'; |
| 176 | 176 | } |
| 177 | - $html[] = '</div>'; |
|
| 178 | - $html[] = '</div>'; |
|
| 177 | + $html[] = '</div>'; |
|
| 178 | + $html[] = '</div>'; |
|
| 179 | 179 | $html[] = '</div>'; |
| 180 | 180 | |
| 181 | 181 | $html = implode(LF, $html); |