<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <title>Add New Income Tax Return Record</title>
  <link rel="stylesheet" href="{{ url_for('static', filename='css/add_itr.css') }}">
  <script src="/static/js/itr_calc.js"></script>
  <script src="/static/js/year_dropdown.js"></script>

</head>

<body>
  <div class="container">
    <!-- Back to Dashboard Button -->
    <a href="{{ url_for('index') }}" class="back-btn">← Back to Dashboard</a>


    <h2>Add New Income Tax Return Record</h2>
    <form method="POST" action="{{ url_for('add_itr') }}">
      <!-- <div class="form-group">
        <label>Year:</label>
        <input type="number" name="year" required>
      </div> -->

      <div class="form-group">
        <label> Year:</label>
        <select id="year" name="year" required>
        </select>
      </div>

      {% for field in [
      "gross_total_income", "disallowance_14a", "disallowance_37",
      "deduction_80ia_business", "deduction_80ia_misc", "deduction_80ia_other",
      "deduction_sec37_disallowance", "deduction_80g", "net_taxable_income",
      "tax_30_percent", "tax_book_profit_18_5", "tax_payable", "surcharge_12",
      "edu_cess_3", "total_tax_payable", "mat_credit", "interest_234c",
      "total_tax", "advance_tax", "tds", "tcs", "tax_on_assessment", "refund"
      ] %}
      <div class="form-group">
        <label>{{ field.replace("_", " ").title() }}:</label>
        <input type="number" name="{{ field }}" step="any" value="0.00" required>
      </div>
      {% endfor %}

      <button type="submit">Submit</button>
    </form>
  </div>
</body>

</html>