{% extends 'stela_control/base_list.html' %}
{% load static %}
{% load i18n %}
{% load crispy_forms_tags %}
{% block bsCall %}

{% endblock  %}
{% block title %}
            <h1 class="oxanium mx-4 text-dark pt-3">{% trans "Postulations" %} <i class="fa-solid fa-briefcase"></i></h1>
{% endblock  %}
{% block side_title %}
            <h3 class="oxanium mx-4 d-flex justify-content-end"><b>STELA {% trans "CONTROL DYNAMIC" %} | {% trans "Communications" %}</b></h3>
{% endblock  %}
{% block topButtons %}
    <div class="col-lg-2 col-md-6">
        <button type="submit" data-bs-toggle="modal" data-bs-target="#removeObj" onclick="removeObjListRequest('JobApplication')" class="btn btn-danger btn-danger px-3 mb-3 mx-2 delete-product hide" id="delete_btn">{% trans "Remove" %} <i class="fas fa-trash"></i></button>
    </div>
{% endblock  %}
{% block listTitle %}
        <h3 class="text-center fw-bold oxanium fs-4 my-2">{% trans "Jobs List" %}</h3>
{% endblock  %}

{% block thead %}
    <th style="width: 5%;">Id</th>
    <th style="width: 30%;">{% trans "Email" %}</th>
    <th style="width: 30%;" class="text-center">{% trans "Position Applied" %}</th>
    <th style="width: 20%;" class="text-center">{% trans "Salary Expectations" %}</th>
    <th style="width: 20%;" class="text-center">{% trans "Availability" %}</th>
    <th style="width: 15%;">{% trans "View" %}</th>
    <th style="width: 10%;" class="text-center"> <input type="checkbox"  name="" id="parent"></th>          
{% endblock  %} 
{% block tbody %}
    {% for item in jobs %}
        <tr>
            <td>{{item.id}}</td>
            <td class=text-link>{{item.email}}</td>
            <td class=text-center>{{item.position_applied}}</td>
            <td class=text-center>{{item.salary_expectations}}</td>
            <td class=text-center>{{item.availability}}</td>
            <td class="my-1"><a class="btn btn-shappire" href="{{item.cv.url}}" download="{{item.cv.url}}" target="_blank"><i class="bi-cloud-arrow-down-fill"></i></a></td>
            <td class="text-center check-product"><input type="checkbox" class="child" name="product_id[]" value="{{item.id}}" id="delete_product"></td>
        </tr>
    {% endfor %}
{% endblock  %}




