Odoo中文网|Odoo实施培训
标题:
t-if 渲染条件
[打印本页]
作者:
磨叽什么
时间:
2018-7-23 17:07
标题:
t-if 渲染条件
需要实现的功能:
选择哪一个选项,哪个选项的框变成黑色
代码如下:
<p>入岗方式:<t t-if="o.entry_way == 'official'"><input type="text" style="width:10px; background-color:#000000; height:10px"/></t><t t-if="o.entry_way != 'official'">□</t> 正式职工 <t t-if="o.entry_way == 'intern'"><input type="text" style="width:10px; background-color:#000000; height:10px"/></t><t t-if="o.entry_way != 'intern'">□</t> 实习生</p>
<p> <t t-if="o.entry_way == 'other'"><input type="text" style="width:10px; background-color:#000000; height:10px"/></t><t t-if="o.entry_way != 'other'">□</t> 其他(请说明)<font style="text-decoration:underline"><span t-field="o.other_explain"/></font></p>
欢迎光临 Odoo中文网|Odoo实施培训 (http://www.chinaodoo.net/)
Powered by Discuz! X3.2