{% load i18n %} {% load static %}
{% if rtype == 'User' and type == 'resources' %} {% trans 'Add User' as trans_add_user %} {% include '_components/sub_menu/button.html' with href=user_add_url text=trans_add_user%} {% trans 'Bulk Operation' as trans_bulk_operation %} {% include '_components/sub_menu/button.html' with href=bulk_users_url text=trans_bulk_operation%} {% include '_components/sub_menu/button.html' with type='password-export' %} {% include '_components/sub_menu/button.html' with type='csv-export' rtype=rtype %} {% elif rtype == 'Group' and type == 'resources' %} {% trans 'Add Group' as trans_add_group %} {% include '_components/sub_menu/button.html' with href=group_add_url text=trans_add_group %} {% trans 'Bulk Operation' as trans_bulk_operation %} {% include '_components/sub_menu/button.html' with href=bulk_groups_url text=trans_bulk_operation %} {% include '_components/sub_menu/button.html' with type='csv-export' rtype=rtype %} {% elif rtype == 'User' and type == 'resource' %} {% include '_components/sub_menu/button.html' with type='enable' rtype=rtype resource=resource %} {% include '_components/sub_menu/button.html' with type='disable' rtype=rtype resource=resource %} {% include '_components/sub_menu/button.html' with type='delete' rtype=rtype resource=resource %} {% include '_components/sub_menu/button.html' with type='rename' rtype=rtype resource=resource %} {% include '_components/sub_menu/button.html' with type='change_password' rtype=rtype resource=resource %} {% if ldap_ppolicy_unlock %} {% include '_components/sub_menu/button.html' with type='ppolicy_unlock' rtype=rtype resource=resource %} {% endif %} {% elif rtype == 'Group' and type == 'resource' %} {% include '_components/sub_menu/button.html' with type='delete' rtype=rtype resource=resource %} {% include '_components/sub_menu/button.html' with type='rename' rtype=rtype resource=resource %} {% elif rtype == 'oldResults' %} {% include '_components/sub_menu/button.html' with type='csv-export' rtype=rtype %} {% endif %} {% if request.path|urlencode != result_url|urlencode and admin and not new_resource %} {% if type == 'resource' %} {% include '_components/sub_menu/button.html' with type='refresh_resource' %} {% elif type == 'resources' %} {% include '_components/sub_menu/button.html' with type='refresh_resources' %} {% endif %} {% endif %}