{% extends "base.html" %}

{% block title %}Upload Documents{% endblock %}

{% block extra_css %}
<link rel="stylesheet" href="{{ url_for('static', filename='css/upload.css') }}">
{% endblock %}

{% block content %}
<div class="main">
    <div class="container">

        <h2>Upload Income Tax Documents</h2>

        <form id="income_tax_documents" method="POST" enctype="multipart/form-data">

            <label>Year:</label>
            <select id="year" name="year" required></select>

            <div id="yearError" style="color: red; display: none; margin-bottom: 10px;"></div>

            <label>Stage:</label>
            <select name="stage" required>
                <option value="ITR">ITR</option>
                <option value="AO">AO</option>
                <option value="CIT">CIT</option>
                <option value="ITAT">ITAT</option>
            </select>

            <label>Select Documents:</label>
            <input type="file" name="documents" multiple required>

            <button type="submit">Upload</button>
        </form>

    </div>
</div>
{% endblock %}

{% block scripts %}
<script src="{{ url_for('static', filename='js/year_dropdown.js') }}"></script>
<script src="{{ url_for('static', filename='js/toggle.js') }}"></script>
{% endblock %}

{% block extra_js %}
<script src="{{ url_for('static', filename='js/year_dropdown.js') }}"></script>
{% endblock %}