Source

iredadmin-ose / templates / default / ldap / msgHandlers.html

{% macro domainMsgHandler(msg=none) -%}
{% if msg is defined and msg is not sameas none %}
    <div class="ct-box info-box">
        {% if msg == 'DOMAIN_CREATED_SUCCESS' %}
            <div class='success'>{{ _('Domain was created.') }}</div>
        {% elif msg == 'DOMAIN_PROFILE_UPDATED_SUCCESS' %}
            <div class="success">{{ _('Profile update success.') }}</div>
        {% elif msg == 'DOMAIN_DELETED_SUCCESS' %}
            <div class="success">{{ _('Selected domains were deleted.') }}</div>
        {% elif msg == 'DOMAIN_DISABLED_SUCCESS' %}
            <div class="success">{{ _('Selected domains were diabled.') }}</div>
        {% elif msg == 'DOMAIN_ENABLED_SUCCESS' %}
            <div class="success">{{ _('Selected domains were enabled.') }}</div>

        {# Error handler #}
        {% elif msg == 'EMPTY_DOMAIN' %}
            <div class="error">{{ _('Domain name is empty.') }}</div>
        {% elif msg == 'SIZELIMIT_EXCEEDED' %}
            <div class="error">{{ _('Server-side size limit exceeded.') }}</div>
        {% elif msg == 'PERMISSION_DENIED' %}
            <div class="error">{{ _('Permission denied.') }}</div>
        {% elif msg == 'NO_SUCH_OBJECT' %}
            <div class="error">{{ _('No such domain.') }}</div>
        {% elif msg == 'INCORRECT_PROFILE_TYPE' %}
            <div class="error">{{ _('Incorrect profile type.') }}</div>
        {% elif msg == 'DOMAIN_NAME_MISMATCH' %}
            <div class="error">{{ _('Submited domain name is incorrect.') }}</div>
        {% else %}
            {# Catch-all #}
            <div class="warning">{{msg}}</div>
        {% endif %}
    </div>
{% endif %}
{%- endmacro %}

{#
{% macro domainMsgHandler(msg) -%}
{%- endmacro %}

{% macro domainMsgHandler(msg) -%}
{%- endmacro %}

{% macro domainMsgHandler(msg) -%}
{%- endmacro %}

{% macro domainMsgHandler(msg) -%}
{%- endmacro %}
#}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.