48 lines
2.2 KiB
HTML
48 lines
2.2 KiB
HTML
{% extends "base.html" %}
|
|
{% block title %}Ustawienia - /etc/hosts Manager{% endblock %}
|
|
{% block extra_css %}
|
|
{{ super() }}
|
|
<style>
|
|
.tooltip-inner {
|
|
max-width: 300px;
|
|
text-align: left;
|
|
}
|
|
</style>
|
|
{% endblock %}
|
|
{% block content %}
|
|
<div class="card mb-4">
|
|
<div class="card-header">
|
|
<h2>Ustawienia</h2>
|
|
</div>
|
|
<div class="card-body">
|
|
<form method="post">
|
|
<div class="mb-3 form-check">
|
|
<input type="checkbox" class="form-check-input" id="auto_deploy" name="auto_deploy" {% if settings.auto_deploy_enabled %}checked{% endif %}>
|
|
<label class="form-check-label" for="auto_deploy">Automatyczny deploy</label>
|
|
</div>
|
|
<div class="mb-3">
|
|
<label for="deploy_interval" class="form-label">Interwał deploy (minuty)</label>
|
|
<input type="number" class="form-control" id="deploy_interval" name="deploy_interval" value="{{ settings.deploy_interval }}">
|
|
</div>
|
|
<div class="mb-3">
|
|
<label for="backup_interval" class="form-label">Interwał backupów (minuty)</label>
|
|
<input type="number" class="form-control" id="backup_interval" name="backup_interval" value="{{ settings.backup_interval }}">
|
|
</div>
|
|
<div class="mb-3 form-check">
|
|
<input type="checkbox" class="form-check-input" id="auto_backup" name="auto_backup" {% if settings.auto_backup_enabled %}checked{% endif %}>
|
|
<label class="form-check-label" for="auto_backup">Automatyczne kopie zapasowe</label>
|
|
</div>
|
|
<div class="mb-3 form-check">
|
|
<input type="checkbox" class="form-check-input" id="enable_regex_entries" name="enable_regex_entries" {% if settings.regex_deploy_enabled %}checked{% endif %}>
|
|
<label class="form-check-label" for="enable_regex_entries">Włącz regex/CIDR deploy</label>
|
|
</div>
|
|
<div class="mb-3">
|
|
<label for="backup_retention_days" class="form-label">Ilość dni przechowywania backupów</label>
|
|
<input type="number" class="form-control" id="backup_retention_days" name="backup_retention_days" value="{{ settings.backup_retention_days }}">
|
|
</div>
|
|
<button type="submit" class="btn btn-primary">Zapisz ustawienia</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|