public function __construct() { parent::__construct('searchuserform'); $this->add(['name' => 'name', 'type' => 'Text', 'options' => ['label' => 'Username'], 'attributes' => ['class' => 'form-control']]); $this->add(['name' => 'role', 'type' => 'Select', 'options' => ['label' => 'Role', 'value_options' => \Account\Model\Role::getRoleArray()], 'attributes' => ['class' => 'form-control', 'multiple' => 'multiple']]); $this->add(['name' => 'submit', 'type' => 'Submit', 'attributes' => ['class' => 'btn btn-success', 'value' => 'Search']]); }