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