Skip to content

Commit 11127f0

Browse files
felizbearbzz
authored andcommitted
style search widget for notebook search
1 parent db246fa commit 11127f0

File tree

1 file changed

+25
-13
lines changed

1 file changed

+25
-13
lines changed

zeppelin-web/src/components/navbar/navbar.html

Lines changed: 25 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -44,21 +44,33 @@
4444
</li>
4545
</ul>
4646

47-
<!--TODO(bzz): move to Typeahead https://angular-ui.github.io/bootstrap -->
48-
<form role="search"
49-
class="navbar-form navbar-left navbar-input-group"
50-
ng-submit="search()">
51-
52-
<div class="form-group">
53-
<input type="text" ng-model="searchTerm" ng-disabled="!navbar.connected"
54-
class="form-control" placeholder="Search your notebooks">
55-
</div>
56-
<button type="submit" class="btn btn-default" ng-disabled="!navbar.connected">
57-
Search
58-
</button>
59-
</form>
6047

6148
<ul class="nav navbar-nav navbar-right" style="margin-top:10px; margin-right:5px;">
49+
<li>
50+
<!--TODO(bzz): move to Typeahead https://angular-ui.github.io/bootstrap -->
51+
<form role="search"
52+
style="width: 300px; display: inline-block; margin: 0 10px"
53+
ng-submit="search()">
54+
<div class="input-group">
55+
<input
56+
type="text"
57+
ng-model="searchTerm"
58+
ng-disabled="!navbar.connected"
59+
class="form-control"
60+
placeholder="Search in your notebooks"
61+
/>
62+
<span class="input-group-btn">
63+
<button
64+
type="submit"
65+
class="btn btn-default"
66+
ng-disabled="!navbar.connected"
67+
>
68+
<i class="glyphicon glyphicon-search"></i>
69+
</button>
70+
</span>
71+
</div>
72+
</form>
73+
</li>
6274
<li class="server-status">
6375
<i class="fa fa-circle" ng-class="{'server-connected':navbar.connected, 'server-disconnected':!navbar.connected}"></i>
6476
<span ng-show="navbar.connected">Connected</span>

0 commit comments

Comments
 (0)