Skip to content
Snippets Groups Projects
Select Git revision
  • 2f85abeb817dba2476294f23fcdff91140ed2e95
  • main default protected
  • step-3263
  • feature/plugins-cli
  • feature/vite
  • step-2484-peerreview
  • biest/issue-5051
  • tests/simplify-jsonapi-tests
  • fix/typo-in-1a70031
  • feature/broadcasting
  • database-seeders-and-factories
  • feature/peer-review-2
  • feature-feedback-jsonapi
  • feature/peerreview
  • feature/balloon-plus
  • feature/stock-images-unsplash
  • tic-2588
  • 5.0
  • 5.2
  • biest/unlock-blocks
  • biest-1514
21 results

Seminar_Session.class.php

Blame
  • Forked from Stud.IP / Stud.IP
    Source project has a limited visibility.
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    DatalistInput.php 623 B
    <?php
    
    namespace Studip\Forms;
    
    class DatalistInput extends Input
    {
        public function render()
        {
            $options = $this->extractOptionsFromAttributes($this->attributes);
    
            $template = $GLOBALS['template_factory']->open('forms/datalist_input');
            $template->title = $this->title;
            $template->name = $this->name;
            $template->value = $this->value;
            $template->id = md5(uniqid());
            $template->required = $this->required;
            $template->attributes = arrayToHtmlAttributes($this->attributes);
            $template->options = $options;
            return $template->render();
        }
    }