{# # This file is part of MedShakeEHR. # # Copyright (c) 2017 # Bertrand Boutillier # http://www.medshake.net # # MedShakeEHR 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 3 of the License, or # any later version. # # MedShakeEHR 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 MedShakeEHR. If not, see . #/ /## # Template > Config : paramètres de configuration spécifiques aux utilisteurs # # @author Bertrand Boutillier # @contrib fr33z00 #} {% extends "page.html.twig" %} {% import "macroForm.html.twig" as f %} {% block title %}{{ config.designAppName }} : configuration{% endblock %} {% block head %} {{ parent() }} {% endblock %} {% block body %}

Paramètres spécifiques à {{ page.userData.firstname }} {% if page.userData.lastname %} {{ page.userData.lastname }} {% else %} {{ page.userData.birthname }} {% endif %}

{% if page.userParams|length < 1 %} {% endif %}
{% if page.userTemplates|length > 0 %}
{% endif %}
{% for k,v in page.userParams %}
{% for w in v %} {% endfor %}
Paramètre Valeur défaut Valeur utilisateur
{{ w.name }} {{ w.default|nl2br }} {% if w.name == 'agendaNumberForPatientsOfTheDay' %} {{ f.select ({ 'select' : { 'name' : w.name, 'id' : w.name ~ 'ID', 'placeholder' : w.placeholder, 'class' : 'form-control', 'values' : w.formValues, 'valueDefaut' : w.value, 'autocomplete' : 'off' } }) }} {% elseif w.name == 'administratifComptaPeutVoirRecettesDe' %} {{ f.selectMultiple ({ 'select' : { 'name' : w.name, 'id' : w.name ~ 'ID', 'placeholder' : w.placeholder, 'class' : 'form-control', 'values' : w.formValues, 'valueDefaut' : w.value, 'autocomplete' : 'off' } }) }} {% elseif w.type == 'textarea' %} {{ f.textarea ({ 'textarea' : { 'name' : w.name, 'id' : w.name ~ 'ID', 'placeholder' : w.placeholder, 'class' : 'form-control form-control-sm h-100', 'value' : w.value, 'rows' : 5, 'autocomplete' : 'off' } }) }} {% else %} {{ f.input ({ 'input' : { 'type' : w.type, 'name' : w.name, 'id' : w.name ~ 'ID', 'placeholder' : w.placeholder, 'class' : 'form-control form-control-sm', 'value' : w.value, 'autocomplete' : 'off' } }) }} {% endif %}
{% endfor %}
{% endblock %} {% block modals %} {# modal d'ajout de paramètres #} {% endblock %}