88 lines
3.5 KiB
Plaintext
88 lines
3.5 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.title') ?></h1>
|
|
</div>
|
|
|
|
<!-- Group Input -->
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="box" id="add-group">
|
|
<!-- /.box-header -->
|
|
<div class="box-header with-border">
|
|
<h3 class="box-title">
|
|
<?= i18n('groups.add_group_title') ?>
|
|
</h3>
|
|
</div>
|
|
<!-- /.box-header -->
|
|
<div class="box-body">
|
|
<div class="row">
|
|
<div class="form-group col-md-6">
|
|
<label for="new_name"><?= i18n('shared.name') ?>:</label>
|
|
<input id="new_name" type="text" class="form-control" placeholder="<?= i18n('groups.name_placeholder') ?>">
|
|
</div>
|
|
<div class="form-group col-md-6">
|
|
<label for="new_comment"><?= i18n('shared.comment') ?>:</label>
|
|
<input id="new_comment" type="text" class="form-control" placeholder="<?= i18n('groups.comment_placeholder') ?>">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="box-footer clearfix">
|
|
<strong><?= i18n('shared.hints') ?>:</strong>
|
|
<ol>
|
|
<li><?= i18n('groups.hint_multiple_groups') ?></li>
|
|
<li><?= i18n('groups.hint_quoted_names') ?></li>
|
|
</ol>
|
|
<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="groups-list">
|
|
<div class="box-header with-border">
|
|
<h3 class="box-title">
|
|
<?= i18n('groups.list_title') ?>
|
|
</h3>
|
|
</div>
|
|
<!-- /.box-header -->
|
|
<div class="box-body">
|
|
<table id="groupsTable" class="table table-striped table-bordered" width="100%">
|
|
<thead>
|
|
<tr>
|
|
<th><?= i18n('shared.id') ?></th>
|
|
<th></th>
|
|
<th><?= i18n('shared.name') ?></th>
|
|
<th><?= i18n('shared.status') ?></th>
|
|
<th><?= i18n('shared.comment') ?></th>
|
|
<th> </th>
|
|
</tr>
|
|
</thead>
|
|
</table>
|
|
<button type="button" id="resetButton" class="btn btn-default btn-sm text-red hidden"><?= i18n('groups.reset') ?></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/groups-common.js')?>"></script>
|
|
<script src="<?=pihole.fileversion('scripts/js/groups.js')?>"></script>
|
|
|
|
<? mg.include('scripts/lua/footer.lp','r')?>
|