noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 135/219: Template operation : message if ther


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 135/219: Template operation : message if there is no template
Date: Mon, 18 Dec 2017 13:22:51 -0500 (EST)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 2c48befc1d2fb76d183adf6afd8b55030eb09654
Author: Dany De Bontridder <address@hidden>
Date:   Sat Nov 4 08:47:47 2017 +0100

    Template operation : message if there is no template
---
 include/class/pre_operation.class.php | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/include/class/pre_operation.class.php 
b/include/class/pre_operation.class.php
index d0d98d9..bcafad3 100644
--- a/include/class/pre_operation.class.php
+++ b/include/class/pre_operation.class.php
@@ -281,8 +281,11 @@ class Pre_operation_detail
         if ( $this->jrn_def_id=='') $value=array();
         
         $r="";
-        $r.='<h2>'._("Choisissez un modèle").'</h2>';
-        $r.=_('Cherche').' '.HtmlInput::filter_table('modele_op_tab', '0', 
'0');
+        if (count($value)==0) {
+            $r.=_("Vous n'avez encore sauvé aucun modèle");
+            return $r;
+        }
+        $r.=_('Cherche').' '.HtmlInput::filter_table('modele_op_tab', '0,1', 
'0');
         $r.='<table style="width:100%" id="modele_op_tab">';
         for ($i=0;$i<count($value);$i++) {
             $r.='<tr class="'.(($i%2==0)?"even":"odd").'">';



reply via email to

[Prev in Thread] Current Thread [Next in Thread]