accounts/templates/gooyal_oauth2/application_list.html
2024-08-05 14:25:37 +03:30

59 lines
No EOL
2.3 KiB
HTML

{% extends "base.html" %}
{% load static %}
{% load jalali_tags %}
{% load crispy_forms_tags %}
{% load tags %}
{% block title %}Application: list{% endblock %}
{% block page_title %}Application: list{% endblock %}
{% block page_action %}
{% include "include/filter_action.html" %}
<div class="me-2">
<a href="{% url 'gooyal_oauth2:application_create' %}">
<div class="btn btn-success">
<span class="bi bi-plus-circle-fill"></span>
</div>
</a>
</div>
{% endblock %}
{% block content %}
<table class="table">
<tr>
<th><a href="?{% get_filter_link request 'ordering' 'name' %}" >name{% if request.GET.ordering and 'name' in request.GET.ordering %}<i class="bi bi-arrow-down-short"></i>{% endif %}</a></th>
<th><a href="?{% get_filter_link request 'ordering' 'client_id' %}" >client id{% if request.GET.ordering and 'client_id' in request.GET.ordering %}<i class="bi bi-arrow-down-short"></i>{% endif %}</a></th>
<th>actions</th>
</tr>
{% for obj in object_list %}
<tr>
<td>{{ obj.name }}</td>
<td>{{ obj.client_id }}</td>
<td>
<div class="grid">
<div class="d-flex justify-content-end">
<div class="me-2">
<a href="{% url 'gooyal_oauth2:application_detail' pk=obj.pk %}">
<div class="btn btn-success">
<span class="bi bi-gear-fill"></span>
</div>
</a>
</div>
{# <div class="me-2">#}
{# <a href="{% url 'gooyal_oauth2:application_update' pk=obj.pk %}">#}
{# <div class="btn btn-success">#}
{# <span class="bi bi-info-circle-fill"></span>#}
{# </div>#}
{# </a>#}
{# </div>#}
</div>
</div>
</td>
</tr>
{% endfor %}
</table>
{% include 'include/paginator.html' %}
{% endblock %}