🔒 Repository is read-only – file editing is disabled.

PaganLinux/pagan-web-v2/templates/admin/settings.html main

34 linii Raw ← Powrót
12345678910111213141516171819202122232425262728293031323334
{% extends "base.html" %}{% block title %}{{ t('admin_settings_title') }} – PaganOS{% endblock %}
{% block content %}

{% include "admin/nav.html" %}

<div class="card">
 <div class="card-header"><h2>⚙️ {{ t('admin_settings_title') }}</h2></div>
 <form method="POST" action="/admin/settings" style="padding:1rem;display:flex;flex-direction:column;gap:0.85rem;max-width:680px">
 <input type="hidden" name="csrf_token" value="{{ csrf_token() }}">

 <label style="display:flex;align-items:flex-start;gap:0.6rem">
 <input type="checkbox" name="registration_enabled" value="1" {% if registration_enabled %}checked{% endif %} style="margin-top:0.25rem">
 <span><b>{{ t('admin_registration_open') }}</b><br>
 <span style="font-size:0.8rem;color:var(--muted)">{{ t('admin_reg_info') }}</span></span>
 </label>

 <label style="display:flex;align-items:flex-start;gap:0.6rem">
 <input type="checkbox" name="admin_activation_required" value="1" {% if admin_activation_required %}checked{% endif %} style="margin-top:0.25rem">
 <span><b>{{ t('admin_activation_required') }}</b></span>
 </label>

 <label style="display:flex;align-items:flex-start;gap:0.6rem;padding-top:0.75rem;border-top:1px solid var(--border)">
 <input type="checkbox" name="git_readonly" value="1" {% if git_readonly %}checked{% endif %} style="margin-top:0.25rem">
 <span><b>🔒 {{ t('admin_git_readonly') }}</b><br>
 <span style="font-size:0.8rem;color:var(--muted)">{{ t('admin_git_readonly_info') }}</span></span>
 </label>

 <div style="padding-top:0.35rem">
 <button class="btn" style="background:var(--accent);color:#000">{{ t('admin_save') }}</button>
 </div>
 </form>
</div>

{% endblock %}