Skip to content

Commit

Permalink
[WebUI IntelliHome#7] Fixes for showing data and remove from popover
Browse files Browse the repository at this point in the history
  • Loading branch information
skullbocks committed Aug 20, 2014
1 parent 57e369a commit d4b4447
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 8 deletions.
15 changes: 11 additions & 4 deletions assets/templates/components/pins_popover.html.ep
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,19 @@
</div>
<div class="content container">
<table class="table" data-type="pin">
<thead>
<tr>
<th>Pin</th>
<th>Type</th>
<th></th>
</tr>
</thead>
<tbody>
% foreach (@{$pins}){
<tr class="pin" id="<%= $_->pinid %>">
<td class="pin-pin"><%= $_->pin %></td>
<td class="pin-type"><%= $_->type %></td>
<td><a href="#" class="delete-pin" data-type="pin"><span class="glyphicon glyphicon-trash"></span></a></td>
<tr class="pin" id="<%= $_->{id} %>">
<td class="pin-pin"><%= $_->{pin} %></td>
<td class="pin-type"><%= $_->{type} %></td>
<td><a href="#" class="delete-row popover-remove-row" data-type="pin"><span class="glyphicon glyphicon-trash"></span></a></td>
</tr>
% }
</tbody>
Expand Down
15 changes: 11 additions & 4 deletions assets/templates/components/tags_popover.html.ep
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,19 @@
</div>
<div class="content container">
<table class="table">
<thead>
<tr>
<th>Tag</th>
<th>Description</th>
<th></th>
</tr>
</thead>
<tbody>
% foreach (@{$tags}){
<tr class="tag" id="<%= $_->tagid %>">
<td class="tag-tag"><%= $_->tag %></td>
<td class="tag-description"><%= $_->description %></td>
<td><a href="#" class="delete-row" data-type="tag"><span class="glyphicon glyphicon-trash"></span></a></td>
<tr class="tag" id="<%= $_->{id} %>">
<td class="tag-tag"><%= $_->{tag} %></td>
<td class="tag-description"><%= $_->{description} %></td>
<td><a href="#" class="delete-row popover-remove-row" data-type="tag"><span class="glyphicon glyphicon-trash"></span></a></td>
</tr>
% }
</tbody>
Expand Down

0 comments on commit d4b4447

Please sign in to comment.