{# /** * This file is part of FacturaScripts * Copyright (C) 2017-2023 Carlos Garcia Gomez * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * This program 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see http://www.gnu.org/licenses/. */ #} {% set currentView = fsc.getCurrentView() %}
{# -- Row header -- #}
{% set row = currentView.getRow('header') %} {{ row.render(currentView.getViewName(), '', fsc) | raw }}
{# -- Row statistics -- #}
{% set row = currentView.getRow('statistics') %} {{ row.render(fsc) | raw }}
{# -- New form -- #} {% if currentView.settings.btnNew %} {% set formName = 'form' ~ currentView.getViewName() ~ 'New' %}
{{ formToken() }}
{{ currentView.title }}
{% for group in currentView.getColumns() %} {{ group.edit(currentView.model) | raw }} {% endfor %}
{% endif %} {# -- Forms -- #} {% for counter, model in currentView.cursor %} {% set formName = 'form' ~ currentView.getViewName() ~ counter %}
{{ formToken() }}
{% for group in currentView.getColumns() %} {{ group.edit(model) | raw }} {% endfor %}
{% endfor %} {# -- Pagination -- #} {% if currentView.getPagination() | length > 0 %} {% set formName = 'form' ~ currentView.getViewName() ~ 'Offset' %}
{% for page in currentView.getPagination() %} {% set btnClass = page.active ? 'btn btn-phoenix-secondary active' : 'btn btn-outline-dark' %} {% endfor %}
{% endif %} {# -- Row footer -- #}
{% set row = currentView.getRow('footer') %} {{ row.render(currentView.getViewName(), '', fsc) | raw }}
{# -- Modals -- #} {% for group in currentView.getModals() %} {{ group.modal(currentView.model, currentView.getViewName()) | raw }} {% endfor %}