Files
librenms-librenms/html/pages/customers.inc.php
Tony Murray 93f44d67f8 Fixed customers page (#9521)
move customers table backend to Laravel

DO NOT DELETE THIS TEXT

#### Please note

> Please read this information carefully. You can run `./scripts/pre-commit.php` to check your code before submitting.

- [x] Have you followed our [code guidelines?](http://docs.librenms.org/Developing/Code-Guidelines/)

#### Testers

If you would like to test this pull request then please run: `./scripts/github-apply <pr_id>`, i.e `./scripts/github-apply 5926`
After you are done testing, you can remove the changes with `./scripts/github-remove`.  If there are schema changes, you can ask on discord how to revert.
2018-12-07 22:24:53 +00:00

36 lines
1001 B
PHP

<?php
$pagetitle[] = 'Customers';
$no_refresh = true;
?>
<div class="table-responsive">
<table id="customers" class="table table-hover table-condensed">
<thead>
<tr>
<th data-column-id="port_descr_descr" data-order="asc" data-formatter="customer">Customer</th>
<th data-column-id="hostname">Device</th>
<th data-column-id="ifDescr">Interface</th>
<th data-column-id="port_descr_speed">Speed</th>
<th data-column-id="port_descr_circuit">Circuit</th>
<th data-column-id="port_descr_notes">Notes</th>
</tr>
</thead>
</table>
</div>
<script>
var grid = $("#customers").bootgrid({
ajax: true,
rowCount: [50, 100, 250, -1],
url: "ajax/table/customers",
formatters: {
customer: function (column, row) {
return '<strong>' + row[column.id] + '</strong>';
}
}
});
</script>