30 lines
1.6 KiB
HTML
30 lines
1.6 KiB
HTML
{% extends 'base.html' %}
|
|
{% block title %}Ustawienia globalne{% endblock %}
|
|
{% block content %}
|
|
<div class="container my-4">
|
|
<div class="card shadow-sm">
|
|
<div class="card-header bg-primary text-white">
|
|
<h3 class="card-title mb-0">Ustawienia globalne</h3>
|
|
</div>
|
|
<div class="card-body">
|
|
<form method="post">
|
|
<div class="mb-3">
|
|
<label for="numer_konta" class="form-label">Globalny numer konta</label>
|
|
<input type="text" class="form-control" id="numer_konta" name="numer_konta" value="{{ settings.numer_konta if settings else '' }}" required>
|
|
</div>
|
|
<div class="mb-3">
|
|
<label for="numer_telefonu_blik" class="form-label">Globalny numer telefonu BLIK</label>
|
|
<input type="text" class="form-control" id="numer_telefonu_blik" name="numer_telefonu_blik" value="{{ settings.numer_telefonu_blik if settings else '' }}" required>
|
|
</div>
|
|
<div class="mb-3">
|
|
<label for="allowed_login_hosts" class="form-label">Dozwolone hosty logowania</label>
|
|
<textarea class="form-control" id="allowed_login_hosts" name="allowed_login_hosts" rows="4" placeholder="Podaj adresy IP lub nazwy domen oddzielone przecinkami lub nowymi liniami">{{ settings.allowed_login_hosts if settings and settings.allowed_login_hosts else '' }}</textarea>
|
|
</div>
|
|
<button type="submit" class="btn btn-primary">Zapisz ustawienia</button>
|
|
<a href="{{ url_for('admin_dashboard') }}" class="btn btn-secondary">Powrót</a>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|