{# 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 %}