{% extends 'adminapp/master.html' %}
{% load static %}
{% block content %}


    <div class="pagetitle">
      <h1>Add</h1>
      <nav>
       
      </nav>
    </div><!-- End Page Title -->

    <section class="section">
      <div class="row">
        <div class="col-lg-10">

          <div class="card">
            <div class="card-body">
              <h5 class="card-title"></h5>

              <!-- General Form Elements -->
              <form method="post" enctype="multipart/form-data">
                {% csrf_token %}


                <div class="mb-3">
                  <label class="form-label"> Code</label>
                  <input type="number" class="form-control" name="code" placeholder="Enter Cycle code">
              </div>
              <div class="mb-3">
                  <label class="form-label">Category</label>
                  <select class="form-control" aria-label="Default select example" name="category" required>
                    <option value="" >select Category</option>
                    {% for ab in category %}
                    <option value="{{ab.id}}">{{ab.name}}</option>
                    {% endfor %}
                  </select>
              </div>
      
              <div class="mb-3">
                <label class="form-label">Station</label>
                <select class="form-control" aria-label="Default select example" name="station" required>
                  <option value="" >select station</option>
                  {% for a in station %}
                  <option value="{{a.id}}">{{a.location}}</option>
                  {% endfor %}
                </select>
            </div>
  
              <div class="mb-3">
                  <label class="form-label">model</label>
                  <input type="text" class="form-control" name = "model" placeholder="Enter bike model">
              </div>
              <div class="mb-3">
                  <label class="form-label">price (₹)</label>
                  <input type="number" class="form-control" name = "price" placeholder="Enter price">
              </div>
              <div class="mb-3">
                  <label class="form-label">upload image</label>
                  <input type="file" class="form-control" name = "image">
              </div>
               
                 
                  <div class="col-sm-10">
                    <button type="submit" class="btn btn-primary">Submit </button>
                  </div>
              
      
              

              </form>

            </div>
          </div>

        </div>

        
      </div>
    </section>

{% endblock %}