312 {
315
316 $skin = ilSkinXML::parseFromXML($system_style_conf->getCustomizingSkinPath() .
$_GET[
"skin_id"] .
"/template.xml");
317 $style = $skin->getStyle(
$_GET[
"style_id"]);
318
319 $form->setFormAction($this->ctrl->getFormActionByClass("ilsystemstylesettingsgui"));
320
321
322 if (!$style->isSubstyle()) {
323 $form->setTitle($this->lng->txt("skin"));
324
326 $ti->setMaxLength(128);
327 $ti->setSize(40);
328 $ti->setRequired(true);
329 $ti->setInfo($this->lng->txt("skin_id_description"));
330 $form->addItem($ti);
331
332 $ti =
new ilTextInputGUI($this->lng->txt(
"skin_name"),
"skin_name");
333 $ti->setInfo($this->lng->txt("skin_name_description"));
334 $ti->setMaxLength(128);
335 $ti->setSize(40);
336 $ti->setRequired(true);
337 $form->addItem($ti);
338
339 if ($skin->isVersionChangeable()) {
341 $ti->setInfo($this->lng->txt("skin_version_description"));
342 $ti->setValue($skin->getVersion());
343 $form->addItem($ti);
344 }
345
347 $section->setTitle($this->lng->txt(
"style"));
349 } else {
350 $form->setTitle($this->lng->txt("sub_style"));
351 }
352
353 $ti =
new ilTextInputGUI($this->lng->txt(
"style_id"),
"style_id");
354 $ti->setMaxLength(128);
355 $ti->setSize(40);
356 $ti->setRequired(true);
357 $ti->setInfo($this->lng->txt("style_id_description"));
358 $form->addItem($ti);
359
360 $ti =
new ilTextInputGUI($this->lng->txt(
"style_name"),
"style_name");
361 $ti->setMaxLength(128);
362 $ti->setSize(40);
363 $ti->setRequired(true);
364 $ti->setInfo($this->lng->txt("style_name_description"));
365 $form->addItem($ti);
366
367 $ti =
new ilTextInputGUI($this->lng->txt(
"image_dir"),
"image_dir");
368 $ti->setMaxLength(128);
369 $ti->setSize(40);
370 $ti->setInfo($this->lng->txt("image_dir_description"));
371 $form->addItem($ti);
372
373 $ti =
new ilTextInputGUI($this->lng->txt(
"font_dir"),
"font_dir");
374 $ti->setMaxLength(128);
375 $ti->setSize(40);
376 $ti->setInfo($this->lng->txt("font_dir_description"));
377 $form->addItem($ti);
378
379 $ti =
new ilTextInputGUI($this->lng->txt(
"sound_dir"),
"sound_dir");
380 $ti->setMaxLength(128);
381 $ti->setSize(40);
382 $ti->setInfo($this->lng->txt("sound_dir_description"));
383 $form->addItem($ti);
384
385 if (!$style->isSubstyle()) {
387 $section->setTitle($this->lng->txt(
"system_style_activation"));
389
390 $active =
new ilCheckboxInputGUI($this->lng->txt(
"system_style_activation"),
"active");
391 $active->setInfo($this->lng->txt("system_style_activation_description"));
392
394 $set_default->setInfo($this->lng->txt("system_style_default_description"));
395 $active->addSubItem($set_default);
396
398 $set_personal->setInfo($this->lng->txt("system_style_personal_description"));
399 $active->addSubItem($set_personal);
400
401
402 $form->addItem($active);
403 }
404
405 $form->addCommandButton("save", $this->lng->txt("save"));
406 $form->addCommandButton("cancel", $this->lng->txt("cancel"));
407
408 return $form;
409 }
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.