Merge "Searchbar directive should be prefix with hz"

This commit is contained in:
Jenkins 2015-07-02 00:58:28 +00:00 committed by Gerrit Code Review
commit f8eba7d1cb
8 changed files with 21 additions and 21 deletions

View File

@ -6,14 +6,14 @@
.constant('horizon.framework.widgets.table.filterPlaceholderText', gettext('Filter'))
/**
* @ngdoc directive
* @name horizon.framework.widgets.table.directive:searchBar
* @name horizon.framework.widgets.table.directive:hzSearchBar
* @element
* @param {string} {array} groupClasses Input group classes (optional)
* @param {string} {array} iconClasses Icon classes (optional)
* @param {string} {array} inputClasses Search field classes (optional)
* @param {string} placeholder input field placeholder text (optional)
* @description
* The `searchBar` directive generates a search field that will
* The `hzSearchBar` directive generates a search field that will
* trigger filtering of the associated Smart-Table.
*
* groupClasses - classes that should be applied to input group element
@ -25,12 +25,12 @@
*
* @example
* ```
* <search-bar group-classes="input-group-sm"
* <hz-search-bar group-classes="input-group-sm"
* icon-classes="fa-search" input-classes="..." placeholder="Filter">
* </search-bar>
* </hz-search-bar>
* ```
*/
.directive('searchBar', ['horizon.framework.widgets.table.filterPlaceholderText',
.directive('hzSearchBar', ['horizon.framework.widgets.table.filterPlaceholderText',
'horizon.framework.widgets.basePath',
function(FILTER_PLACEHOLDER_TEXT, path) {
return {

View File

@ -22,9 +22,9 @@
'<thead>' +
' <tr>' +
' <th>' +
' <search-bar group-classes="input-group-sm" ' +
' <hz-search-bar group-classes="input-group-sm" ' +
' icon-classes="fa-search">' +
' </search-bar>' +
' </hz-search-bar>' +
' </th>' +
' </tr>' +
'</thead>' +

View File

@ -3,8 +3,8 @@
<thead>
<tr>
<th class="search-header" colspan="10">
<search-bar group-classes="input-group-sm" icon-classes="fa-search">
</search-bar>
<hz-search-bar group-classes="input-group-sm" icon-classes="fa-search">
</hz-search-bar>
</th>
</tr>
<tr>
@ -85,4 +85,4 @@
</td>
</tr>
</tbody>
</table>
</table>

View File

@ -18,8 +18,8 @@ limitations under the License.
<thead>
<tr ng-show="showSearchBar">
<th class="search-header" colspan="9">
<search-bar group-classes="input-group-sm" icon-classes="fa-search">
</search-bar>
<hz-search-bar group-classes="input-group-sm" icon-classes="fa-search">
</hz-search-bar>
</th>
</tr>
<tr>

View File

@ -79,8 +79,8 @@
<thead>
<tr>
<th class="search-header" colspan="7">
<search-bar group-classes="input-group-sm" icon-classes="fa-search">
</search-bar>
<hz-search-bar group-classes="input-group-sm" icon-classes="fa-search">
</hz-search-bar>
</th>
</tr>
<tr>
@ -127,4 +127,4 @@
</transfer-table> <!-- End Key Pairs Table -->
</div> <!-- End Content -->
</div> <!-- End Controller -->
</div> <!-- End Controller -->

View File

@ -99,8 +99,8 @@
<thead>
<tr>
<th class="search-header" colspan="8">
<search-bar group-classes="input-group-sm" icon-classes="fa-search">
</search-bar>
<hz-search-bar group-classes="input-group-sm" icon-classes="fa-search">
</hz-search-bar>
</th>
</tr>
<tr>

View File

@ -62,9 +62,9 @@
<thead>
<tr>
<th class="search-header" colspan="7">
<search-bar group-classes="input-group-sm"
<hz-search-bar group-classes="input-group-sm"
icon-classes="fa-search">
</search-bar>
</hz-search-bar>
</th>
</tr>
<tr>

View File

@ -287,9 +287,9 @@
<tr>
<th class="search-header"
colspan="{$ ctrl.tableHeadCells.length + 2 $}">
<search-bar group-classes="input-group-sm"
<hz-search-bar group-classes="input-group-sm"
icon-classes="fa-search">
</search-bar>
</hz-search-bar>
</th>
</tr>
<tr>