301 {
304
305 $skin = ilSkinXML::parseFromXML($system_style_conf->getCustomizingSkinPath() .
$_GET[
"skin_id"] .
"/template.xml");
306 $style = $skin->getStyle(
$_GET[
"style_id"]);
307
308 $form->setFormAction($this->ctrl->getFormActionByClass("ilsystemstylesettingsgui"));
309
310
311 if (!$style->isSubstyle()) {
312 $form->setTitle($this->lng->txt("skin"));
313
315 $ti->setMaxLength(128);
316 $ti->setSize(40);
317 $ti->setRequired(true);
318 $ti->setInfo($this->lng->txt("skin_id_description"));
319 $form->addItem($ti);
320
321 $ti =
new ilTextInputGUI($this->lng->txt(
"skin_name"),
"skin_name");
322 $ti->setInfo($this->lng->txt("skin_name_description"));
323 $ti->setMaxLength(128);
324 $ti->setSize(40);
325 $ti->setRequired(true);
326 $form->addItem($ti);
327
328 if ($skin->isVersionChangeable()) {
330 $ti->setInfo($this->lng->txt("skin_version_description"));
331 $ti->setValue($skin->getVersion());
332 $form->addItem($ti);
333 }
334
336 $section->setTitle($this->lng->txt(
"style"));
338 } else {
339 $form->setTitle($this->lng->txt("sub_style"));
340 }
341
342 $ti =
new ilTextInputGUI($this->lng->txt(
"style_id"),
"style_id");
343 $ti->setMaxLength(128);
344 $ti->setSize(40);
345 $ti->setRequired(true);
346 $ti->setInfo($this->lng->txt("style_id_description"));
347 $form->addItem($ti);
348
349 $ti =
new ilTextInputGUI($this->lng->txt(
"style_name"),
"style_name");
350 $ti->setMaxLength(128);
351 $ti->setSize(40);
352 $ti->setRequired(true);
353 $ti->setInfo($this->lng->txt("style_name_description"));
354 $form->addItem($ti);
355
356 $ti =
new ilTextInputGUI($this->lng->txt(
"image_dir"),
"image_dir");
357 $ti->setMaxLength(128);
358 $ti->setSize(40);
359 $ti->setInfo($this->lng->txt("image_dir_description"));
360 $form->addItem($ti);
361
362 $ti =
new ilTextInputGUI($this->lng->txt(
"font_dir"),
"font_dir");
363 $ti->setMaxLength(128);
364 $ti->setSize(40);
365 $ti->setInfo($this->lng->txt("font_dir_description"));
366 $form->addItem($ti);
367
368 $ti =
new ilTextInputGUI($this->lng->txt(
"sound_dir"),
"sound_dir");
369 $ti->setMaxLength(128);
370 $ti->setSize(40);
371 $ti->setInfo($this->lng->txt("sound_dir_description"));
372 $form->addItem($ti);
373
374 if (!$style->isSubstyle()) {
376 $section->setTitle($this->lng->txt(
"system_style_activation"));
378
379 $active =
new ilCheckboxInputGUI($this->lng->txt(
"system_style_activation"),
"active");
380 $active->setInfo($this->lng->txt("system_style_activation_description"));
381
383 $set_default->setInfo($this->lng->txt("system_style_default_description"));
384 $active->addSubItem($set_default);
385
387 $set_personal->setInfo($this->lng->txt("system_style_personal_description"));
388 $active->addSubItem($set_personal);
389
390
391 $form->addItem($active);
392 }
393
394 $form->addCommandButton("save", $this->lng->txt("save"));
395 $form->addCommandButton("cancel", $this->lng->txt("cancel"));
396
397 return $form;
398 }
This class represents a non editable value in a property form.
ilSystemStyleConfig wraps all 'constants' to ensure the testability of all classes using those 'const...
This class represents a text property in a property form.