{# # This file is part of MedShakeEHR. # # Copyright (c) 2019 # 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 : edition d'un user template # # @author Bertrand Boutillier # #} {% extends "page.html.twig" %} {% import "macroForm.html.twig" as f %} {% block title %}{{ config.designAppName }} : édition du modèle de configuration utilisateur{% endblock %} {% block head %} {{ parent() }} {% endblock %} {% block jsEmbed %} {{ parent() }} $(document).ready(function() { if ($("#templateEditorUT").length) { var editor = CodeMirror.fromTextArea(document.getElementById("templateEditorUT"), { lineNumbers: true, mode: "yaml", lineWrapping: true }); editor.setSize(null, 500); } }); {% endblock %} {% block body %}

Edition du modèle {{ page.fichier.name }} {% if page.selectUser > 0 %} de {{ page.fichier.proprio.firstname }} {% if page.fichier.proprio.lastname %} {{ page.fichier.proprio.lastname }} {% else %} {{ page.fichier.proprio.birthname }} {% endif %} {% endif %}

{% if page.templatesDirAutorisationEcriture == false %} {% endif %}
{{ f.input ({ 'input' : { 'type' : 'text', 'name' : 'directory', 'placeholder' : 'nom du fichier', 'class' : 'form-control', 'autocomplete' : 'off', 'readonly' : 'readonly', 'value' : page.fichier.chemin }, 'label' : { 'position' : 'before', 'label' : 'Répertoire', } }) }}
{{ f.input ({ 'input' : { 'type' : 'text', 'name' : 'fichier', 'placeholder' : 'nom du fichier', 'class' : 'form-control', 'autocomplete' : 'off', 'value' : page.fichier.name }, 'label' : { 'position' : 'before', 'label' : 'Nom du fichier (indiquer un nouveau nom pour conserver l\'original)', } }) }}
{{ f.textarea ({ 'textarea' : { 'name' : 'code', 'id' : 'templateEditorUT', 'placeholder' : 'valeurs par défaut', 'class' : 'form-control', 'autocomplete' : 'off', 'value' : page.fichier.code, 'add' : 'rows="45" style="font-family:monospace;"' }, 'label' : { 'position' : 'before', 'class' : 'font-weight-bold', 'label' : 'Paramètres à appliquer à l\'utilisateur (yaml)' } }) }}

{{ page.form.yaml }}

{% endblock %}