{% extends "base.html" %}
{% block title %}대표폴더 설정 - 리얼컴 NAS UI{% endblock %}
{% block content %}
<h2>대표폴더 설정</h2>

<form method="post" style="max-width:400px;">
    <div class="form-row" style="margin-bottom: 16px;">
        <label for="default_name" style="min-width:100px;">대표폴더 이름</label>
        <input type="text" id="default_name" name="default_name" required value="{{ default_name or '' }}" />
    </div>
    <div class="form-row" style="align-items: center; margin-bottom: 24px;">
        <label for="auto_create" style="min-width:100px;">자동으로 대표폴더 하위 생성</label>
        <input type="checkbox" id="auto_create" name="auto_create" value="1" {% if auto_create %}checked{% endif %} />
    </div>
    <button type="submit" class="edit-btn">저장</button>
</form>

{% if message %}
<p style="margin-top:20px; color: green;">{{ message }}</p>
{% endif %}
{% endblock %}
