Skip to content

Commit

Permalink
Add navigation between upstream and targets
Browse files Browse the repository at this point in the history
  • Loading branch information
marcel-dias committed Oct 29, 2017
1 parent c19c4ca commit 5045c4d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
15 changes: 14 additions & 1 deletion src/html/upstreams/form.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,20 @@ <h3 class="header">{{title}}</h3>
<label for="slots" ng-class="{active:upstream.slots}">Slot</label>
<app-field-error error="error.slots"></app-field-error>
</div>
<div class="input-field col s12">

<div class="input-field col s4">
<a href="#/upstreams/{{upstream.id}}/targets/add" class="waves-effect waves-light btn" ng-show="isEdit()">
<i class="material-icons left">add_box</i>
Add Target
</a>
</div>
<div class="input-field col s4">
<a href="#/upstreams/{{upstream.id}}/targets" class="waves-effect waves-light btn" ng-show="isEdit()">
<i class="material-icons left">list</i>
List Target
</a>
</div>
<div class="input-field col s4">
<button type="submit" class="waves-effect waves-light btn right">
{{action}}
</button>
Expand Down
5 changes: 4 additions & 1 deletion src/html/upstreams/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ <h3 class="header">
</p>
</div>

<table class="bordered" ng-show="total > 0">
<table class="bordered " ng-show="total > 0">
<thead>
<tr>
<th>ID</th>
Expand All @@ -69,6 +69,9 @@ <h3 class="header">
<td>{{upstream.slots}}</td>
<td>{{upstream.created_at | date}}</td>
<td class="right">
<a class="btn-floating waves-effect waves-light" href="#/upstreams/{{upstream.id}}/targets" alt="List Targets">
<i class="material-icons tooltipped" data-position="bottom" data-tooltip="List Targets" data-delay="0" >input</i>
</a>
<a class="btn-floating waves-effect waves-light" href="#/upstreams/{{upstream.id}}">
<i class="material-icons">mode_edit</i>
</a>
Expand Down

0 comments on commit 5045c4d

Please sign in to comment.