{% init xnote_table_var = "table" %} {% set _xnote_table = globals()[xnote_table_var] %}
{{head.title}} | {% end %} {% if len(_xnote_table.actions) > 0 %}操作 | {% end %}
---|---|
{% if head.has_link(row) %} {{row.get(head.field)}} | {% else %} {{row.get(head.field)}} {% end %} {% if head.has_detail(row) %} 查看详情 {% end %} {% end %} {% if len(_xnote_table.actions) > 0 %}{% for action in _xnote_table.actions %} {% if action.type == "link" and action.get_link(row) != None %} {{action.title}} {% end %} {% if action.type == "button" and action.get_link(row) != None %} {% end %} {% if action.type == "confirm" and action.get_link(row) != None %} {% end %} {% if action.type == "edit_form" and action.get_link(row) != None %} {% end %} {% end %} | {% end %}