Glpi dropdown format » History » Version 4

« Previous - Version 4/7 (diff) - Next » - Current version
holblin, 06/15/2011 11:01 AM


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
a11
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

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