{% extends 'admin/admin_base.html' %} {% block title %}Ustawienia globalne{% endblock %} {% block admin_content %}

Ustawienia globalne

Wspólna konfiguracja systemu dla SMTP, Pushover i NFZ oraz model współdzielonego profilu KSeF per firma.
KSeF nie jest ustawieniem w pełni globalnym dla całego systemu. Administrator ustawia parametry domyślne oraz osobny profil współdzielony dla aktywnej firmy. Użytkownik może świadomie wybrać profil współdzielony albo własny.
SMTP globalne
{{ mail_form.hidden_tag() }}
{{ mail_form.server.label(class='form-label') }}{{ mail_form.server(class='form-control') }}
{{ mail_form.port.label(class='form-label') }}{{ mail_form.port(class='form-control') }}
{{ mail_form.username.label(class='form-label') }}{{ mail_form.username(class='form-control') }}
{{ mail_form.password.label(class='form-label') }}{{ mail_form.password(class='form-control', placeholder='Pozostaw puste aby zachować hasło') }}
{{ mail_form.sender.label(class='form-label') }}{{ mail_form.sender(class='form-control') }}
{{ mail_form.security_mode.label(class='form-label') }}{{ mail_form.security_mode(class='form-select') }}
{{ mail_form.submit(class='btn btn-primary') }}
Pushover globalny
{{ notify_form.hidden_tag() }}
{{ notify_form.pushover_user_key.label(class='form-label') }}{{ notify_form.pushover_user_key(class='form-control') }}
{{ notify_form.pushover_api_token.label(class='form-label') }}{{ notify_form.pushover_api_token(class='form-control', placeholder='Pozostaw puste aby zachować token') }}
{{ notify_form.min_amount.label(class='form-label') }}{{ notify_form.min_amount(class='form-control') }}
{{ notify_form.quiet_hours.label(class='form-label') }}{{ notify_form.quiet_hours(class='form-control') }}
{{ notify_form.enabled(class='form-check-input') }}{{ notify_form.enabled.label(class='form-check-label') }}
{{ notify_form.submit(class='btn btn-primary') }}
NFZ globalnie
{{ nfz_form.hidden_tag() }}
{{ nfz_form.enabled(class='form-check-input') }}{{ nfz_form.enabled.label(class='form-check-label') }}
{{ nfz_form.submit(class='btn btn-primary') }}
Domyślne parametry KSeF
{{ ksef_defaults_form.hidden_tag() }}
{{ ksef_defaults_form.environment.label(class='form-label') }}{{ ksef_defaults_form.environment(class='form-select') }}
{{ ksef_defaults_form.auth_mode.label(class='form-label') }}{{ ksef_defaults_form.auth_mode(class='form-select') }}
{{ ksef_defaults_form.client_id.label(class='form-label') }}{{ ksef_defaults_form.client_id(class='form-control') }}
Te parametry podpowiadają start nowej konfiguracji, ale nie nadpisują sekretów użytkowników ani współdzielonych profili firm.
{{ ksef_defaults_form.submit(class='btn btn-primary') }}
Współdzielony profil KSeF dla aktywnej firmy
Aktywna firma: {{ current_company.name if current_company else 'brak' }}. Ten profil mogą wybrać użytkownicy tej firmy zamiast własnych danych KSeF.
{{ shared_ksef_form.hidden_tag() }}
{{ shared_ksef_form.environment.label(class='form-label') }}{{ shared_ksef_form.environment(class='form-select') }}
{{ shared_ksef_form.auth_mode.label(class='form-label') }}{{ shared_ksef_form.auth_mode(class='form-select') }}
{{ shared_ksef_form.client_id.label(class='form-label') }}{{ shared_ksef_form.client_id(class='form-control') }}
{{ shared_ksef_form.certificate_name.label(class='form-label') }}{{ shared_ksef_form.certificate_name(class='form-control') }}
{{ shared_ksef_form.token.label(class='form-label') }}{{ shared_ksef_form.token(class='form-control', placeholder='Pozostaw puste aby zachować token') }}
{{ 'Token zapisany.' if shared_token_configured else 'Brak zapisanego tokena.' }}
{{ shared_ksef_form.certificate_data.label(class='form-label') }}{{ shared_ksef_form.certificate_data(class='form-control', placeholder='Pozostaw puste aby zachować certyfikat') }}
{{ 'Certyfikat zapisany.' if shared_cert_configured else 'Brak zapisanego certyfikatu.' }}
{{ shared_ksef_form.submit(class='btn btn-primary') }}
{% endblock %}