% endfor %}

      {% if leave_request.status != 'approved' and leave_request.status == 'requested' %}
      <td>
        <a href="{% url 'request-approve' leave_request.id %}" class="btn btn-success">{% trans "Approve" %}</a>
      </td>
      {% endif %}
      {% if leave_request.status == 'approved' or leave_request.status != 'cancelled'%}
      <td>
        <a href="{% url 'request-cancel' leave_request.id %}" class="btn btn-primary">{% trans "Cancel" %}</a>
      </td>
      {% endif %}

 