{% init xnote_table_var = "table" %} {% set _xnote_table = globals()[xnote_table_var] %} {% for head in _xnote_table.heads %} {% end %} {% if len(_xnote_table.actions) > 0 %} {% end %} {% for row in _xnote_table.rows %} {% for head in _xnote_table.heads %} {% else %} {{row.get(head.field)}} {% end %} {% end %} {% if len(_xnote_table.actions) > 0 %} {% end %} {% end %}
{{head.title}}操作
{% if head.has_link(row) %} {{row.get(head.field)}} {% 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 %}
{% if len(_xnote_table.rows) == 0 %} {% include common/text/empty_text.html %} {% end %}