{# # 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 : gestion des clefs apicrypt # # @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 jsEmbed %} {{ parent() }} $(document).ready(function() { $("button.dechiffrer").on("click", function(e) { code = window.prompt('Entrez le code LONG figurant sur le courrier Apycript'); if (code) { source = $(this).attr('data-source'); destination = $(this).attr('data-destination'); $.ajax({ url: urlBase + '/configuration/ajax/configUncryptApicryptKey/', type: 'post', data: { source: source, destination: destination, code: code }, dataType: "json", success: function(data) { location.reload(); }, error: function() { alert_popup("danger", 'Problème, rechargez la page !'); } }); } }); }); {% endblock %} {% block jsFiles %} {{ parent() }} {% endblock %} {% block body %}

Gestion des clefs Apicrypt

{# Nav tabs #}

Répertoire

Paramètre Chemin + répertoire "Clefs" final Est accessible en lecture Est accessible en écriture
apicryptCheminVersClefs {{ page.repertoireClefs }}    

Clefs présentes

{% if page.listeClefsAutorisationLecture == 1 %} {% if page.listeClefs|length < 1 %} {% else %} {% for k,v in page.listeClefs %} {% endfor %}
Fichier Chemin complet Est accessible en lecture Est accessible en écriture Gérer
{{ v.file }} {% if v.fileInfo.extension == 'aes' %} {% endif %} {{ v.filesize }} {{ page.repertoireClefs }}{{ v.file }}    
{% endif %} {% else %} {% endif %}

Ajouter des clefs

{% if page.listeClefsAutorisationEcriture == 1 %}
Déposez ici le fichier de clef ou sélectionnez-le avec le bouton ci-dessous
{% else %} {% endif %} {% endblock %}