Skip to content

Instantly share code, notes, and snippets.

@ehelms
Created June 7, 2013 20:07
Show Gist options
  • Save ehelms/5732036 to your computer and use it in GitHub Desktop.
Save ehelms/5732036 to your computer and use it in GitHub Desktop.
<div class="table-searchbar">
<h1>{{ "Systems" }}</h1>
<div class="fl form">
<input type="text"
class="input input-search"
placeholder="Search..."
ng-model="table.searchTerm"
on-enter="table.search(table.searchTerm)">
<span class="result-count">Showing {{ table.offset }} of {{ table.subtotal }} ({{ table.total }} Total)</span>
</div>
<div class="fr">
<span>{{ table.numSelected }} Selected</span>
<span>|</span>
<a class="deselect-action"
ng-class="{ 'disabled-link' : table.numSelected == 0 }"
ng-click="table.selectAll(false)">
Deselect All
</a>
</div>
</div>
<table class="table table-bordered table-striped" alch-table="table">
<thead>
<th class="row-select">
<input class="select-all"
type="checkbox"
name="selectAll"
ng-model="table.allSelected"
ng-change="table.selectAll(table.allSelected)">
</th>
<th>{{ "Name" }}</th>
<th>{{ "Description" }}</th>
</thead>
<tbody>
<tr ng-repeat="system in table.items"
ng-class="{ 'active-row' : system.selected }">
<td class="row-select">
<input ng-model="system.selected"
type="checkbox"
name="{{ system.id }}"
value="{{ system.id }}"
ng-change="table.itemSelected(system.selected)">
</td>
<td>{{ system.name }}</td>
<td>{{ system.description }}</td>
</tr>
</tbody>
</table>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment