UI improvements for datatables (#593)
This commit is contained in:
@@ -25,7 +25,17 @@ class PageSizeType extends AbstractType
|
|||||||
{
|
{
|
||||||
$resolver->setDefaults([
|
$resolver->setDefaults([
|
||||||
'label' => 'label.pageSize',
|
'label' => 'label.pageSize',
|
||||||
'choices' => [10 => 10, 25 => 25, 50 => 50, 75 => 75, 100 => 100],
|
'choices' => [
|
||||||
|
10 => 10,
|
||||||
|
25 => 25,
|
||||||
|
50 => 50,
|
||||||
|
75 => 75,
|
||||||
|
100 => 100,
|
||||||
|
200 => 200,
|
||||||
|
300 => 300,
|
||||||
|
400 => 400,
|
||||||
|
500 => 500
|
||||||
|
],
|
||||||
'placeholder' => null,
|
'placeholder' => null,
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ class BaseQuery
|
|||||||
public const ORDER_ASC = 'ASC';
|
public const ORDER_ASC = 'ASC';
|
||||||
public const ORDER_DESC = 'DESC';
|
public const ORDER_DESC = 'DESC';
|
||||||
|
|
||||||
public const DEFAULT_PAGESIZE = 25;
|
public const DEFAULT_PAGESIZE = 100;
|
||||||
public const DEFAULT_PAGE = 1;
|
public const DEFAULT_PAGE = 1;
|
||||||
|
|
||||||
public const RESULT_TYPE_OBJECTS = 'Objects';
|
public const RESULT_TYPE_OBJECTS = 'Objects';
|
||||||
|
|||||||
@@ -64,7 +64,7 @@
|
|||||||
{% if visible %}
|
{% if visible %}
|
||||||
{{ macro.label('badge.visible', 'success') }}
|
{{ macro.label('badge.visible', 'success') }}
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ macro.label('badge.invisible', 'warning') }}
|
{{ macro.label('badge.invisible', 'default') }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
||||||
@@ -99,7 +99,7 @@
|
|||||||
{% if not activity.project is null %}
|
{% if not activity.project is null %}
|
||||||
{% set label = activity.project.customer.name ~ ': ' ~ activity.project.name %}
|
{% set label = activity.project.customer.name ~ ': ' ~ activity.project.name %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{{ macro.label(activity.name, (isVisible ? 'primary' : 'warning'), label) }}
|
{{ macro.label(activity.name, (isVisible ? 'primary' : 'default'), label) }}
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
||||||
{% macro label_project(project) %}
|
{% macro label_project(project) %}
|
||||||
@@ -107,7 +107,7 @@
|
|||||||
{% if project.visible and project.customer.visible %}
|
{% if project.visible and project.customer.visible %}
|
||||||
{{ macro.label(project.name, 'primary', project.customer.name) }}
|
{{ macro.label(project.name, 'primary', project.customer.name) }}
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ macro.label(project.name, 'warning', project.customer.name) }}
|
{{ macro.label(project.name, 'default', project.customer.name) }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
||||||
@@ -116,7 +116,7 @@
|
|||||||
{% if customer.visible %}
|
{% if customer.visible %}
|
||||||
{{ macro.label(customer.name, 'primary') }}
|
{{ macro.label(customer.name, 'primary') }}
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ macro.label(customer.name, 'warning') }}
|
{{ macro.label(customer.name, 'default') }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user