N°6381 - Add rank on Enums of default DataModel

This commit is contained in:
vdumas
2023-06-08 18:56:21 +02:00
parent cc8c6ac027
commit 0fb770783d
12 changed files with 102 additions and 26 deletions

View File

@@ -45,9 +45,11 @@
<fields>
<field id="status" xsi:type="AttributeEnum">
<always_load_in_tables>true</always_load_in_tables>
<sort_type>rank</sort_type>
<values>
<value id="new">
<code>new</code>
<rank>10</rank>
<style>
<main_color>$ibo-lifecycle-new-state-primary-color</main_color>
<complementary_color>$ibo-lifecycle-new-state-secondary-color</complementary_color>
@@ -56,6 +58,7 @@
</value>
<value id="assigned">
<code>assigned</code>
<rank>60</rank>
<style>
<main_color>$ibo-lifecycle-neutral-state-primary-color</main_color>
<complementary_color>$ibo-lifecycle-neutral-state-secondary-color</complementary_color>
@@ -64,6 +67,7 @@
</value>
<value id="pending">
<code>pending</code>
<rank>70</rank>
<style>
<main_color>$ibo-lifecycle-waiting-state-primary-color</main_color>
<complementary_color>$ibo-lifecycle-waiting-state-secondary-color</complementary_color>
@@ -72,6 +76,7 @@
</value>
<value id="escalated_tto">
<code>escalated_tto</code>
<rank>80</rank>
<style>
<main_color>$ibo-lifecycle-failure-state-primary-color</main_color>
<complementary_color>$ibo-lifecycle-failure-state-secondary-color</complementary_color>
@@ -80,6 +85,7 @@
</value>
<value id="escalated_ttr">
<code>escalated_ttr</code>
<rank>90</rank>
<style>
<main_color>$ibo-lifecycle-failure-state-primary-color</main_color>
<complementary_color>$ibo-lifecycle-failure-state-secondary-color</complementary_color>
@@ -88,6 +94,7 @@
</value>
<value id="resolved">
<code>resolved</code>
<rank>100</rank>
<style>
<main_color>$ibo-lifecycle-success-state-primary-color</main_color>
<complementary_color>$ibo-lifecycle-success-state-secondary-color</complementary_color>
@@ -96,6 +103,7 @@
</value>
<value id="closed">
<code>closed</code>
<rank>110</rank>
<style>
<main_color>$ibo-lifecycle-frozen-state-primary-color</main_color>
<complementary_color>$ibo-lifecycle-frozen-state-secondary-color</complementary_color>
@@ -173,6 +181,7 @@
<is_null_allowed>false</is_null_allowed>
</field>
<field id="origin" xsi:type="AttributeEnum">
<sort_type>label</sort_type>
<values>
<value id="in_person">
<code>in_person</code>
@@ -372,6 +381,7 @@
<is_null_allowed>true</is_null_allowed>
</field>
<field id="resolution_code" xsi:type="AttributeEnum">
<sort_type>label</sort_type>
<values>
<value id="assistance">
<code>assistance</code>