panel : create database with fields
All checks were successful
Deploy / Deploy to Production (push) Successful in 14s
All checks were successful
Deploy / Deploy to Production (push) Successful in 14s
This commit is contained in:
parent
c248687d56
commit
ff215de723
8 changed files with 59 additions and 7 deletions
|
|
@ -29,6 +29,7 @@ fields:
|
|||
type: files
|
||||
query: model.images
|
||||
multiple: false
|
||||
required: true
|
||||
image:
|
||||
back: black
|
||||
uploads:
|
||||
|
|
|
|||
15
site/blueprints/pages/database.yml
Normal file
15
site/blueprints/pages/database.yml
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
title: Bases de données
|
||||
|
||||
fields:
|
||||
countries:
|
||||
label: Pays
|
||||
type: tags
|
||||
team:
|
||||
label: Équipe
|
||||
type: tags
|
||||
keywords:
|
||||
label: Mots-clés
|
||||
type: tags
|
||||
methodologies:
|
||||
label: Méthodologies
|
||||
type: tags
|
||||
9
site/blueprints/pages/impact.yml
Normal file
9
site/blueprints/pages/impact.yml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
title: Impact
|
||||
|
||||
tabs:
|
||||
contentTab:
|
||||
linkedInvestigations:
|
||||
type: pages
|
||||
template: investigation-summary
|
||||
linkedMedias:
|
||||
type: url
|
||||
|
|
@ -1 +1,6 @@
|
|||
title: Impacts
|
||||
|
||||
tabs:
|
||||
contentTab:
|
||||
label: Contenu
|
||||
seoTab:
|
||||
|
|
|
|||
|
|
@ -81,27 +81,37 @@ tabs:
|
|||
text: "{{ page.title }}"
|
||||
value: "{{ page.slug }}"
|
||||
empty: Aucun dossier
|
||||
width: 1/3
|
||||
width: 1/4
|
||||
incidentDate:
|
||||
label: Date de l'incident
|
||||
type: date
|
||||
display: DD / MM / YYYY
|
||||
width: 1/3
|
||||
width: 1/4
|
||||
incidentLocation:
|
||||
label: Lieu de l'incident
|
||||
type: text
|
||||
width: 1/3
|
||||
width: 1/4
|
||||
incidentCountry:
|
||||
label: Pays de l'incident
|
||||
type: multiselect
|
||||
options: query
|
||||
query: page('database').countries.split
|
||||
width: 1/4
|
||||
incidentConsequences:
|
||||
label: Conséquence(s)
|
||||
type: text
|
||||
width: 1/3
|
||||
keywords:
|
||||
label: Mots-clés
|
||||
type: tags
|
||||
type: multiselect
|
||||
options: query
|
||||
query: page('database').keywords.split
|
||||
width: 1/2
|
||||
methodology:
|
||||
label: Méthodologie
|
||||
type: tags
|
||||
methodologies:
|
||||
label: Méthodologies
|
||||
options: query
|
||||
query: page('database').methodologies.split
|
||||
type: multiselect
|
||||
width: 1/2
|
||||
partners:
|
||||
label: Partenaires
|
||||
|
|
|
|||
|
|
@ -62,6 +62,7 @@ tabs:
|
|||
fields:
|
||||
authors:
|
||||
label: Auteur(s)
|
||||
default: INDEX Investigation
|
||||
type: tags
|
||||
incidentDate:
|
||||
label: Date de l'incident
|
||||
|
|
|
|||
|
|
@ -10,6 +10,17 @@ return [
|
|||
return Str::contains($path, '/site');
|
||||
}
|
||||
],
|
||||
'-'
|
||||
,
|
||||
'database' => [
|
||||
'label' => 'Bases de données',
|
||||
'icon' => 'table',
|
||||
'link' => 'pages/database',
|
||||
'current' => function (string $current): bool {
|
||||
$path = Kirby\Cms\App::instance()->path();
|
||||
return Str::contains($path, 'pages/database');
|
||||
}
|
||||
],
|
||||
'-',
|
||||
'users'
|
||||
];
|
||||
0
site/templates/database.php
Normal file
0
site/templates/database.php
Normal file
Loading…
Add table
Add a link
Reference in a new issue