Fixed add_bootstrap_class template filter
Fixed add_bootstrap_class template filter

Made sure that the add_bootstrap_class filter correctly obtains the
widget type to prevent it applying the form-control css class onto
parts of forms that shouldn't have it.

Change-Id: I307780b241e70de38e405cbffc4a35859b9aaf1b
Closes-Bug: 1367302

Mirantis/mos-horizon,bigswitch/horizon,dan1/horizon-x509,Daniex/horizon,liyitest/rr,bac/horizon,endorphinl/horizon-fork,doug-fish/horizon,openstack/horizon,ChameleonCloud/horizon,liyitest/rr,agileblaze/OpenStackTwoFactorAuthentication,orbitfp7/horizon,doug-fish/horizon,ging/horizon,wangxiangyu/horizon,BiznetGIO/horizon,CiscoSystems/horizon,CiscoSystems/horizon,newrocknj/horizon,BiznetGIO/horizon,newrocknj/horizon,tqtran7/horizon,VaneCloud/horizon,takeshineshiro/horizon,mrunge/horizon,tsufiev/horizon,icloudrnd/automation_tools,Daniex/horizon,nvoron23/avos,yjxtogo/horizon,noironetworks/horizon,mandeepdhami/horizon,karthik-suresh/horizon,blueboxgroup/horizon,watonyweng/horizon,dan1/horizon-proto,philoniare/horizon,NeCTAR-RC/horizon,Hodorable/0602,anthonydillon/horizon,henaras/horizon,openstack/horizon,izadorozhna/dashboard_integration_tests,ChameleonCloud/horizon,philoniare/horizon,damien-dg/horizon,tellesnobrega/horizon,icloudrnd/automation_tools,vladryk/horizon,FNST-OpenStack/horizon,zouyapeng/horizon,gerrive/horizon,zouyapeng/horizon,zouyapeng/horizon,takeshineshiro/horizon,j4/horizon,RudoCris/horizon,bigswitch/horizon,icloudrnd/automation_tools,anthonydillon/horizon,blueboxgroup/horizon,maestro-hybrid-cloud/horizon,endorphinl/horizon,xme1226/horizon,tellesnobrega/horizon,sandvine/horizon,orbitfp7/horizon,wolverineav/horizon,bac/horizon,redhat-cip/horizon,dan1/horizon-proto,wangxiangyu/horizon,mrunge/horizon_lib,Dark-Hacker/horizon,endorphinl/horizon-fork,vladryk/horizon,redhat-cip/horizon,promptworks/horizon,damien-dg/horizon,Metaswitch/horizon,liyitest/rr,Tesora/tesora-horizon,Mirantis/mos-horizon,endorphinl/horizon,tsufiev/horizon,dan1/horizon-x509,noironetworks/horizon,tellesnobrega/horizon,bac/horizon,idjaw/horizon,promptworks/horizon,dan1/horizon-proto,xinwu/horizon,xinwu/horizon,yeming233/horizon,CiscoSystems/horizon,endorphinl/horizon,damien-dg/horizon,agileblaze/OpenStackTwoFactorAuthentication,damien-dg/horizon,watonyweng/horizon,redhat-cip/horizon,orbitfp7/horizon,CiscoSystems/avos,saydulk/horizon,openstack/horizon,mrunge/openstack_horizon,ChameleonCloud/horizon,mdavid/horizon,Hodorable/0602,RudoCris/horizon,nvoron23/avos,eayunstack/horizon,luhanhan/horizon,Daniex/horizon,maestro-hybrid-cloud/horizon,froyobin/horizon,saydulk/horizon,wolverineav/horizon,coreycb/horizon,FNST-OpenStack/horizon,mdavid/horizon,Tesora/tesora-horizon,yeming233/horizon,django-leonardo/horizon,tsufiev/horizon,pranavtendolkr/horizon,redhat-openstack/horizon,flochaz/horizon,django-leonardo/horizon,mandeepdhami/horizon,kfox1111/horizon,RudoCris/horizon,Metaswitch/horizon,FNST-OpenStack/horizon,yjxtogo/horizon,xinwu/horizon,tqtran7/horizon,gerrive/horizon,karthik-suresh/horizon,NeCTAR-RC/horizon,tqtran7/horizon,mrunge/horizon_lib,Tesora/tesora-horizon,django-leonardo/horizon,nvoron23/avos,gerrive/horizon,henaras/horizon,mrunge/openstack_horizon,izadorozhna/dashboard_integration_tests,eayunstack/horizon,openstack/horizon,Metaswitch/horizon,sandvine/horizon,VaneCloud/horizon,CiscoSystems/avos,VaneCloud/horizon,Solinea/horizon,noironetworks/horizon,tsufiev/horizon,kfox1111/horizon,Solinea/horizon,eayunstack/horizon,maestro-hybrid-cloud/horizon,takeshineshiro/horizon,j4/horizon,VaneCloud/horizon,Hodorable/0602,mrunge/horizon_lib,xme1226/horizon,Hodorable/0602,redhat-cip/horizon,davidcusatis/horizon,FNST-OpenStack/horizon,xinwu/horizon,vladryk/horizon,mandeepdhami/horizon,RudoCris/horizon,j4/horizon,ging/horizon,noironetworks/horizon,idjaw/horizon,CiscoSystems/horizon,newrocknj/horizon,bigswitch/horizon,blueboxgroup/horizon,wolverineav/horizon,BiznetGIO/horizon,wangxiangyu/horizon,henaras/horizon,wangxiangyu/horizon,luhanhan/horizon,karthik-suresh/horizon,luhanhan/horizon,promptworks/horizon,dan1/horizon-proto,davidcusatis/horizon,idjaw/horizon,ging/horizon,BiznetGIO/horizon,mrunge/horizon,mdavid/horizon,davidcusatis/horizon,bac/horizon,ging/horizon,tellesnobrega/horizon,doug-fish/horizon,wolverineav/horizon,endorphinl/horizon,philoniare/horizon,Solinea/horizon,Mirantis/mos-horizon,luhanhan/horizon,Daniex/horizon,froyobin/horizon,nvoron23/avos,mrunge/horizon,Metaswitch/horizon,saydulk/horizon,agileblaze/OpenStackTwoFactorAuthentication,Dark-Hacker/horizon,yeming233/horizon,kfox1111/horizon,watonyweng/horizon,doug-fish/horizon,endorphinl/horizon-fork,coreycb/horizon,coreycb/horizon,endorphinl/horizon-fork,takeshineshiro/horizon,sandvine/horizon,anthonydillon/horizon,xme1226/horizon,idjaw/horizon,yeming233/horizon,NCI-Cloud/horizon,pranavtendolkr/horizon,pranavtendolkr/horizon,redhat-openstack/horizon,dan1/horizon-x509,Solinea/horizon,zouyapeng/horizon,Dark-Hacker/horizon,Dark-Hacker/horizon,NCI-Cloud/horizon,yjxtogo/horizon,gerrive/horizon,froyobin/horizon,vladryk/horizon,henaras/horizon,redhat-openstack/horizon,mandeepdhami/horizon,NeCTAR-RC/horizon,CiscoSystems/avos,karthik-suresh/horizon,NCI-Cloud/horizon,sandvine/horizon,redhat-openstack/horizon,NeCTAR-RC/horizon,bigswitch/horizon,saydulk/horizon,blueboxgroup/horizon,NCI-Cloud/horizon,watonyweng/horizon,icloudrnd/automation_tools,yjxtogo/horizon,Mirantis/mos-horizon,agileblaze/OpenStackTwoFactorAuthentication,j4/horizon,liyitest/rr,ChameleonCloud/horizon,dan1/horizon-x509,flochaz/horizon,philoniare/horizon,mrunge/openstack_horizon,mdavid/horizon,flochaz/horizon,newrocknj/horizon,promptworks/horizon,anthonydillon/horizon,kfox1111/horizon,davidcusatis/horizon,django-leonardo/horizon,tqtran7/horizon,maestro-hybrid-cloud/horizon,flochaz/horizon,orbitfp7/horizon,Tesora/tesora-horizon,CiscoSystems/avos,pranavtendolkr/horizon,coreycb/horizon