protected function createControls() { $this->setPostback('DefaultMod', 'doPassword'); $text = new HilfstextControl($this, 'hilfe'); $text->setText('USER_KENNWORT_ANFORDERN'); $input = new InputTextboxControl(null, 'user'); $input->addCssClass('required'); $edit = new EditControl($this, 'edt'); $edit->setMode(EditControl::MODE_VERTICAL)->addRow('ID-Nummer oder Benutzerkennung', $input); $submit = new ButtonControl($this, 'submit'); $submit->setButtonClass(ButtonControl::BUTTON_PRIMARY)->setCaption('Kennwort zurücksetzen')->setIsSubmit(true); }
/** * @throws \Exception */ protected function createControls() { $this->setPostback('DefaultMod', 'doReset', ['token' => $this->request->token]); $text = new HilfstextControl($this, 'hilfe'); $text->setText('USER_KENNWORT_FESTLEGEN'); $input = new InputPasswordControl(null, 'pw1'); $input->addCssClass('required'); $input2 = new InputPasswordControl(null, 'pw2'); $input2->addCssClass('required'); $edit = new EditControl($this, 'edt'); $edit->setMode(EditControl::MODE_VERTICAL)->addRow('Kennwort', $input)->addRow('Wiederholen', $input2); $submit = new ButtonControl($this, 'submit'); $submit->setButtonClass(ButtonControl::BUTTON_PRIMARY)->setCaption('Kennwort setzen')->setIsSubmit(true); }
protected function createControls() { $grp = new ButtonGroupControl($this, 'btngrp'); $button = new ButtonControl($grp, 'button'); $button->setButtonClass(ButtonControl::BUTTON_PRIMARY)->setCaption('Neue Seite anlegen')->setIcon('plus')->setLink('site', 'newPage', array('site' => $this->controller->site->id)); $button = new ButtonControl($grp, 'btnSort'); $button->setCaption('Seiten neu sortieren')->setLink('site', 'sortPages', array('site' => $this->controller->site->id)); $button = new ButtonControl($grp, 'btnFlush'); $button->setCaption('Cache leeren')->setLink('site', 'flushCache', array('site' => $this->controller->site->id)); $grid = new GridControl($this, 'grid'); $grid->setEntity(new Page(), $this->request); $grid->setDeleteAction('deletePage'); $grid->setSortable(false); $template = ' {pa_pos} <a href="' . Application::link('site', 'pageUp') . '/id/{pa_id}">' . Template::img('icons/arrow_up.png', true) . '</a> <a href="' . Application::link('site', 'pageDown') . '/id/{pa_id}">' . Template::img('icons/arrow_down.png', true) . '</a> '; $grid->createColumn(GridColumn::LINK, 'pa_bezeichnung')->setAppLink('site', 'editPage', array('id' => '{pa_id}')); $grid->createColumn(GridColumn::FIELD, 'parent'); $grid->createColumn(GridColumn::FIELD, 'pa_pos', $template); $grid->createColumn(GridColumn::DELETELINK); $grid->groupColumn = 1; }