Widget\SortBox: hardcode some styles
This is a quickfix, should be moved to CSS once we know how our HTML elements will definitively look like
This commit is contained in:
parent
9411dec5d0
commit
2cf79fe9a7
|
@ -141,34 +141,22 @@ class SortBox extends AbstractWidget
|
||||||
$form->setMethod('GET');
|
$form->setMethod('GET');
|
||||||
$form->setTokenDisabled();
|
$form->setTokenDisabled();
|
||||||
$form->setName($this->name);
|
$form->setName($this->name);
|
||||||
$form->addElement(
|
$form->addElement('select', 'sort', array(
|
||||||
'select',
|
'label' => 'Sort By',
|
||||||
'sort',
|
'multiOptions' => $this->sortFields,
|
||||||
array(
|
'style' => 'width: 12em',
|
||||||
'label' => 'Sort By',
|
'class' => 'autosubmit',
|
||||||
'multiOptions' => $this->sortFields,
|
));
|
||||||
'style' => 'width: 12em',
|
$form->addElement('select', 'dir', array(
|
||||||
'class' => 'autosubmit',
|
'multiOptions' => array(
|
||||||
)
|
'asc' => 'Asc',
|
||||||
);
|
'desc' => 'Desc',
|
||||||
$form->addElement(
|
),
|
||||||
'select',
|
'style' => 'width: 5em',
|
||||||
'dir',
|
'class' => 'autosubmit'
|
||||||
array(
|
));
|
||||||
'multiOptions' => array(
|
|
||||||
'desc' => 'Desc',
|
|
||||||
'asc' => 'Asc',
|
|
||||||
),
|
|
||||||
'style' => 'width: 4em',
|
|
||||||
'class' => 'autosubmit'
|
|
||||||
|
|
||||||
)
|
|
||||||
);
|
|
||||||
$sort = $form->getElement('sort')->setDecorators(array('ViewHelper'));
|
$sort = $form->getElement('sort')->setDecorators(array('ViewHelper'));
|
||||||
$dir = $form->getElement('dir')->setDecorators(array('ViewHelper'));
|
$dir = $form->getElement('dir')->setDecorators(array('ViewHelper'));
|
||||||
// $form->enableAutoSubmit(array('sort', 'dir'));
|
|
||||||
// $form->addElement($this->createFallbackSubmitButton());
|
|
||||||
|
|
||||||
if ($this->request) {
|
if ($this->request) {
|
||||||
$form->setAction($this->request->getRequestUri());
|
$form->setAction($this->request->getRequestUri());
|
||||||
$form->populate($this->request->getParams());
|
$form->populate($this->request->getParams());
|
||||||
|
|
Loading…
Reference in New Issue