@@ -218,7 +218,7 @@ public function showForm($options = []) {
218218
219219 echo '<tr class="line1"> ' ;
220220 echo '<td width="15%"><strong> ' . __ ('Name ' ) . ' <span style="color:red;">*</span></strong></td> ' ;
221- echo '<td width="85%"><input type="text" name="name" style="width:704px;" value=" ' . $ target ['name ' ] . '"></textarea </td> ' ;
221+ echo '<td width="85%"><input type="text" name="name" style="width:704px;" value=" ' . $ target ['name ' ] . '"/> </td> ' ;
222222 echo '</tr> ' ;
223223
224224 echo '</table> ' ;
@@ -230,66 +230,47 @@ public function showForm($options = []) {
230230
231231 echo '<tr class="line1"> ' ;
232232 echo '<td><strong> ' . __ ('Change title ' , 'formcreator ' ) . ' <span style="color:red;">*</span></strong></td> ' ;
233- echo '<td colspan="3"><input type="text" name="title" style="width:704px;" value=" ' . $ this ->fields ['name ' ] . '"></textarea</td> ' ;
233+ echo '<td colspan="3"><input type="text" name="title" style="width:704px;" value=" ' . $ this ->fields ['name ' ] . '"></textarea> </td> ' ;
234234 echo '</tr> ' ;
235235
236236 echo '<tr class="line0"> ' ;
237237 echo '<td><strong> ' . __ ('Description ' ) . ' <span style="color:red;">*</span></strong></td> ' ;
238238 echo '<td colspan="3"> ' ;
239- echo '<textarea name="content" style="width:700px;" rows="15"> ' . $ this ->fields ['content ' ] . '</textarea> ' ;
240- if ($ CFG_GLPI ["use_rich_text " ]) {
241- Html::initEditorSystem ('content ' );
242- }
243239 echo '</td> ' ;
244240 echo '</tr> ' ;
245241
246242 echo '<tr class="line1"> ' ;
247243 echo '<td><strong> ' . __ ('Impacts ' ) . ' </strong></td> ' ;
248244 echo '<td colspan="3"> ' ;
249245 echo '<textarea name="impactcontent" style="width:700px;" rows="15"> ' . $ this ->fields ['impactcontent ' ] . '</textarea> ' ;
250- if ($ CFG_GLPI ["use_rich_text " ]) {
251- Html::initEditorSystem ('impactcontent ' );
252- }
253246 echo '</td> ' ;
254247 echo '</tr> ' ;
255248
256249 echo '<tr class="line0"> ' ;
257250 echo '<td><strong> ' . __ ('Control list ' ) . ' </strong></td> ' ;
258251 echo '<td colspan="3"> ' ;
259252 echo '<textarea name="controlistcontent" style="width:700px;" rows="15"> ' . $ this ->fields ['controlistcontent ' ] . '</textarea> ' ;
260- if ($ CFG_GLPI ["use_rich_text " ]) {
261- Html::initEditorSystem ('controlistcontent ' );
262- }
263253 echo '</td> ' ;
264254 echo '</tr> ' ;
265255
266256 echo '<tr class="line1"> ' ;
267257 echo '<td><strong> ' . __ ('Deployment plan ' ) . ' </strong></td> ' ;
268258 echo '<td colspan="3"> ' ;
269259 echo '<textarea name="rolloutplancontent" style="width:700px;" rows="15"> ' . $ this ->fields ['rolloutplancontent ' ] . '</textarea> ' ;
270- if ($ CFG_GLPI ["use_rich_text " ]) {
271- Html::initEditorSystem ('rolloutplancontent ' );
272- }
273260 echo '</td> ' ;
274261 echo '</tr> ' ;
275262
276263 echo '<tr class="line0"> ' ;
277264 echo '<td><strong> ' . __ ('Backup plan ' ) . ' </strong></td> ' ;
278265 echo '<td colspan="3"> ' ;
279266 echo '<textarea name="backoutplancontent" style="width:700px;" rows="15"> ' . $ this ->fields ['backoutplancontent ' ] . '</textarea> ' ;
280- if ($ CFG_GLPI ["use_rich_text " ]) {
281- Html::initEditorSystem ('backoutplancontent ' );
282- }
283267 echo '</td> ' ;
284268 echo '</tr> ' ;
285269
286270 echo '<tr class="line1"> ' ;
287271 echo '<td><strong> ' . __ ('Checklist ' ) . ' </strong></td> ' ;
288272 echo '<td colspan="3"> ' ;
289273 echo '<textarea name="checklistcontent" style="width:700px;" rows="15"> ' . $ this ->fields ['checklistcontent ' ] . '</textarea> ' ;
290- if ($ CFG_GLPI ["use_rich_text " ]) {
291- Html::initEditorSystem ('checklistcontent ' );
292- }
293274 echo '</td> ' ;
294275 echo '</tr> ' ;
295276
0 commit comments