<!-- templates/signup.html -->

{% extends "base.html" %}

{% block content %}
<div class="column is-4 is-offset-4">
    <h3 class="title">ثبت کتاب</h3>
    <div class="box">
        {% with messages = get_flashed_messages() %}
        {% if messages %}
            <div class="notification is-danger">
                {{ messages[0] }}. Go to <a href="{{ url_for('auth.login') }}">login page</a>.
            </div>
        {% endif %}
        {% endwith %}
        <form method="POST" action="" enctype="multipart/form-data">
            <div class="field">
                <div class="control">
                    <input class="input is-large" type="file" name="filename" placeholder="فایل کتاب" >
                </div>
            </div>

            <div class="field">
                <div class="control">
                    <input class="input is-large" type="text" name="name" placeholder="نام" autofocus="">
                </div>
            </div>

            <div class="field">
                <div class="control">
                    <input class="input is-large" type="file" name="imagename" placeholder="تصویر کتاب" >
                </div>
            </div>

            <button type="submit" class="button is-block is-info is-large is-fullwidth">ثبت</button>
        </form>
    </div>
</div>
{% endblock %}