I am having a hard time fully grasping how dictionaries are dealt with
in the templating language.
I have a template form feed a formwrapper with a parent table and a
formfieldcollection for one2many in a child table. After 3 days of
constant tinkering I have the update form showing w/ proper data and so
forth. However, the errors dictionary is throwing me off in the
template for the child table or (formfieldcollection).
So I have a 'form' and a formollection and an error dictionary in my
context. I need to lookup the error in the dictionary based on the key
within the item of the formcollection.
I'm looping through the child (of formfieldcollection):
{% for comp in components %}
<div class="form-row">
<label for="id_component.{{ forloop.counter0 }}.var1"
class="required">Var1</label>
{{ comp.var1 }}</div>
In the above I need to do something like (psuedo) {% if comp.key in
error.keys %}error {{ error[comp.key] }} {% endif %}
Scott Pierce