This repository was archived by the owner on Nov 21, 2023. It is now read-only.
File tree 8 files changed +58
-0
lines changed
8 files changed +58
-0
lines changed Original file line number Diff line number Diff line change @@ -465,4 +465,7 @@ aside [href="#/collections/realestates_categories"] span::before {
465
465
}
466
466
aside [href = "#/collections/services" ] span ::before {
467
467
content : '\F4D6' ;
468
+ }
469
+ aside [href = "#/collections/services_categories" ] span ::before {
470
+ content : '\F1A4' ;
468
471
}
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import { description } from '../fields/description.js'
3
3
import { draft } from '../fields/draft.js'
4
4
import { featured_image } from '../fields/featured-image.js'
5
5
import { isNotIndex } from '../fields/is-not-index.js'
6
+ import { services_categories } from '../fields/services_categories.js'
6
7
import { title } from '../fields/title.js'
7
8
import { t } from '../i18n/translater.js'
8
9
@@ -28,6 +29,7 @@ const services = {
28
29
isNotIndex ,
29
30
draft ,
30
31
title ,
32
+ services_categories ,
31
33
description ,
32
34
body ,
33
35
featured_image
Original file line number Diff line number Diff line change
1
+ import { isNotIndex } from '../fields/is-not-index.js' ;
2
+ import { title } from '../fields/title.js' ;
3
+ import { t } from "../i18n/translater.js" ;
4
+
5
+ const services_categories = {
6
+ name : 'services_categories' ,
7
+ folder : 'content/services_categories' ,
8
+ label : t . content . services_categories . label ,
9
+ label_singular : t . content . services_categories . label_singular ,
10
+ description : t . content . services_categories . description ,
11
+
12
+ create : true ,
13
+ editor : { preview : false } ,
14
+ i18n : true ,
15
+
16
+ slug : '{{slug}}' ,
17
+ path : '{{slug}}/_index' ,
18
+
19
+ nested : { depth : 2 } ,
20
+ filter : { field : 'isIndex' , value : false } ,
21
+
22
+ fields : [
23
+ isNotIndex ,
24
+ title
25
+ ]
26
+
27
+ }
28
+
29
+ export default services_categories
Original file line number Diff line number Diff line change
1
+ import { t } from "../i18n/translater.js" ;
2
+
3
+ export const services_categories = {
4
+ name : 'services_categories' ,
5
+ label : t . fields . services_categories ,
6
+ widget : 'relation' ,
7
+ collection : 'services_categories' ,
8
+ search_fields : [ 'title' ] ,
9
+ value_field : 'title' ,
10
+ display_fields : [ 'title' ] ,
11
+ required : false
12
+ }
Original file line number Diff line number Diff line change @@ -91,6 +91,11 @@ export const content = {
91
91
label_singular : "Service" ,
92
92
description : "All services" ,
93
93
} ,
94
+ services_categories : {
95
+ label : "Categories of services" ,
96
+ label_singular : "Category of services" ,
97
+ description : "All categories of services" ,
98
+ } ,
94
99
tags : {
95
100
label : "Tags" ,
96
101
label_singular : "Tag" ,
Original file line number Diff line number Diff line change @@ -278,6 +278,7 @@ export const fields = {
278
278
reference : "Reference" ,
279
279
section : "Type of section" ,
280
280
services : "Services" ,
281
+ services_categories : "Category of service" ,
281
282
show_color : {
282
283
label : "Display colors on gauge?" ,
283
284
hint : "Color in red, yellow or green in function of value (if gauge checked)"
Original file line number Diff line number Diff line change @@ -91,6 +91,11 @@ export const content = {
91
91
label_singular : "Service" ,
92
92
description : "Tous les services" ,
93
93
} ,
94
+ services_categories : {
95
+ label : "Catégories de services" ,
96
+ label_singular : "Catégorie de services" ,
97
+ description : "Toutes les catégories de services" ,
98
+ } ,
94
99
tags : {
95
100
label : "Tags" ,
96
101
label_singular : "Tag" ,
Original file line number Diff line number Diff line change @@ -277,6 +277,7 @@ export const fields = {
277
277
reference : "Référence" ,
278
278
section : "Type de section" ,
279
279
services : "Services" ,
280
+ services_categories : "Catégorie de service" ,
280
281
show_color : {
281
282
label : "Afficher des couleurs sur les jauges ?" ,
282
283
hint : "Colore en rouge, jaune ou vert en fonction de la valeur (si jauge coché)"
You can’t perform that action at this time.
0 commit comments