mirror of
https://github.com/flextype/flextype.git
synced 2025-08-20 11:51:28 +02:00
feat(admin-plugin): update api templates #211
This commit is contained in:
@@ -3,6 +3,20 @@
|
||||
{% block content %}
|
||||
{% if (delivery_tokens_list | length > 0) %}
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>
|
||||
Title
|
||||
</th>
|
||||
<th>
|
||||
Delivery Token
|
||||
</th>
|
||||
<th>
|
||||
Calls
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for key, delivery_token in delivery_tokens_list %}
|
||||
{% set token_file_path = PATH_TOKENS ~ '/' ~ api ~ '/' ~ delivery_token.dirname ~ '/' ~ 'token.yaml' %}
|
||||
@@ -13,7 +27,7 @@
|
||||
<td class="w-1 text-center {% if token_data.state == 'disabled' %}opacity-50{% endif %}">
|
||||
<i class="fas fa-truck"></i>
|
||||
</td>
|
||||
<td class="pl-0 {% if token_data.state == 'disabled' %}opacity-50{% endif %}">
|
||||
<td class="{% if token_data.state == 'disabled' %}opacity-50{% endif %}">
|
||||
<a href="{{ path_for('admin.api_tokens.edit') }}?api={{ api }}&api_token={{ delivery_token.dirname }}">{{ token_data.title }}</a>
|
||||
</td>
|
||||
<td class="{% if token_data.state == 'disabled' %}opacity-50{% endif %}">{{ delivery_token.dirname }}</td>
|
||||
|
@@ -3,13 +3,21 @@
|
||||
{% block content %}
|
||||
{% if (api_list | length > 0) %}
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>
|
||||
Name
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for key, api in api_list %}
|
||||
<tr>
|
||||
<td class="w-1 text-center">
|
||||
<i class="fas fa-truck"></i>
|
||||
</td>
|
||||
<td class="pl-0">
|
||||
<td>
|
||||
<a href="{{ path_for('admin.api_tokens.index') }}?api={{ key }}">{{ api }}</a>
|
||||
</td>
|
||||
</tr>
|
||||
|
Reference in New Issue
Block a user