294 {
297
298 $skin = ilSkinXML::parseFromXML($system_style_conf->getCustomizingSkinPath().$_GET["skin_id"]."/template.xml");
300
301 $form->setFormAction($this->ctrl->getFormActionByClass("ilsystemstylesettingsgui"));
302
303
304 if(!
$style->isSubstyle()){
305 $form->setTitle($this->lng->txt("skin"));
306
308 $ti->setMaxLength(128);
309 $ti->setSize(40);
310 $ti->setRequired(true);
311 $ti->setInfo($this->lng->txt("skin_id_description"));
312 $form->addItem($ti);
313
314 $ti =
new ilTextInputGUI($this->lng->txt(
"skin_name"),
"skin_name");
315 $ti->setInfo($this->lng->txt("skin_name_description"));
316 $ti->setMaxLength(128);
317 $ti->setSize(40);
318 $ti->setRequired(true);
319 $form->addItem($ti);
320
321 if($skin->isVersionChangeable()) {
323 $ti->setInfo($this->lng->txt("skin_version_description"));
324 $ti->setValue($skin->getVersion());
325 $form->addItem($ti);
326 }
327
329 $section->setTitle($this->lng->txt(
"style"));
331 }else{
332 $form->setTitle($this->lng->txt("sub_style"));
333 }
334
335 $ti =
new ilTextInputGUI($this->lng->txt(
"style_id"),
"style_id");
336 $ti->setMaxLength(128);
337 $ti->setSize(40);
338 $ti->setRequired(true);
339 $ti->setInfo($this->lng->txt("style_id_description"));
340 $form->addItem($ti);
341
342 $ti =
new ilTextInputGUI($this->lng->txt(
"style_name"),
"style_name");
343 $ti->setMaxLength(128);
344 $ti->setSize(40);
345 $ti->setRequired(true);
346 $ti->setInfo($this->lng->txt("style_name_description"));
347 $form->addItem($ti);
348
349 $ti =
new ilTextInputGUI($this->lng->txt(
"image_dir"),
"image_dir");
350 $ti->setMaxLength(128);
351 $ti->setSize(40);
352 $ti->setInfo($this->lng->txt("image_dir_description"));
353 $form->addItem($ti);
354
355 $ti =
new ilTextInputGUI($this->lng->txt(
"font_dir"),
"font_dir");
356 $ti->setMaxLength(128);
357 $ti->setSize(40);
358 $ti->setInfo($this->lng->txt("font_dir_description"));
359 $form->addItem($ti);
360
361 $ti =
new ilTextInputGUI($this->lng->txt(
"sound_dir"),
"sound_dir");
362 $ti->setMaxLength(128);
363 $ti->setSize(40);
364 $ti->setInfo($this->lng->txt("sound_dir_description"));
365 $form->addItem($ti);
366
367 if(!
$style->isSubstyle()){
369 $section->setTitle($this->lng->txt(
"system_style_activation"));
371
372 $active =
new ilCheckboxInputGUI($this->lng->txt(
"system_style_activation"),
"active");
373 $active->setInfo($this->lng->txt("system_style_activation_description"));
374
376 $set_default->setInfo($this->lng->txt("system_style_default_description"));
377 $active->addSubItem($set_default);
378
380 $set_personal->setInfo($this->lng->txt("system_style_personal_description"));
381 $active->addSubItem($set_personal);
382
383
384 $form->addItem($active);
385 }
386
387 $form->addCommandButton("save", $this->lng->txt("save"));
388 $form->addCommandButton("cancel", $this->lng->txt("cancel"));
389
390 return $form;
391 }
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.