netzbeere-web/groups-clients.lp

97 lines
4.2 KiB
Plaintext

<? --[[
* Pi-hole: A black hole for Internet advertisements
* (c) 2019 Pi-hole, LLC (https://pi-hole.net)
* Network-wide ad blocking via your own hardware.
*
* This file is copyright under the latest version of the EUPL.
* Please see LICENSE file for your rights under this license.
--]]
mg.include('scripts/lua/header_authenticated.lp','r')
?>
<!-- Title -->
<div class="page-header">
<h1><?= i18n('groups.clients.page_title') ?></h1>
</div>
<!-- Domain Input -->
<div class="row">
<div class="col-md-12">
<div class="box" id="add-client">
<!-- /.box-header -->
<div class="box-header with-border">
<h3 class="box-title">
<?= i18n('groups.clients.add_new_client') ?>
</h3>
</div>
<!-- /.box-header -->
<div class="box-body">
<div class="row">
<div class="form-group col-md-6">
<label for="select"><?= i18n('groups.clients.known_clients') ?></label>
<select id="select" class="form-control" placeholder="">
<option disabled selected><?= i18n('shared.loading') ?></option>
</select>
</div>
<div class="form-group col-lg-3 col-md-6">
<label for="new_comment"><?= i18n('shared.comment') ?>:</label>
<input id="new_comment" type="text" class="form-control" placeholder="<?= i18n('groups.clients.comment_placeholder') ?>">
</div>
<div class="form-group col-lg-3 col-md-6">
<label for="new_group"><?= i18n('groups.clients.group_assignment') ?></label>
<div><select class="selectpicker form-control" id="new_group" multiple></select></div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<p><?= i18n('groups.clients.select_instruction') ?></p>
<p><?= i18n('groups.clients.client_description_instruction') ?></p>
<p><?= i18n('groups.clients.client_recognition_note') ?></p>
</div>
</div>
</div>
<div class="box-footer clearfix">
<button type="button" id="btnAdd" class="btn btn-primary pull-right"><?= i18n('groups.add') ?></button>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="box" id="clients-list">
<div class="box-header with-border">
<h3 class="box-title">
<?= i18n('groups.clients.client_list_title') ?>
</h3>
</div>
<!-- /.box-header -->
<div class="box-body">
<table id="clientsTable" class="table table-striped table-bordered" width="100%">
<thead>
<tr>
<th><?= i18n('shared.id') ?></th>
<th></th>
<th title="<?= i18n('groups.clients.client_title') ?>"><?= i18n('shared.client') ?></th>
<th><?= i18n('shared.comment') ?></th>
<th><?= i18n('groups.clients.column_group_assignment') ?></th>
<th>&nbsp;</th>
</tr>
</thead>
</table>
<button type="button" id="resetButton" class="btn btn-default btn-sm text-red hidden"><?= i18n('groups.clients.reset_sorting') ?></button>
</div>
<!-- /.box-body -->
</div>
<!-- /.box -->
</div>
</div>
<script src="<?=pihole.fileversion('vendor/bootstrap-select/bootstrap-select.min.js')?>"></script>
<script src="<?=pihole.fileversion('vendor/bootstrap-toggle/bootstrap-toggle.min.js')?>"></script>
<script src="<?=pihole.fileversion('scripts/js/ip-address-sorting.js')?>"></script>
<script src="<?=pihole.fileversion('scripts/js/groups-common.js')?>"></script>
<script src="<?=pihole.fileversion('scripts/js/groups-clients.js')?>"></script>
<? mg.include('scripts/lua/footer.lp','r')?>