{% extends "layouts/admin.twig" %}

{% block title %}{{ ta.rename_folder|default('Map hernoemen') }} - {{ ta.admin_title|default('CodePress Admin') }}{% endblock %}

{% block content %}
<h2 class="mb-4"><i class="bi bi-pencil"></i> {{ ta.rename_folder|default('Map hernoemen') }}</h2>

<form method="post" class="card shadow-sm">
    <input type="hidden" name="csrf_token" value="{{ csrf_token }}">
    <div class="card-body">
        <div class="mb-3">
            <label for="newname" class="form-label">{{ ta.new_name_for|default('Nieuwe naam voor') }} {{ currentName }}</label>
            <input type="text" class="form-control" id="newname" name="newname" value="{{ currentName }}" required autofocus>
        </div>
    </div>
    <div class="card-footer bg-white">
        <button type="submit" class="btn btn-primary">
            <i class="bi bi-check-lg"></i> {{ ta.rename|default('Hernoemen') }}
        </button>
        <a href="/admin/content?dir={{ dir|url_encode }}" class="btn btn-outline-secondary">{{ ta.cancel|default('Annuleren') }}</a>
    </div>
</form>
{% endblock %}