netzbeere-web/groups-lists.lp

103 lines
4.7 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.lists.title') ?></h1>
</div>
<!-- Domain 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.lists.add_list_title') ?>
</h3>
</div>
<!-- /.box-header -->
<div class="box-body">
<div class="row">
<div class="form-group col-md-6">
<label for="new_address"><?= i18n('shared.address') ?>:</label>
<input id="new_address" type="text" class="form-control" placeholder="<?= i18n('groups.lists.address_placeholder') ?>" autocomplete="off" spellcheck="false" autocapitalize="none" autocorrect="off">
</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.lists.comment_placeholder') ?>">
</div>
<div class="form-group col-lg-3 col-md-6">
<label for="new_group"><?= i18n('groups.lists.group_assignment_label') ?></label>
<div><select class="selectpicker form-control" id="new_group" multiple></select></div>
</div>
</div>
</div>
<div class="box-footer clearfix">
<strong><?= i18n('shared.hints') ?>:</strong>
<ol>
<li><?= i18ns('groups.lists.hint_run_gravity', webhome, lang) ?></li>
<li><?= i18n('groups.lists.hint_multiple_lists') ?></li>
<li><?= i18n('groups.lists.hint_icon_info') ?></li>
</ol>
<div class="btn-toolbar pull-right" role="toolbar" aria-label="<?= i18n('groups.lists.toolbar') ?>">
<div class="btn-group" role="group">
<button type="button" id="btnAddBlock" class="btn btn-danger pull-right"><?= i18n('groups.lists.add_blocklist') ?></button>
</div>
<div class="btn-group" role="group">
<button type="button" id="btnAddAllow" class="btn btn-success pull-right"><?= i18n('groups.lists.add_allowlist') ?></button>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="box" id="lists-list">
<div class="box-header with-border">
<h3 class="box-title">
<?= i18n('groups.lists.subscribed_lists_title') ?>
</h3>
</div>
<!-- /.box-header -->
<div class="box-body">
<table id="listsTable" class="table table-striped table-bordered" width="100%">
<thead>
<tr>
<th><?= i18n('shared.id') ?></th>
<th></th>
<th class="no-padding"></th>
<th class="no-padding"></th>
<th><?= i18n('shared.address') ?></th>
<th><?= i18n('shared.status') ?></th>
<th><?= i18n('shared.comment') ?></th>
<th><?= i18n('groups.lists.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.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/groups-common.js')?>"></script>
<script src="<?=pihole.fileversion('scripts/js/groups-lists.js')?>"></script>
<? mg.include('scripts/lua/footer.lp','r')?>