noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 119/119: Tache #0001859: PARAM/CFGDOC : icone


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 119/119: Tache #0001859: PARAM/CFGDOC : icone fermer + bouton
Date: Mon, 26 Oct 2020 18:27:43 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit bc168d22ef3f9c02030ba2687885b6879cb4116d
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Mon Oct 26 18:13:43 2020 +0100

    Tache #0001859: PARAM/CFGDOC : icone fermer + bouton
---
 include/lib/icon_action.class.php    | 13 ++++++++++++-
 include/template/modele_document.php |  2 +-
 2 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/include/lib/icon_action.class.php 
b/include/lib/icon_action.class.php
index 252f9b5..eef3a58 100644
--- a/include/lib/icon_action.class.php
+++ b/include/lib/icon_action.class.php
@@ -211,10 +211,21 @@ class Icon_Action
     static function hide($action, $javascript)
     {
         $r='';
-        $r.='<span id="hide" class="icon"   
onclick="'.$javascript.'">&#xe83b;'.$action.'</span>';
+        $r.='<span id="hide" class="icon"   
onclick="'.$javascript.'">'.$action.'</span>';
         return $r;
     }
     /**
+     * Return a html string with an eye
+     * @param type $javascript
+     * @return string
+     */
+    static function notvisible($javascript) {
+        $r='';
+        $r.='<span id="hide" class="icon"   
onclick="'.$javascript.'">&#xe83b;</span>';
+        return $r;
+        
+    }
+    /**
      * Display the icon of a trashbin
      * @param string $p_id DOMid 
      * @param string $p_javascript
diff --git a/include/template/modele_document.php 
b/include/template/modele_document.php
index 1ba0ef7..7a24812 100644
--- a/include/template/modele_document.php
+++ b/include/template/modele_document.php
@@ -117,6 +117,6 @@ echo dossier::hidden();
 echo HtmlInput::hidden('sa','mod_template');
 echo HtmlInput::hidden('id',$doc->md_id);
 echo HtmlInput::submit("mod",_('Sauver'));
-
+echo HtmlInput::button_hide("mod_doc");
 ?>
 </form>
\ No newline at end of file



reply via email to

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