Use the 'attrs' for that purpose. Something like: <button ... attrs="{'invisible': [('state', 'in', ['draft', 'done'])]}"/> <!-- where state is the field of ...
確定! 回上一頁