70 lines
No EOL
2 KiB
HTML
70 lines
No EOL
2 KiB
HTML
<md-content flex>
|
|
<md-toolbar class="md-table-toolbar md-default" ng-show="!selected.length">
|
|
<div class="md-toolbar-tools">
|
|
<span>Ports</span>
|
|
<span flex></span>
|
|
<md-button class="md-accent" ng-click="addPort(ev)">
|
|
<md-icon>add</md-icon>
|
|
Add Port
|
|
</md-button>
|
|
|
|
</div>
|
|
</md-toolbar>
|
|
|
|
<md-toolbar class="md-table-toolbar alternate" ng-show="selected.length">
|
|
<div class="md-toolbar-tools">
|
|
<span>{{selected.length}} {{selected.length > 1 ? 'items' : 'item'}} selected</span>
|
|
<span flex></span>
|
|
</div>
|
|
</md-toolbar>
|
|
<md-table-container>
|
|
<table md-table data-ng-model="selected" md-progress="promise" md-row-select>
|
|
<thead md-head>
|
|
<tr md-row>
|
|
<th></th>
|
|
<th md-column><h2 class="md-subhead">Port</h2></th>
|
|
<th md-column><h2 class="md-subhead">Difficulty</h2></th>
|
|
<th md-column><h2 class="md-subhead">Description</h2></th>
|
|
<th md-column><h2 class="md-subhead">Type</h2></th>
|
|
<th md-column><h2 class="md-subhead">Hidden</h2></th>
|
|
<th md-column><h2 class="md-subhead">SSL</h2></th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody md-body>
|
|
<tr md-row ng-repeat="port in pool_ports">
|
|
<td md-cell>
|
|
<md-button class="md-icon-button" ng-click="editPort($event, port)">
|
|
<md-icon>mode_edit</md-icon>
|
|
</md-button>
|
|
</td>
|
|
<td md-cell>{{port.port}}</td>
|
|
<td md-cell>{{port.diff}}</td>
|
|
<td md-cell>{{port.desc}}</td>
|
|
<td md-cell>{{port.portType}}</td>
|
|
<td md-cell>
|
|
<md-icon ng-if="port.hidden" class="valid">
|
|
done
|
|
</md-icon>
|
|
<md-icon ng-if="!port.hidden" class="invalid">
|
|
clear
|
|
</md-icon>
|
|
</td>
|
|
<td md-cell>
|
|
<md-icon ng-if="port.ssl" class="valid">
|
|
done
|
|
</md-icon>
|
|
<md-icon ng-if="!port.ssl" class="invalid">
|
|
clear
|
|
</md-icon>
|
|
</td>
|
|
<td md-cell>
|
|
<md-button class="md-icon-button" ng-click="deletePort($event, port)">
|
|
<md-icon>delete</md-icon>
|
|
</md-button>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</md-table-container>
|
|
</md-content> |