Skip to content

Commit

Permalink
Merge pull request #330 from MaximeDevalland/master
Browse files Browse the repository at this point in the history
added input search field in top bar
  • Loading branch information
yl3w committed Jul 9, 2015
2 parents 7dd1f45 + 948842b commit ae44eae
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
activator
activator-launch-1.3.5.jar
./logs
project/project
project/target
Expand Down
6 changes: 5 additions & 1 deletion app/views/main.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,12 @@
</button>
<a class="navbar-brand" href="@collins.app.routes.Resources.index">Collins</a>
</div>
@form(collins.app.routes.Resources.find(0,50,"DESC","and"), 'class -> "form-horizontal") {
<div class="navbar-collapse collapse navbar-right">
<ul class="nav navbar-nav">
<li class="@{if (req.path == collins.app.routes.Resources.index.toString) "active" }"><a href="@collins.app.routes.Resources.index">Search</a></li>
<li class="@{if (req.path == collins.app.routes.Resources.index.toString) "active" }">
<input type="text" class="form-control" placeholder="Search Asset Tag">
</li>
@User.fromMap(req.session.data).map { u =>
@if(Permissions.please(u, Permissions.AssetLogApi.GetAll)) {
<li class="@{if (req.path == collins.controllers.routes.Admin.logs.toString) "active" }"><a href="@collins.controllers.routes.Admin.logs">Logging</a></li>
Expand All @@ -59,6 +62,7 @@
<li><a href="@collins.controllers.routes.Application.logout">Logout</a></li>
</ul>
</div>
}
</div>
</nav>
} else {
Expand Down
4 changes: 4 additions & 0 deletions public/stylesheets/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ table.dataTable thead .sorting_desc {
text-align:inherit !important;
}

.form-horizontal > div > ul > li > input {
margin-top:8px
}

.page-header .asset-status-label {
/* position the label in the top right of the page-header only on asset show_menu view*/
position:absolute;
Expand Down

0 comments on commit ae44eae

Please sign in to comment.