Rev 15540 | AutorÃa | Comparar con el anterior | Ultima modificación | Ver Log |
<?php
declare(strict_types=1);
namespace LeadersLinked\Form\DailyPulse;
use Laminas\Form\Form;
use Laminas\Db\Adapter\AdapterInterface;
use Laminas\Log\LoggerInterface;
use LeadersLinked\Mapper\CompanySizeMapper;
use LeadersLinked\Mapper\IndustryMapper;
class DailyPulseAddEmojiForm extends Form
{
public function __construct()
{
parent::__construct();
$this->setInputFilter(new DailyPulseAddEmojiFilter());
$this->add([
'name' => 'name',
'type' => \Laminas\Form\Element\Text::class,
'attributes' => [
'maxlength' => 128,
'id' => 'name',
]
]);
$this->add([
'name' => 'image',
'type' => \Laminas\Form\Element\File::class,
'attributes' => [
'id' => 'image',
]
]);
$this->add([
'name' => 'type',
'type' => \Laminas\Form\Element\Select::class,
'options' => [
'value_options' => [
\LeadersLinked\Model\DailyPulseEmoji::TYPE_CLIMATE_ON_YOUR_ORGANIZATION => 'LABEL_CLIMATE_ON_YOUR_ORGANIZATION',
\LeadersLinked\Model\DailyPulseEmoji::TYPE_HOW_ARE_YOU_FEEL => 'LABEL_HOW_ARE_YOU_FEEL'
],
],
'attributes' => [
'id' => 'type',
]
]);
$this->add([
'name' => 'status',
'type' => \Laminas\Form\Element\Checkbox::class,
'attributes' => [
'id' => 'status',
],
'options' => [
'use_hidden_element' => false,
'unchecked_value' => \LeadersLinked\Model\DailyPulseEmoji::STATUS_INACTIVE,
'checked_value'=> \LeadersLinked\Model\DailyPulseEmoji::STATUS_ACTIVE,
]
]);
$this->add([
'name' => 'order',
'type' => \Laminas\Form\Element\Number::class,
'attributes' => [
'id' => 'order',
'step' => 1,
'min' => 0,
]
]);
$this->add([
'name' => 'points',
'type' => \Laminas\Form\Element\Number::class,
'attributes' => [
'id' => 'points',
'step' => 1,
'min' => 0,
],
]);
}
}