{#
# -------------------------------------------------------------------------
# DataInjection plugin for GLPI
# -------------------------------------------------------------------------
#
# LICENSE
#
# This file is part of DataInjection.
#
# DataInjection is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# DataInjection is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with DataInjection. If not, see .
# -------------------------------------------------------------------------
# @copyright Copyright (C) 2007-2023 by DataInjection plugin team.
# @license GPLv2 https://www.gnu.org/licenses/gpl-2.0.html
# @link https://github.com/pluginsGLPI/datainjection
# -------------------------------------------------------------------------
#}
{% if logresults[SUCCESS] is defined %}
{{ __('Array of successful injections', 'datainjection') }}
|
{{ __('Line', 'datainjection') }} |
{{ __('Data Import', 'datainjection') }} |
{{ __('Injection type', 'datainjection') }} |
{{ __('Object Identifier', 'datainjection') }} |
{% for result in logresults[SUCCESS] %}
|
{{ result.line }} |
{{ result.status_message|nl2br }} |
{{ result.type }} |
{{ result.url|raw }} |
{% endfor %}
{% endif %}
{% if logresults[FAILED] is defined %}
{{ __('Array of failed injections', 'datainjection') }}
|
{{ __('Line', 'datainjection') }} |
{{ __('Data check', 'datainjection') }} |
{{ __('Data Import', 'datainjection') }} |
{{ __('Injection type', 'datainjection') }} |
{{ __('Object Identifier', 'datainjection') }} |
{% for result in logresults[FAILED] %}
|
{{ result.line }} |
{{ result.check_message|nl2br }} |
{{ result.status_message|nl2br }} |
{{ result.type }} |
{{ result.url|raw }} |
{% endfor %}
{% endif %}
{% if resume is not empty %}
{{ __('Global report', 'datainjection') }}
{{ __('Number of lines processed', 'datainjection') }} : {{ nblines }}
|
{{ __('Data Import', 'datainjection') }} |
{{ __('Injection type', 'datainjection') }} |
{{ __('Counter', 'datainjection') }} |
{% for status, types in resume %}
{% set rowspan = types|length %}
|
{% if status == SUCCESS %}
{% else %}
{% endif %}
|
{% set label = call('PluginDatainjectionCommonInjectionLib::getLogLabel', [status])|raw %}
{{ label }}
|
{% for type, value in types %}
{% if not loop.first %}
{% endif %}
| {{ type }} |
{{ value }} |
{% if not loop.last %}
{% endif %}
{% endfor %}
{% endfor %}
{% endif %}