<div class="context-main-bg context-main p-3">
    <legend class="text-center">Edit User: <b>{USERNAME}</b></legend>
    <hr>
    {ADMIN_BREADCRUMBS}
    <form action="{ROOT_URL}admin/users/edit/{ID}" method="post" enctype="multipart/form-data">
        <fieldset>
            <!-- Group -->
            <div class="mb-3 row">
                <label for="groupSelect" class="col-lg-6 col-form-label text-end">Group:</label>
                <div class="col-lg-2">
                    {groupSelect}
                </div>
            </div>

            <!-- Username -->
            <div class="mb-3 row">
                <label for="username" class="col-lg-6 col-form-label text-end">Username:</label>
                <div class="col-lg-2">
                    <input type="text" class="form-control" name="username" id="username" value="{username}" required>
                </div>
            </div>

            <!-- Email -->
            <div class="mb-3 row">
                <label for="email" class="col-lg-6 col-form-label text-end">Email:</label>
                <div class="col-lg-2">
                    <input type="email" class="form-control" name="email" id="email" value="{email}" required>
                </div>
            </div>

            {AvatarSettings}

            <!-- Password -->
            <div class="mb-3 row">
                <label for="password" class="col-lg-6 col-form-label text-end">Password:</label>
                <div class="col-lg-2">
                    <input type="password" class="form-control" name="password" id="password"  value="" required>
                </div>
            </div>

            <!-- Re-enter Password -->
            <div class="mb-3 row">
                <label for="password2" class="col-lg-6 col-form-label text-end">Re-Enter Password:</label>
                <div class="col-lg-2">
                    <input type="password" class="form-control" name="password2" id="password2"  value="" required>
                </div>
            </div>

            <!-- Confirmation -->
            <div class="mb-3 row">
                <label for="confirmation" class="col-lg-6 col-form-label text-end">Send Confirmation:</label>
                <div class="col-lg-2">
                    <div class="mb-3 form-check form-switch">
                        <input class="form-check-input" type="checkbox" role="switch" name="confirmation" id="confirmation" value="true">
                    </div>
                </div>
            </div>

            <!-- Confirmed -->
            <div class="mb-3 row">
                <label for="confirmed" class="col-lg-6 col-form-label text-end">Email is confirmed:</label>
                <div class="col-lg-2">
                    <div class="mb-3 form-check form-switch">
                        <input class="form-check-input" type="checkbox" role="switch" name="confirmed" id="confirmed" value="true">
                    </div>
                </div>
            </div>

            <!-- Hidden Token -->
            <input type="hidden" name="token" value="{TOKEN}">

            <!-- Submit Button -->
            <div class="text-center">
                <button type="submit" name="submit" value="submit" class="btn btn-primary btn-lg">Save</button>
            </div>
        </fieldset>
    </form>
</div>