瀏覽代碼

Debug R7 emargement

stany.ferer 1 年之前
父節點
當前提交
6f32bfb8f1
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      core/views/pages/cms.evenement-inscrits.php

+ 2 - 2
core/views/pages/cms.evenement-inscrits.php

@@ -45,7 +45,7 @@
 
 <script>
         function desinscrire(value, row) { 
-<?php if(ENVIRONNEMENT != "DEV") { ?>            
+<?php if(ENVIRONNEMENT != "DEV" AND ENVIRONNEMENT != "R7") { ?>            
             if(row.present === null){
 <?php } ?>
                 return '<form method="post" action="/submit.php">\n\
@@ -55,7 +55,7 @@
                 <input type="hidden" name="salarie" value="' + row.id + '">\n\
                 <button type="submit" onclick="return confirm(\'Etes-vous certain de vouloir désinscrire ' + row.prenom + ' ' + row.nom + ' ?\')" class="btn btn-outline-danger btn-sm">Annuler</button>\n\
                 </form>'; 
-<?php if(ENVIRONNEMENT != "DEV") { ?>
+<?php if(ENVIRONNEMENT != "DEV" AND ENVIRONNEMENT != "R7") { ?>
             } else {
                 return '<button class="btn btn-outline-secondary btn-sm" disabled="">Validé</button>';
             }