{# js_args: {view:xxx, get_data: a function}; it is used when exec one action, need a backbone view for popup and a function to collect needed parameters from other element#} {% macro ActionButton(id, Actions, options={}) -%} {% if options and options.max_num %} {% set max_num = options.max_num %} {% else %} {% set max_num = 1 %} {% endif %}
{% for action in Actions %} {% if loop.index == max_num and Actions|length > max_num%} {% endif %} {% endfor %}
{%- endmacro %} {% macro ActionWidget(id, action, options={}) -%}
{%- endmacro %}