- Patch #28784 by Neil: improved HTML/CSS of search form.
parent
16262e03d5
commit
451dbd17a6
|
@ -652,15 +652,13 @@ function search_form($action = '', $keys = '', $type = null, $prompt = null) {
|
||||||
$prompt = t('Enter your keywords');
|
$prompt = t('Enter your keywords');
|
||||||
}
|
}
|
||||||
|
|
||||||
$output = ' <div class="search-form">';
|
|
||||||
$box = '<div class="container-inline">';
|
$box = '<div class="container-inline">';
|
||||||
$box .= form_textfield('', 'keys', $keys, $prompt ? 40 : 30, 255);
|
$box .= form_textfield('', 'keys', $keys, $prompt ? 40 : 30, 255);
|
||||||
$box .= form_submit(t('Search'));
|
$box .= form_submit(t('Search'));
|
||||||
$box .= '</div>';
|
$box .= '</div>';
|
||||||
$output .= form_item($prompt, $box);
|
$output .= form_item($prompt, $box);
|
||||||
$output .= '</div>';
|
|
||||||
|
|
||||||
return form($output, 'post', $action);
|
return form($output, 'post', $action, array('class' => 'search-form'));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -652,15 +652,13 @@ function search_form($action = '', $keys = '', $type = null, $prompt = null) {
|
||||||
$prompt = t('Enter your keywords');
|
$prompt = t('Enter your keywords');
|
||||||
}
|
}
|
||||||
|
|
||||||
$output = ' <div class="search-form">';
|
|
||||||
$box = '<div class="container-inline">';
|
$box = '<div class="container-inline">';
|
||||||
$box .= form_textfield('', 'keys', $keys, $prompt ? 40 : 30, 255);
|
$box .= form_textfield('', 'keys', $keys, $prompt ? 40 : 30, 255);
|
||||||
$box .= form_submit(t('Search'));
|
$box .= form_submit(t('Search'));
|
||||||
$box .= '</div>';
|
$box .= '</div>';
|
||||||
$output .= form_item($prompt, $box);
|
$output .= form_item($prompt, $box);
|
||||||
$output .= '</div>';
|
|
||||||
|
|
||||||
return form($output, 'post', $action);
|
return form($output, 'post', $action, array('class' => 'search-form'));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue