nowa funkcja / domyslne wpisy

This commit is contained in:
Mateusz Gruszczyński
2025-03-10 12:04:22 +01:00
parent 7fb796357f
commit 9cffcb0ca6
7 changed files with 363 additions and 82 deletions

View File

@ -50,7 +50,8 @@
<th>Wybrany /etc/hosts</th>
<th>Auto Deploy</th>
<th>Auto Backup</th>
<th>Wyłącz CIDR / regex</th>
<th>Wyłącz <a href="{{ url_for('list_regex_hosts') }}">CIDR / regex</a></th>
<th>Wyłącz <a href="{{ url_for('local_defaults') }}">local-defaults</a></th>
<th>Akcje</th>
</tr>
</thead>
@ -152,7 +153,17 @@
</div>
</form>
</td>
<td>
<form method="POST" action="{{ url_for('update_host_automation', id=h.id) }}" class="d-flex justify-content-center">
<input type="hidden" name="setting" value="disable_local_default">
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" id="disableLocalDefaultCheckbox{{ h.id }}" name="enabled" value="1" onchange="this.form.submit()" {% if h.disable_local_default %}checked{% endif %}>
<label class="form-check-label" for="disableLocalDefaultCheckbox{{ h.id }}"></label>
</div>
</form>
</td>
<td>
<div class="d-flex flex-wrap gap-1">
<a href="{{ url_for('edit_server', id=h.id) }}" class="btn btn-primary btn-sm btn-action">Edytuj</a>