    <div class="ui basic fitted segment">
        <a
            href="{{ url_for('addDynamicField', {'form_name': form_name}) }}"
            class="ui labeled icon button addfield"
        >
            <i class="plus green icon"></i>
            {{ _T("Add") }}
        </a>
    </div>
    <div class="ui basic fitted segment loader_selector">
        <table class="listing ui celled striped table">
            <thead>
                <tr>
                    <th class="id_row">#</th>
                    <th>{{ _T("Name") }}</th>
                    <th>{{ _T("Permissions") }}</th>
                    <th class="date_row">{{ _T("Type") }}</th>
                    <th class="date_row">{{ _T("Required") }}</th>
                    <th>{{ _T("Actions") }}</th>
                </tr>
            </thead>
            <tbody>
{% for field in fields_list %}
                <tr>
                    <td>{{ field.getIndex() }}</td>
                    <td class="left">{{ field.getName()|escape }}</td>
                    <td class="left">{{ field.getPermName() }}</td>
                    <td class="left">{{ field.getTypeName() }}</td>
                    <td>
    {% if field.getType != 0 %}
        {% if field.isRequired() %}{{ _T("Yes") }}{% else %}{{ _T("No") }}{% endif %}
    {% endif %}
                    </td>
                    <td class="center actions_row">
                        <a
                            href="{{ url_for('editDynamicField', {'form_name': form_name, 'id': field.getId()}) }}"
                            class="action single-edit"
                        >
                            <i class="ui user edit blue icon tooltip" aria-hidden="true"></i>
                            <span class="ui special popup">{{ _T("Edit '%s' field")|replace({'%s': field.getName()}) }}</span>
                        </a>
                        <a
                            href="{{ url_for('dynamicTranslations', {'text_orig': field.getName(false)}) }}"
                            class="action single-translate"
                        >
                            <i class="ui language grey icon tooltip" aria-hidden="true"></i>
                            <span class="ui special popup">{{ _T("Translate '%s' field")|replace({'%s': field.getName()}) }}</span>
                        </a>
                        <a
                            href="{{ url_for('removeDynamicField', {'form_name': form_name, 'id': field.getId()}) }}"
                            class="delete"
                        >
                            <i class="ui trash red icon tooltip" aria-hidden="true"></i>
                            <span class="ui special popup">{{ _T("Delete '%s' field")|replace({'%s': field.getName()}) }}</span>
                        </a>
    {% if field.getIndex() == 1 %}
                        <i class="ui icon">&nbsp;</i>
    {% else %}
                        <a
                            href="{{ url_for('moveDynamicField', {'form_name': form_name, 'direction': 'up', 'id': field.getId()}) }}"
                        >
                            <i class="ui caret up grey icon tooltip"></i>
                            <span class="ui special popup">{{ _T("Move up '%s' field")|replace({'%s': field.getName()}) }}</span>
                        </a>
    {% endif %}
    {% if field.getIndex() == fields_list|length %}
                        <i class="ui icon">&nbsp;</i>
    {% else %}
                        <a
                            href="{{ url_for('moveDynamicField', {'form_name': form_name, 'direction': 'down', 'id': field.getId()}) }}"
                        >
                            <i class="ui caret down grey icon tooltip"></i>
                            <span class="ui special popup">{{ _T("Move down '%s' field")|replace({'%s': field.getName()}) }}</span>
                        </a>
    {% endif %}
                    </td>
                </tr>
{% else %}
                <tr>
                    <td colspan="7">
                        {{ _T("There is not yet any dynamic field configured for '%formname'")|replace({'%formname': form_title}) }}
                    </td>
                </tr>
{% endfor %}
            </tbody>
        </table>
    </div>
    <script type="text/javascript">
        {% include "elements/js/removal.js.twig" with {
            single_action: "true"
        } %}
    </script>
