{# /* * ------------------------------------------------------------------------- * JAMF plugin for GLPI * Copyright (C) 2019-2021 by Curtis Conard * https://github.com/cconard96/jamf * ------------------------------------------------------------------------- * LICENSE * This file is part of JAMF plugin for GLPI. * JAMF plugin for GLPI 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. * JAMF plugin for GLPI 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 JAMF plugin for GLPI. If not, see . * -------------------------------------------------------------------------- */ #} {% import 'components/form/fields_macros.html.twig' as fields %} {% for section in info %} {{ fields.smallTitle(section.caption) }} {% for field_name,field in section.fields %} {% set field_content %} {{ field.value }} {% endset %} {{ fields.field(field_name, field_content, field.caption) }} {% endfor %} {% if section.buttons is defined %}
{% for button_name,button in section.buttons %} {% if button.url %} {{ button.caption }} {% else %} {% endif %} {% endfor %}
{% endif %} {% if section.extra_js is defined %} {% endif %} {% endfor %}