blob: 7a69e9eacfb6a88a1ea66561164b4d2d8f97291c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<?php
namespace Studip\Forms;
class RangeInput extends Input
{
public function render()
{
$template = $GLOBALS['template_factory']->open('forms/range_input');
$template->title = $this->title;
$template->name = $this->name;
$template->value = $this->value;
$template->id = md5(uniqid());
$template->min = $this->attributes['min'];
$template->max = $this->attributes['max'];
$template->step = $this->attributes['step'];
$template->required = $this->required;
$template->attributes = arrayToHtmlAttributes($this->attributes);
return $template->render();
}
}
|