This repository was archived by the owner on Nov 21, 2023. It is now read-only.
File tree 4 files changed +25
-0
lines changed
4 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ 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
6
import { services_categories } from '../fields/services_categories.js'
7
+ import { services_persons } from '../fields/services_persons.js'
7
8
import { title } from '../fields/title.js'
8
9
import { t } from '../i18n/translater.js'
9
10
@@ -30,6 +31,7 @@ const services = {
30
31
draft ,
31
32
title ,
32
33
services_categories ,
34
+ services_persons ,
33
35
description ,
34
36
body ,
35
37
featured_image
Original file line number Diff line number Diff line change
1
+ import { t } from "../i18n/translater.js" ;
2
+
3
+ export const services_persons = {
4
+ name : 'services_persons' ,
5
+ label : t . fields . services_persons . label ,
6
+ hint : t . fields . services_persons . hint ,
7
+ widget : 'relation' ,
8
+ collection : 'persons' ,
9
+ search_fields : [ 'title' ] ,
10
+ value_field : '{{filename}}' ,
11
+ display_fields : [ 'title' ] ,
12
+ multiple : true ,
13
+ required : false ,
14
+ i18n : 'duplicate'
15
+ }
Original file line number Diff line number Diff line change @@ -279,6 +279,10 @@ export const fields = {
279
279
section : "Type of section" ,
280
280
services : "Services" ,
281
281
services_categories : "Category of service" ,
282
+ services_persons : {
283
+ label : "Responsible persons?" ,
284
+ hint : "Several persons possible"
285
+ } ,
282
286
show_color : {
283
287
label : "Display colors on gauge?" ,
284
288
hint : "Color in red, yellow or green in function of value (if gauge checked)"
Original file line number Diff line number Diff line change @@ -278,6 +278,10 @@ export const fields = {
278
278
section : "Type de section" ,
279
279
services : "Services" ,
280
280
services_categories : "Catégorie de service" ,
281
+ services_persons : {
282
+ label : "Personnes responsables ?" ,
283
+ hint : "Plusieurs personnes possible"
284
+ } ,
281
285
show_color : {
282
286
label : "Afficher des couleurs sur les jauges ?" ,
283
287
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