netzbeere-web/settings-dnsrecords.lp

114 lines
6.3 KiB
Plaintext

<? --[[
* Pi-hole: A black hole for Internet advertisements
* (c) 2023 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')
-- Page title and level selector
PageTitle = i18n('settings.dnsrecords.title')
mg.include('scripts/lua/settings_header.lp','r')
?>
<div class="row">
<div class="col-md-12 col-lg-6">
<div class="box">
<div class="box-header with-border">
<h3 class="box-title" id="title-hosts" data-configkeys="dns.hosts"><?= i18n('settings.dnsrecords.local_dns_records') ?></h3>
</div>
<div class="box-body">
<div class="row">
<div class="col-md-12">
<h3 class="box-title"><?= i18n('settings.dnsrecords.list_local_dns_records') ?></h3>
<!-- /.box-header -->
<table id="hosts-Table" class="table table-striped table-bordered" width="100%">
<thead>
<tr>
<th><?= i18n('shared.domain') ?></th>
<th><?= i18n('shared.ip') ?></th>
<th></th>
</tr>
</thead>
<tfoot class="add-new-item">
<tr>
<th>
<input id="Hdomain" type="url" class="form-control" data-configkeys="hosts" placeholder="<?= i18n('shared.domain') ?>" autocomplete="off" spellcheck="false" autocapitalize="none" autocorrect="off">
</th>
<th>
<input id="Hip" type="text" class="form-control" data-configkeys="hosts" placeholder="<?= i18n('settings.dnsrecords.associated_ip_placeholder') ?>" autocomplete="off" spellcheck="false" autocapitalize="none" autocorrect="off">
</th>
<th>
<button type="button" id="btnAdd-host" class="btn btn-success btn-xs" data-configkeys="hosts"><i class="fa fa-plus"></i></button>
</th>
</tr>
</tfoot>
</table>
</div>
</div>
</div>
<div class="box-footer">
<strong><?= i18n('shared.note') ?>:</strong>
<p><?= i18n('settings.dnsrecords.dns_cache_note') ?></p>
</div>
</div>
</div>
<div class="col-md-12 col-lg-6">
<div class="box">
<div class="box-header with-border">
<h3 class="box-title" id="title-cnameRecords" data-configkeys="dns.cnameRecords"><?= i18n('settings.dnsrecords.local_cname_records') ?></h3>
</div>
<div class="box-body">
<div class="row">
<div class="col-md-12">
<h3 class="box-title"><?= i18n('settings.dnsrecords.list_local_cname_records') ?></h3>
<!-- /.box-header -->
<table id="cnameRecords-Table" class="table table-striped table-bordered" width="100%">
<thead>
<tr>
<th><?= i18n('shared.domain') ?></th>
<th><?= i18n('settings.dnsrecords.target') ?></th>
<th><?= i18n('settings.dnsrecords.ttl') ?></th>
<th></th>
</tr>
</thead>
<tfoot class="add-new-item">
<tr>
<th>
<input id="Cdomain" type="url" class="form-control" data-configkeys="cnameRecords" placeholder="<?= i18n('shared.domain') ?>" autocomplete="off" spellcheck="false" autocapitalize="none" autocorrect="off">
</th>
<th>
<input id="Ctarget" type="url" class="form-control" data-configkeys="cnameRecords" placeholder="<?= i18n('settings.dnsrecords.target_domain_placeholder') ?>" autocomplete="off" spellcheck="false" autocapitalize="none" autocorrect="off">
</th>
<th>
<input id="Cttl" type="numeric" class="form-control" data-configkeys="cnameRecords" autocomplete="off" spellcheck="false" autocapitalize="none" autocorrect="off">
</th>
<th>
<button type="button" id="btnAdd-cname" class="btn btn-success btn-xs" data-configkeys="cnameRecords"><i class="fa fa-plus"></i></button>
</th>
</tr>
</tfoot>
</table>
</div>
</div>
</div>
<div class="box-footer">
<strong><?= i18n('shared.note') ?>:</strong>
<p><?= i18n('settings.dnsrecords.cname_note_intro') ?></p>
<p><?= i18n('settings.dnsrecords.cname_note_detail') ?></p>
<p><?= i18n('settings.dnsrecords.cname_external_domains_warning') ?></p>
<p><?= i18n('settings.dnsrecords.cname_restart_note') ?></p>
</div>
</div>
</div>
</div>
<script src="<?=pihole.fileversion('vendor/bootstrap-toggle/bootstrap-toggle.min.js')?>"></script>
<script src="<?=pihole.fileversion('vendor/jquery-confirm/jquery.confirm.min.js')?>"></script>
<script src="<?=pihole.fileversion('scripts/js/settings-dns-records.js')?>"></script>
<script src="<?=pihole.fileversion('scripts/js/ip-address-sorting.js')?>"></script>
<script src="<?=pihole.fileversion('scripts/js/settings.js')?>"></script>
<? mg.include('scripts/lua/footer.lp','r')?>