{% extends "base.html" %}
{% block title %}설정 - 리얼컴 NAS UI{% endblock %}
{% block content %}
<div class="container">
    <div class="panel" style="width:380px;">
        <h2>운영 계정 변경</h2>
        <form method="post">
            <div class="form-row">
                <label>sudo 계정명</label>
                <input type="text" name="sudo_user" required maxlength="32" value="{{sudo_user}}">
            </div>
            <div class="form-row" style="justify-content:right">
                <button type="submit" class="edit-btn">변경</button>
            </div>
        </form>
        {% if msg %}<div class="small" style="color:green;">{{msg}}</div>{% endif %}
        {% if error %}<div class="small" style="color:red;">{{error}}</div>{% endif %}
        <div class="small" style="margin-top:8px;">현재 sudoers 설정: <code>{{current}}</code></div>
    </div>
</div>
{% endblock %}
