{% load i18n %}
<form action="{% url 'lfc_manage_save_workflow_data' workflow.id %}"
      method="POST">
    {% csrf_token %}
    <h2 class="first-heading">{% trans "Data" %}</h2>

    {% include "lfc/manage/lfc_form.html" %}

    <h2 class="middle-heading">{% trans "Permissions" %}</h2>

    {% for permission in permissions %}
        <div>
            <input type="checkbox" name="permission" value="{{ permission.id }}" {% if permission.checked %}checked="checked"{% endif %} />
            {% trans permission.name %}
        </div>
    {% endfor %}

    <div class="manage-form-buttons">
        <input class="ajax-submit"
               type="submit"
               value="{% trans 'Save workflow' %}" />
    </div>

</form>
