You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The {%tr %} tags should be used here. That will also remove the row it's written in. But everything in the for loop will be repeated for every item. So everything you don't want repeated would need to be outside the loop.
So you would have something like this. I've replaced the words I can't read with just info.
Activity
Ekvivokk commentedon Jul 21, 2025
The {%tr %} tags should be used here. That will also remove the row it's written in. But everything in the for loop will be repeated for every item. So everything you don't want repeated would need to be outside the loop.
So you would have something like this. I've replaced the words I can't read with just info.
info | {{ address }}
header 1 | header 2 | header 3
{%tr for order in orderLlist %}
{{ type 1 }} | {{ startTime }} | empty
info | info
{{ orderType }} | empty | empty | empty
{%tr endfor %}
Clyde-la commentedon Jul 23, 2025
表格里面的for循环要用 {%tr %} {%tr endfor %}
bbhxwl commentedon Jul 24, 2025
我这情况是比较复杂,是想开始图片,分2列,往下循环,结束图片分2列,往下循环,这样好像做不到?1列容易
Clyde-la commentedon Jul 24, 2025
一行好像只能一个for ,你要么把 开始图片和结束图片这4列一起for循环生成,要么在表格里套表格(子表格单独for)。
tests/templates/dynamic_table_tpl.docx 去看下项目里的示例就知道了
bbhxwl commentedon Jul 29, 2025
那看来我这需求很难了,开始图片和结束图片要分左右,而且开始可能是1个,结束可能是6个,也可能开始6个,结束1个,都不太固定。