";
// 2. label - could be common text label or drop down choice
// choose whether the label is a dropdown choice:
if (isset ( $param ['alt'] ) && is_array ( $param ['alt'] ) && sizeof ( $param ['alt'] > 0 )) {
$altList = array (
$key
) + $param ['alt'];
// Yii::info ( "altList : " . implode ( $altList, "\n" ) );
// echo " ";
echo Html::dropDownList ( $key, $key, $altList, $htmlOptions = array (
'class' => "dropDownLabel",
'id2' => $key
) );
$htmlOpts += array (
"class" => "hasSelectableLabel_" . $key,
"id2" => $key
);
$alt = true;
} else {
$altList = null;
$form->field ( $model, $key )->label ( $key );
$alt = false;
}
echo $hide_button;
// 3. field itself (different types -depending on $type
CreateFormManager::createField ( $this, $model, $form, $key, $param, $selectionLists, $htmlOpts, $selectedValue = NULL, $hide_option, $hide_button );
// if there are alternate fields create them and hide them:
if ($alt) {
if (isset ( $htmlOpts ['style'] )) {
$htmlOpts ['style'] += " display:none;";
} else {
$htmlOpts ['style'] = "display:none;";
}
foreach ( $altList as $altField ) {
unset ( $param ['valueList'] );
CreateFormManager::createField ( $this, $model, $form, $altField, $param, $selectionLists, $htmlOpts, $selectedValue = NULL );
}
}
echo " ";
}
}
echo $this->render ( '@common/views/search/mapSearch' );
?>
";
echo " ";
ActiveForm::end ();
?>
";
echo Html::submitButton ( 'Submit', [
'class' => 'btn btn-success'
] );
echo " ";
echo " ";
echo Accordion::widget ( [
'items' => [
[
'header' => "Add search field",
'content' => $this->render ( 'searchFieldSelection', [
'hideable_fields' => $model->getHideableListFields (),
'hidden_elements' => $model->getHideableList ()
], true )
]
],
'options' => [
'tag' => 'div',
'autoHeight' => false,
'active' => false,
'delay' => '100'
],
'itemOptions' => [
'tag' => 'div',
'class' => 'balmusette_search'
],
'headerOptions' => [
'tag' => 'button',
'class' => 'btn btn-success'
]
,
'clientOptions' => [
'collapsible' => true,
'active' => false
]
] );
echo " |