improved licences admin page: more filters

This commit is contained in:
Bachir Soussi Chiadmi 2022-09-16 17:26:34 +02:00
parent 76f8e9298a
commit 3960310677
1 changed files with 319 additions and 19 deletions

View File

@ -10,8 +10,10 @@ dependencies:
- commerce
- commerce_license
- options
- pagerer
- state_machine
- user
- views_conditional
id: licences
label: Licences
module: views
@ -418,7 +420,74 @@ display:
entity_field: expires
plugin_id: field
label: Expire
exclude: false
exclude: true
alter:
alter_text: false
text: ''
make_link: false
path: ''
absolute: false
external: false
replace_spaces: false
path_case: none
trim_whitespace: false
alt: ''
rel: ''
link_class: ''
prefix: ''
suffix: ''
target: ''
nl2br: false
max_length: 0
word_boundary: true
ellipsis: true
more_link: false
more_link_text: ''
more_link_path: ''
strip_tags: false
trim: false
preserve_tags: ''
html: false
element_type: ''
element_class: ''
element_label_type: ''
element_label_class: ''
element_label_colon: true
element_wrapper_type: ''
element_wrapper_class: ''
element_default_classes: true
empty: 'no expiration'
hide_empty: false
empty_zero: true
hide_alter_empty: true
click_sort_column: value
type: timestamp
settings:
date_format: medium
custom_date_format: ''
timezone: ''
group_column: value
group_columns: { }
group_rows: true
delta_limit: 0
delta_offset: 0
delta_reversed: false
delta_first_last: false
multi_type: separator
separator: ', '
field_api_classes: false
expires_1:
id: expires_1
table: commerce_license
field: expires
relationship: none
group_type: group
admin_label: ''
entity_type: commerce_license
entity_field: expires
plugin_id: field
label: 'Expire year'
exclude: true
alter:
alter_text: false
text: ''
@ -461,7 +530,7 @@ display:
click_sort_column: value
type: timestamp
settings:
date_format: medium
date_format: html_year
custom_date_format: ''
timezone: ''
group_column: value
@ -474,6 +543,63 @@ display:
multi_type: separator
separator: ', '
field_api_classes: false
views_conditional_field:
id: views_conditional_field
table: views_conditional
field: views_conditional_field
relationship: none
group_type: group
admin_label: ''
plugin_id: views_conditional_field
label: Expiration
exclude: false
alter:
alter_text: false
text: ''
make_link: false
path: ''
absolute: false
external: false
replace_spaces: false
path_case: none
trim_whitespace: false
alt: ''
rel: ''
link_class: ''
prefix: ''
suffix: ''
target: ''
nl2br: false
max_length: 0
word_boundary: true
ellipsis: true
more_link: false
more_link_text: ''
more_link_path: ''
strip_tags: false
trim: false
preserve_tags: ''
html: false
element_type: ''
element_class: ''
element_label_type: ''
element_label_class: ''
element_label_colon: false
element_wrapper_type: ''
element_wrapper_class: ''
element_default_classes: true
empty: ''
hide_empty: false
empty_zero: false
hide_alter_empty: true
if: expires_1
condition: eq
equalto: '1970'
then: 'no expiration'
then_translate: 1
or: '{{ expires }}'
or_translate: 1
strip_tags: 0
license_role_target_id:
id: license_role_target_id
table: commerce_license__license_role
@ -540,28 +666,26 @@ display:
separator: ', '
field_api_classes: false
pager:
type: mini
type: pagerer
options:
offset: 0
items_per_page: 20
total_pages: null
id: 0
tags:
next:
previous:
items_per_page: 50
preset: default
id: '0'
total_pages: ''
expose:
items_per_page: false
items_per_page: 0
items_per_page_label: 'Éléments par page'
items_per_page_options: '5, 10, 25, 50'
items_per_page_options_all: false
items_per_page_options_all: 0
items_per_page_options_all_label: '- Tout -'
offset: false
offset: 0
offset_label: Décalage
exposed_form:
type: basic
options:
submit_button: Appliquer
reset_button: false
reset_button: true
reset_button_label: Réinitialiser
exposed_sorts_label: 'Trier par'
expose_sort_order: true
@ -593,6 +717,64 @@ display:
expose:
operator_limit_selection: false
operator_list: { }
granted:
id: granted
table: commerce_license
field: granted
relationship: none
group_type: group
admin_label: ''
entity_type: commerce_license
entity_field: granted
plugin_id: date
operator: between
value:
min: ''
max: ''
value: ''
type: date
group: 1
exposed: true
expose:
operator_id: granted_op
label: Accordé(e)
description: ''
use_operator: false
operator: granted_op
operator_limit_selection: false
operator_list: { }
identifier: granted
required: false
remember: false
multiple: false
remember_roles:
authenticated: authenticated
unverified: '0'
anonymous: '0'
free_user: '0'
contact_company: '0'
alpha_testeur: '0'
student: '0'
adherent: '0'
translator: '0'
admin_showroom: '0'
admin: '0'
root: '0'
min_placeholder: 'AAAA-MM-JJ HH:MM:SS'
max_placeholder: 'AAAA-MM-JJ HH:MM:SS'
placeholder: ''
is_grouped: false
group_info:
label: ''
description: ''
identifier: ''
optional: true
widget: select
multiple: false
remember: false
default_group: All
default_group_multiple: { }
group_items: { }
expires:
id: expires
table: commerce_license
@ -636,8 +818,8 @@ display:
admin_showroom: '0'
admin: '0'
root: '0'
min_placeholder: ''
max_placeholder: ''
min_placeholder: 'AAAA-MM-JJ HH:MM:SS'
max_placeholder: 'AAAA-MM-JJ HH:MM:SS'
placeholder: ''
is_grouped: false
group_info:
@ -830,8 +1012,10 @@ display:
created: created
granted: granted
expires: expires
expires_1: expires_1
views_conditional_field: views_conditional_field
license_role_target_id: license_role_target_id
default: expires
default: granted
info:
uid:
sortable: false
@ -868,7 +1052,7 @@ display:
responsive: ''
granted:
sortable: true
default_sort_order: asc
default_sort_order: desc
align: ''
separator: ''
empty_column: false
@ -880,6 +1064,18 @@ display:
separator: ''
empty_column: false
responsive: ''
expires_1:
sortable: false
default_sort_order: asc
align: ''
separator: ''
empty_column: false
responsive: ''
views_conditional_field:
align: ''
separator: ''
empty_column: false
responsive: ''
license_role_target_id:
sortable: false
default_sort_order: asc
@ -915,10 +1111,114 @@ display:
entity_field: uid
plugin_id: standard
required: true
header: { }
header:
result:
id: result
table: views
field: result
relationship: none
group_type: group
admin_label: ''
plugin_id: result
empty: false
content: 'Affichage de @start à @end sur @total'
footer: { }
display_extenders:
views_ef_fieldset: { }
views_ef_fieldset:
views_ef_fieldset:
enabled: 0
options:
sort:
root:
container_type: details
title: Filtres
description: ''
open: '1'
weight: '0'
id: root
pid: ''
depth: '0'
type: container
expires:
weight: '-10'
id: expires
pid: root
depth: '1'
type: filter
product_variation:
weight: '-10'
id: product_variation
pid: root
depth: '1'
type: filter
state:
weight: '-10'
id: state
pid: root
depth: '1'
type: filter
mail:
weight: '-10'
id: mail
pid: root
depth: '1'
type: filter
submit:
weight: '-10'
id: submit
pid: root
depth: '1'
type: buttons
container-0:
container_type: details
title: 'Container 0'
description: ''
weight: '-9'
open: 0
id: container-0
pid: root
depth: '1'
type: container
container-1:
container_type: details
title: 'Container 1'
description: ''
weight: '-8'
open: 0
id: container-1
pid: root
depth: '1'
type: container
container-2:
container_type: details
title: 'Container 2'
description: ''
weight: '-7'
open: 0
id: container-2
pid: root
depth: '1'
type: container
container-3:
container_type: details
title: 'Container 3'
description: ''
weight: '-6'
open: 0
id: container-3
pid: root
depth: '1'
type: container
container-4:
container_type: details
title: 'Container 4'
description: ''
weight: '-5'
open: 0
id: container-4
pid: root
depth: '1'
type: container
cache_metadata:
max-age: -1
contexts: