for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* YAWIK
*
* @filesource
* @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de)
* @license MIT
*/
/** ListFilterLocationFieldset.php */
namespace Jobs\Form;
use Core\Form\TextSearchForm;
use Core\Form\TextSearchFormFieldset;
use Jobs\Entity\Status;
* Defines the an additional Select field for the job list filter used by the admin
* @package Jobs\Form
class AdminSearchFormElementsFieldset extends TextSearchFormFieldset
{
public function init()
$this->addTextElement(
'Search',
/*@translate*/ 'search for position or company'
);
$this->add(
array(
'type' => 'Jobs/StatusSelect',
'options' => [
'include_all_option' => true,
'span' => 6
],
'attributes' => array(
'value' => 'all',
'style' => 'width: 100%'
)
'type' => 'Jobs/ActiveOrganizationSelect',
'property' => true,
'name' => 'companyId',
'options' => array(
'label' => /*@translate*/ 'Companyname',
'span' => 6,
),
'data-placeholder' => /*@translate*/ 'Select hiring organization',
'class' => 'form-control',
'style' => 'width: 100%',
}