Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
French Tax and Benefit Tables
baremes-ipp-views
Commits
407ddb89
Commit
407ddb89
authored
Oct 24, 2018
by
Florian Pagnoux
Browse files
Add prestations sociales
parent
74b84837
Changes
4
Hide whitespace changes
Inline
Side-by-side
config-doc.md
View file @
407ddb89
...
...
@@ -127,4 +127,4 @@ Le méchanisme est le même que celui décrit à la partie précédente, avec de
-
Le sommaire descend "plus en profodeur" dans le noeud de paramètre
-
Inversement, les tables sont cette fois générées à partir des "petits-enfants" du noeud, et sont donc moins complexes.
Il est possible de spécifier un
`depth`
> 1 pour un sommaire plus profond
d
. Par défault,
`depth`
vaut
`0`
.
Il est possible de spécifier un
`depth`
> 1 pour un sommaire plus profond. Par défault,
`depth`
vaut
`0`
.
pages/index.js
View file @
407ddb89
...
...
@@ -14,6 +14,7 @@ const Index = () => (
<
/ul
>
<
h4
>
Transferts
et
prestations
<
/h4
>
<
ul
>
<
li
><
a
href
=
"
./prestations-sociales
"
>
Prestations
sociales
<
/a></
li
>
<
li
><
a
href
=
"
./chomage
"
>
Chômage
<
/a></
li
>
<
li
><
a
href
=
"
./retraite
"
>
Retraite
<
/a></
li
>
<
/ul
>
...
...
pages/section.js
View file @
407ddb89
...
...
@@ -21,7 +21,7 @@ function renderSubParams(item, key, path) {
}
function
renderItem
(
item
,
key
,
path
)
{
if
(
item
.
subparams
&&
(
isArray
(
item
.
subparams
)
||
item
.
flat
)
)
{
if
(
item
.
subparams
&&
item
.
flat
)
{
return
renderSubParams
(
item
,
key
,
path
)
}
if
(
item
.
subparams
)
{
...
...
@@ -42,7 +42,6 @@ const Section = (props) => {
x
=>
sortBy
(
x
,
subParam
=>
subParam
.
metadata
&&
subParam
.
metadata
.
rank
)
])(
section
.
subparams
)
return
<
Layout
>
<
h1
className
=
"
box
"
><
span
>
{
section
.
title
}
<
/span></
h1
>
<
div
className
=
"
entry-content text
"
>
...
...
tables/prestations-sociales.yaml
0 → 100644
View file @
407ddb89
title
:
Prestations sociales
subparams
:
-
title
:
Prestations familiales
subparams
:
-
table
:
prestations_sociales.prestations_familiales.def_pac
-
table
:
prestations_sociales.prestations_familiales.def_biactif
-
table
:
prestations_sociales.prestations_familiales.bmaf
-
subsection
:
prestations_sociales.prestations_familiales
depth
:
1
flat
:
true
exclude
:
-
def_pac
-
def_biactif
-
bmaf
-
subsection
:
prestations_sociales.allocations_logement
-
subsection
:
prestations_sociales.solidarite_insertion
depth
:
1
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment