public function startUp()
 {
     $folderList = array(false => __('kein Kategorie')) + $this->controller->Folder->listAll('name', array('conditions' => array('id > 1')));
     $this->config = array('MediaFile' => array('fields' => array('folder_id' => array('mandatory' => false, 'type' => 'DropDown', 'label' => __('Kategorie (optional)'), 'options' => $folderList))), array('type' => 'file', 'name' => 'file', 'label' => false), array('type' => 'submit', 'value' => __('Hochladen')));
     return parent::startUp();
 }
Example #2
0
 public function startUp()
 {
     $this->config = array('NodeText' => array('fields' => array('headline' => array('label' => __('Überschrift'), 'mandatory' => false), 'subline' => array('label' => __('Unter-Überschrift'), 'mandatory' => false), 'text' => array('mandatory' => false, 'label' => __('Text/Beschreibung')), 'excerpt' => array('label' => __('Auszug/Zusammenfassung'), 'mandatory' => false), 'url' => array('label' => __('URL'), 'mandatory' => false), 'tags' => array('mandatory' => false, 'label' => __('Tags (SEO)'), 'type' => 'text'), 'language_id' => array('type' => 'hidden'))), array('type' => 'submit', 'value' => __('Speichern')));
     return parent::startUp();
 }
Example #3
0
 public function startUp()
 {
     $this->config = array(array('type' => 'text', 'name' => 'q', 'label' => false, 'placeholder' => __('Suchbegriff'), 'value' => coalesce(@$this->controller->params['q'], false)));
     return parent::startUp();
 }
 public function startUp()
 {
     $this->config = array('MediaText' => array('fields' => array('title' => array('mandatory' => false, 'label' => __('Überschrift')), 'text' => array('mandatory' => false, 'label' => __('Text/Beschreibung')), 'language_id' => array('type' => 'hidden'))), array('type' => 'submit', 'value' => __('Speichern')));
     return parent::startUp();
 }
Example #5
0
 public function startUp()
 {
     $this->config = array('Language' => array('fields' => array('id', 'status' => array('type' => 'DropDown', 'options' => Status::$list), 'name', 'locale')), array('type' => 'submit', 'value' => __('Speichern')));
     return parent::startUp();
 }
 public function startUp()
 {
     $this->config = array('UserGroup' => array('fields' => array('name' => array('type' => 'text'), 'description' => array('type' => 'textarea', 'mandatory' => false, 'label' => __('Beschreibung')))), array('name' => 'permission_id[]', 'label' => __('Zugriffsrechte'), 'type' => 'DropDown', 'options' => $this->controller->Permission->listAll('name'), 'multiple' => true, 'mandatory' => false), array('type' => 'submit', 'value' => __('Speichern')));
     return parent::startUp();
 }
Example #7
0
 public function startUp()
 {
     $this->config = array('Folder' => array('fields' => array('name')), array('type' => 'submit', 'value' => __('Speichern')));
     return parent::startUp();
 }
Example #8
0
 public function startUp()
 {
     $this->config = array(array('type' => 'email', 'placeholder' => __('E-Mail'), 'label' => false), array('type' => 'password', 'label' => false, 'placeholder' => __('Passwort')), array('type' => 'checkbox', 'name' => 'permanent', 'checked' => true, 'label' => __('Eingeloggt bleiben')), array('type' => 'submit', 'value' => __('Einloggen')));
     return parent::startUp();
 }
Example #9
0
 public function startUp()
 {
     $this->config = array('User' => array('fields' => array('name', 'user_group_id' => array('type' => 'DropDown', 'label' => __('Benutzergruppe'), 'options' => $this->controller->UserGroup->listAll('UserGroup.name', array('depth' => 0))), 'email', 'password' => array('mandatory' => false, 'value' => '', 'label' => __('Passwort')), 'description' => array('mandatory' => false, 'label' => __('Beschreibung')), 'locale' => array('label' => __('Sprache'), 'type' => 'DropDown', 'options' => array('de_DE' => 'Deutsch', 'en_GB' => 'English')))), array('type' => 'submit', 'value' => __('Speichern')));
     return parent::startUp();
 }
Example #10
0
 public function startUp()
 {
     $this->config = array('BlogPost' => array('fields' => array('headline' => array('label' => __('Titel'), 'mandatory' => true), 'uri' => array('label' => __('URI'), 'mandatory' => false), 'text' => array('label' => false), 'tags' => array('mandatory' => false, 'type' => 'textarea', 'rows' => 2, 'label' => __('Tags (SEO')), 'status' => array('type' => 'DropDown', 'options' => Status::$list, 'value' => Status::PUBLISHED), 'language_id' => array('type' => 'DropDown', 'label' => __('Sprache'), 'options' => $this->controller->Language->listAll('name', array('order' => array('name' => DBquery::ORDER_ASC)))), 'user_id' => array('type' => 'DropDown', 'label' => __('Autor'), 'options' => $this->controller->User->listAll('User.name', array('order' => array('User.name ASC'))), 'value' => $this->controller->UserLogin->User->id), 'published' => array('type' => 'DateTime', 'label' => __('Veröffentlichungsdatum')))), array('name' => 'allowComments', 'type' => 'checkbox', 'label' => __('Kommentare erlauben'), 'checked' => 'checked'), array('name' => 'sticky', 'type' => 'checkbox', 'label' => __('Eintrag oben halten (sticky)')), array('type' => 'submit', 'value' => __('Speichern')));
     return parent::startUp();
 }
Example #11
0
 public function startUp()
 {
     $this->config = array('Comment' => array('fields' => array('name', 'email' => array('mandatory' => false, 'label' => __('E-Mail')), 'url' => array('mandatory' => false), 'text')), array('type' => 'submit', 'name' => 'submit', 'value' => __('Speichern')));
     return parent::startUp();
 }
Example #12
0
 public function startUp()
 {
     $this->config = array('NodeText' => array('fields' => array('headline' => array('mandatory' => false, 'label' => __('Überschrift')), 'subline' => array('mandatory' => false, 'label' => __('Unter-Überschrift')), 'text' => array('mandatory' => false, 'label' => __('Text/Beschreibung')), 'excerpt' => array('mandatory' => false, 'label' => __('Auszug/Zusammenfassung')), 'tags' => array('mandatory' => false, 'type' => 'textarea', 'rows' => 2, 'label' => __('Tags (SEO)')))), 'Node' => array('fields' => array('user_id' => array('type' => 'DropDown', 'options' => $this->controller->User->listAll('User.name', array('order' => array('User.name' => DBQuery::ORDER_ASC))), 'value' => $this->controller->UserLogin->User->id, 'label' => __('Autor')), 'published' => array('type' => 'Date', 'label' => __('Datum'), 'value' => time()), 'status' => array('type' => 'DropDown', 'options' => Status::$list, 'value' => Status::PUBLISHED), 'template' => array('type' => 'DropDown', 'options' => $this->templateNames(), 'value' => 'view'))), array('type' => 'checkbox', 'name' => 'allowRSS', 'label' => __('In RSS Feed integrieren')), array('type' => 'checkbox', 'name' => 'allowComments', 'label' => __('Kommentare erlauben')), array('type' => 'submit', 'value' => __('Speichern')));
     return parent::startUp();
 }