Closed (fixed)
Project:
Bootstrap
Version:
7.x-2.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
28 Nov 2012 at 15:23 UTC
Updated:
12 Feb 2013 at 17:30 UTC
Jump to comment: Most recent file

Comments
Comment #1
cpliakas commentedThe attached patch makes the proposed change.
You will notice that the patch implements a hook_form_FORM_ID_alter() for the search form as opposed to using the custom
_bootstrap_search_form()form constructor. This is done for two reasons. First, it allows us to apply the Bootstrap components across search forms and not just on an individual search form. Second, it adds some transparency by using common override methods so that developers can more easily modify the forms using common techniques. Otherwise they would have to discover that this theme implements a custom form constructor and implementhook_form__bootstrap_search_form_alter()to modify the form.The screenshot below highlights the UI with the patch applied (and after a cache clear, of course).
Thanks in advance for your consideration to this issue,
Chris
Comment #2
cpliakas commentedAnd... forgot to attach the patch.
Comment #3
cpliakas commentedFixed some typos in the comments and modified the wording a bit.
Comment #4
frankbaele commentedI see no harm in this patch +1
Comment #5
andregriffin commented#3: bootstrap-search-ui-1852900-3.patch queued for re-testing.
Comment #7
andregriffin commentedNew patch against latest dev.
Comment #9
frankbaele commentedgood idea but maybe should theme all the search forms in the same way, also the search block form. It think we should wait for
http://drupal.org/node/1460508 gets closed or done, before we start patching
Comment #10
cpliakas commentedMakes sense to me. Marking as postponed pending #1460508: Don't use menu_tree_page_data for $main_menu and $secondary_menu.
Comment #11
frankbaele commentedsince all the recent big changes have been commited i'm going to reopen this one
Comment #12
cpliakas commentedSounds good. If you don't mind I can take this one and will propose a revised patch within the next day or two.
Thanks,
Chris
Comment #13
alifdalya commented#2: bootstrap-search-ui-1852900-2.patch queued for re-testing.
Comment #14
cpliakas commentedThe patch won't apply since the elements it depends on have been removed. Will have to rework the patch.
Comment #15
cpliakas commentedNot sure if I am overly-excited about the implementation, but the attached patch seems to work for both the search block form and regular search form.
Comment #16
cpliakas commentedIn working on this issue, I discovered a bug at #1874508: Advanced search fieldset is broken for the core node search that I am pretty sure is not related to the work done here. Would love to get a second set of eyes confirming that, though.
Comment #17
frankbaele commentedlooking in too the patch
Comment #18
killah89 commentedCan't get the Patch too work. Please help me or Upload fresh files with this patch so that i only must replace the files. Drupal drop me a Error when i add the patch -
Parse error: syntax error, unexpected T_DOUBLE_ARROW in C:\xampp\htdocs\arti\sites\all\themes\bootstrap\template.php on line 31 -
I'll very happy if anyone help me.
Thanks and regards,
Marvin :)
Comment #19
natted commentedIn testing the patch, I did have an issue where User search functionality broke. Content search works.
My Advanced Search fieldset did work though.
I'll run some more tests and see if I can tweak the patch.
Comment #20
natted commentedI've updated cpliakas patch, with a small adjustment to fix user search.
I've also tweaked it so that the search displays correctly in the top navbar when the search block is assigned to the Navigation block.
All appears to work from my end now.
Comment #21
natted commentedOk, I've committed to dev.
Thanks cpliakas! Really appreciate the work on developing the patch.
Comment #22
cpliakas commentedAwesome! Thanks for your attention to this and committing the patch.
Comment #23.0
(not verified) commentedUpdated issue summary.