{% extends "base.html" %} {% block title %}Ustawienia - /etc/hosts Manager{% endblock %} {% block content %} <h2>Ustawienia</h2> <form method="post"> <div class="form-group 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="form-group"> <label for="deploy_interval">Interwał deploy (minuty)</label> <input type="number" class="form-control" id="deploy_interval" name="deploy_interval" value="{{ settings.deploy_interval }}"> </div> <div class="form-group"> <label for="backup_interval">Interwał backupów (minuty)</label> <input type="number" class="form-control" id="backup_interval" name="backup_interval" value="{{ settings.backup_interval }}"> </div> <div class="form-group 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 deploy</label> </div> <div class="form-group"> <label for="backup_retention_days">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> {% endblock %}