{% macro render_additional_links(additional_links, pk) %} {% if additional_links %} {% for item in additional_links %} {{_(item.label)}} {% endfor %} {% endif %} {% endmacro %} {% macro render_action_links(actions, pk, modelview_name) %} {% set actions = actions | get_actions_on_show(modelview_name) %} {% for key in actions %} {% set action = actions.get(key) %} {% set endpoint = modelview_name + '.action' %} {% set path = endpoint | safe_url_for(name = action.name, pk = pk) %} {% if path %}
{% else %} onclick="var a = new AdminActions(); return a.execute_single('{{path}}',false);"> {% endif %} {{_(action.text)}} {% endif %} {% endfor %} {% endmacro %} {% macro action_form(actions, modelview_name) %} {% if actions %} {% set endpoint = modelview_name + '.action_post' %} {% set path = endpoint | safe_url_for %} {% if path %} {% endif %} {% else %} {% endif %} {% endmacro %} {% macro render_actions(actions, modelview_name) %} {% if actions %}