Open Bartvds opened 8 years ago
Hey @Bartvds –
These are great suggestions! I just took a quick glance at the template code and couldn't agree more. Right now the templates are, as you said in the python code, which is not good. Also, the javascript is tightly coupled to those templates which is also less-than-ideal.
I'll do a deeper dive later this week to investigate some possible solutions. Stay tuned!
It would be cool to have some more control over the widgets and fields.
For example the 300x300 hardcoded thumbnail size is a bit much, and many of the widget templates are inlined in the python code.
I tried a bit of extending/overriding but it gets messy and various bits of functionality break down (thumbnail and PPOI functionality go MIA easily).
Maybe it would help to externalize the templates and have the admin thumbnail size configurable (per widget/form), also in some tight layouts we don't need the labels or current image url.