change ratelimiter
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<tbody>
|
||||
{% if items is defined and items|length > 0 %}
|
||||
{% for item in items %}
|
||||
<tr>
|
||||
<tr{% if onRowClick is defined and onRowClick %} onclick="{{ onRowClick }}({{ item.id }})" style="cursor: pointer;"{% endif %}>
|
||||
{# Рендерим каждую колонку #}
|
||||
{% for key, column in columns %}
|
||||
<td>
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
{# Колонка действий #}
|
||||
{% if actionsConfig is defined and actionsConfig|length > 0 %}
|
||||
<td class="actions-cell text-end">
|
||||
<td class="actions-cell text-end"{% if onRowClick is defined and onRowClick %} onclick="event.stopPropagation();"{% endif %}>
|
||||
{# Фильтруем действия на основе прав доступа #}
|
||||
{% set visibleActions = [] %}
|
||||
{% for action in actionsConfig %}
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
]
|
||||
- can_edit: Разрешено ли редактирование (для фильтрации действий)
|
||||
- can_delete: Разрешено ли удаление (для фильтрации действий)
|
||||
- onRowClick: JavaScript функция для обработки клика по строке (опционально)
|
||||
- emptyMessage: Сообщение при отсутствии данных
|
||||
- emptyActionUrl: URL для кнопки действия
|
||||
- emptyActionLabel: Текст кнопки
|
||||
@@ -41,7 +42,7 @@
|
||||
<tbody>
|
||||
{% if items is defined and items|length > 0 %}
|
||||
{% for item in items %}
|
||||
<tr>
|
||||
<tr{% if onRowClick is defined and onRowClick %} onclick="{{ onRowClick }}({{ item.id }})" style="cursor: pointer;"{% endif %}>
|
||||
{# Рендерим каждую колонку #}
|
||||
{% for key, column in columns %}
|
||||
<td>
|
||||
@@ -51,7 +52,7 @@
|
||||
|
||||
{# Колонка действий #}
|
||||
{% if actionsConfig is defined and actionsConfig|length > 0 %}
|
||||
<td class="actions-cell text-end">
|
||||
<td class="actions-cell text-end"{% if onRowClick is defined and onRowClick %} onclick="event.stopPropagation();"{% endif %}>
|
||||
{# Фильтруем действия на основе прав доступа #}
|
||||
{% set visibleActions = [] %}
|
||||
{% for action in actionsConfig %}
|
||||
|
||||
Reference in New Issue
Block a user