menu

Template tags

viewflow.templatetags.viewflow.flowurl(parser, token)

Return a flow url.

Usage:

{% flowurl ref [urlname] [user=]  [ns=] [ns_map=] [as varname]%}

Examples:

{% flowurl 'app_label/FlowCls' 'index' %}
{% flowurl flow_class 'index' as index_url %}
{% flowurl process 'index' %}
{% flowurl process 'detail' %}
{% flowurl task 'assign' user=request.user %}
{% flowurl task user=request.user %}

Examples to use links outside of flow views:

{% flowurl task 'detail' ns='viewflow:helloworld' %}
{% flowurl task 'detail' ns=request.resolver_match.namespace ns_map=view.ns_map %}
viewflow.templatetags.viewflow.flow_perms(user, task)

Assign list of permissions.

Example:

{% flow_perms request.user task as task_perms  %}
viewflow.templatetags.viewflow.include_process_data(context, process)

Shortcut tag for list all data from linked process models.