{# Required Context Variables: MODEL, MANAGER, OBJECT #} {% extends "box.html" %} {% block box_content %} {% import "widgets/form.html" as form %}

{% if MODEL._meta.profile %} {{ MODEL._meta.verbose_name }} {% else %} {{ OBJECT.repr() }} {% endif %}

{% for action in MODEL._meta.explicit_actions %}
{% if action.verbose_name %} {{ action.verbose_name }} {% endif %}
{% for field in action.option_fields %} {{ field.default_widget(editable=field.editable, model_instance=None, manager=MANAGER).render(form, 'js_hook_'+id|jsvar+'_'+action.name, {'form':form, 'csrf_token':csrf_token}) }} {% endfor %}
{% endfor %}
{% endblock box_content %} {% block box_script %} {% if 0 %} {% endif %} {% endblock %}