protected function createControls()
 {
     $this->setPostback('modView', 'endEditFeld', array('current' => $this->request->current, 'entity' => $this->request->entity, 'initPanel' => 2));
     $panel = new CaptionedPanelControl($this, 'panel');
     $panel->setCaption('Feld » bearbeiten');
     $inputName = new InputTextboxControl(null, 'name');
     $inputName->setValue($this->controller->feld->name);
     $inputName->addCssClass('required');
     $inputDescription = new InputTextboxControl(null, 'description');
     $inputDescription->setValue($this->controller->feld->description);
     $inputMax = new InputTextboxControl(null, 'maxLength');
     $inputMax->setValue($this->controller->feld->maxLength);
     $inputValidation = new InputTextboxControl(null, 'validation');
     $inputValidation->setValue($this->controller->feld->validation);
     $inputFormel = new InputTextboxControl(null, 'formula');
     $inputFormel->setValue($this->controller->feld->getFormula());
     $inputIndex = new InputCheckboxControl(null, 'index');
     $inputIndex->setValue(1);
     $inputIndex->setChecked($this->controller->feld->getIndex() == 1);
     $typ = new InputSelectControl(null, 'type');
     $typ->addOption(ModelField::TYPE_IMAGE, 'Bild')->addOption(ModelField::TYPE_BOOLEAN, 'Boolean')->addOption(ModelField::TYPE_DATE, 'Date')->addOption(ModelField::TYPE_DATETIME, 'Datetime')->addOption(ModelField::TYPE_FLOAT, 'Float')->addOption(ModelField::TYPE_HTML, 'Html')->addOption(ModelField::TYPE_INTEGER, 'Integer')->addOption(ModelField::TYPE_PASSWORD, 'Password')->addOption(ModelField::TYPE_STRING, 'String')->addOption(ModelField::TYPE_TEXT, 'Text')->addOption(ModelField::TYPE_TIME, 'Time')->addOption(ModelField::TYPE_FILE, 'Datei')->addOption(ModelField::TYPE_MARKDOWN, 'Markdown')->addOption(ModelField::TYPE_LABEL, 'Label')->preSelect($this->controller->feld->getType());
     $edit = new EditControl($panel, 'edit');
     $edit->setHeader('Stammdaten bearbeiten')->addRow('Name', $inputName)->addRow('Beschreibung', $inputDescription)->addRow('Datentyp', $typ)->addRow('Länge', $inputMax)->addRow('Validierung', $inputValidation)->addRow('Formel', $inputFormel)->addRow('Index', $inputIndex);
     $button = new ButtonControl($panel, 'button');
     $button->setCaption('Speichern')->setIsSubmit('true');
 }
 protected function getStdEditControl($readOnly = false)
 {
     $checkbox = new InputCheckboxControl(null, $this->name);
     $checkbox->setValue(1)->setChecked($this->value)->setReadOnly($readOnly);
     if ($this->validation != '') {
         $checkbox->addCssClass($this->validation);
     }
     return $checkbox;
 }
 protected function createControls()
 {
     $this->setPostback('modView', 'endEditAktion', array('current' => $this->request->current, 'initPanel' => $this->request->initPanel));
     $panel = new CaptionedPanelControl($this, 'panel');
     $panel->setCaption('Aktion » bearbeiten');
     $inputName = new InputTextboxControl(null, 'name');
     $inputName->setValue($this->controller->action->name);
     $inputName->addCssClass('required');
     $inputDescription = new InputTextboxControl(null, 'description');
     $inputDescription->setValue($this->controller->action->description);
     $inputNextItem = new InputTextboxControl(null, 'nextItem');
     $inputNextItem->setValue($this->controller->action->nextItem);
     $addToMenu = new InputCheckboxControl(null, 'addToMenu');
     $addToMenu->setChecked($this->controller->action->addToMenu);
     $security = new InputSelectControl(null, 'securityLevel');
     $security->addOption(Action::LEVEL_ALL, 'Alle')->addOption(Action::LEVEL_LOGGEDIN, 'Angemeldete Benutzer')->addOption(Action::LEVEL_CONFIG, 'Rechtevergabe')->preSelect($this->controller->action->securityLevel);
     $next = new InputSelectControl(null, 'next');
     $next->addOption(Action::NEXT_NOTHING, 'Nichts')->addOption(Action::NEXT_ACTION, 'Aktion ausführen')->addOption(Action::NEXT_VIEW, 'View anzeigen')->preSelect($this->controller->action->next);
     $edit = new EditControl($panel, 'edit');
     $edit->setHeader('Stammdaten bearbeiten')->addRow('Name', $inputName)->addRow('Beschreibung', $inputDescription)->addRow('In Menü?', $addToMenu)->addRow('Berechtigung', $security)->addRow('Folgeaktion', $next)->addRow('Folgeelement', $inputNextItem);
     $button = new ButtonControl($panel, 'button');
     $button->setCaption('Speichern')->setIsSubmit('true');
 }