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