{% import "includes/macros" as macros %}
{% import "includes/forms/boat" as boat %}
{% extends "base" %}
{% block content %}
    <div class="max-w-screen-lg w-full dark:text-white">
        <h1 class="h1">Mail</h1>
        <div class="grid ">
            <div class="bg-white dark:bg-primary-900 text-black dark:text-white rounded-md block shadow mt-5"
                 role="alert">
                <h2 class="h2">Mail senden</h2>
                <form action="/admin/mail" method="post" enctype="multipart/form-data">
                    {{ macros::select(label="Gruppe", data=roles, name="role_id") }}
                    {{ macros::input(label="Betreff", name="subject", type="text", required=true) }}
                    <textarea name="body" rows="4" cols="50" class="dark:text-white"></textarea>
                    <input type="file" name="files" multiple />
                    <input type="submit" value="Abschicken" />
                </form>
            </div>
        </div>
    </div>
{% endblock content %}
