Glpi dropdown format¶
I take for exemple the ticket form. The ticket form have a categorie selection.If we have this categories :
- categorie a and b
- a1 and a2 subcategorie of a
- b1 and b2 subcategorie of b
- a11 and a12 subcategorie of a1
With this exemple we have in 0.80 this view :
flat view :
a
a1
a11p
a12
a2
b
b1
b2
non-flat view :
a
a1
a11
a12
a2
b
b1
b2
I want add an other view, named for exemple natural view. Here an exemple for my view :
a
a1
a11
a12
a2
b
b1
b2
Moyo : really strange because the non flat view is normally this one. And flat view display a > a1 >a11
We can also add an other view or other option for create a personnal view. (type + string for indent + max depth for exemple)
I think we can cut all this idea in few params :- the type : flat, reverse, normal
- the max depth
- the string for indent
- type for indent (one time the string for indent or string for indent for each indent)
This is an exemple for the last params :
one time string
a
=> a1
. . => a11
. . => a12
=> a2
b
=> b1
=> b2
string for each indent
a
=> a1
=> => a11
=> => a12
=> a2
b
=> b1
=> b2