69 {
70 include_once('Services/Form/classes/class.ilPropertyFormGUI.php');
72 $form->setFormAction($this->ctrl->getFormAction($this, "updateLicense"));
73 $form->setTitle($this->lng->txt('edit_license'));
74
75 $exist =
new ilNumberInputGUI($this->lng->txt(
"existing_licenses"),
"licenses");
76 $exist->setInfo($this->lng->txt("zero_licenses_explanation"));
77 $exist->setMaxLength(10);
78 $exist->setSize(10);
79 $exist->setValue($this->license->getLicenses());
80 $form->addItem($exist);
81
83 $info_used->setInfo($this->lng->txt("used_licenses_explanation"));
84 $info_used->setValue($this->license->getAccesses());
85 $form->addItem($info_used);
86
87 $remaining_licenses = ($this->license->getLicenses() == "0") ? $this->lng->txt("arbitrary") : $this->license->getRemainingLicenses();
88
90 $info_remain->setInfo($this->lng->txt("remaining_licenses_explanation"));
91 $info_remain->setValue($remaining_licenses);
92 $form->addItem($info_remain);
93
95 $info_potential->setInfo($this->lng->txt("potential_accesses_explanation"));
96 $info_potential->setValue($this->license->getPotentialAccesses());
97 $form->addItem($info_potential);
98
100 $comm->setRows(5);
101 $comm->setValue($this->license->getRemarks());
102 $form->addItem($comm);
103
104 $form->addCommandButton('updateLicense', $this->lng->txt('save'));
105
106 return $form;
107 }
This class represents a non editable value in a property form.
This class represents a text area property in a property form.