[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 02/33: Cosmetic : add button close for filter
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 02/33: Cosmetic : add button close for filter, dialog box search operation, TVA |
Date: |
Thu, 11 Nov 2021 06:02:41 -0500 (EST) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 5d70f21dfaa7df5db8aa5db71e321ab661676959
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Thu Sep 30 15:22:30 2021 +0200
Cosmetic : add button close for filter, dialog box search operation, TVA
---
html/ajax_misc.php | 2 +-
include/ajax/ajax_search_filter.php | 1 +
include/class/acc_ledger_search.class.php | 3 ++-
unit-test/include/class/acc_ledger_search.Test.php | 4 +++-
4 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/html/ajax_misc.php b/html/ajax_misc.php
index 4ed267d..4f154a2 100644
--- a/html/ajax_misc.php
+++ b/html/ajax_misc.php
@@ -568,8 +568,8 @@ EOF;
$r.='</tr>';
}
$r.='</TABLE>';
+ $r.=HtmlInput::button_close("tva_select");
$r.='</div>';
-
$html = escape_xml($r);
header('Content-type: text/xml; charset=UTF-8');
diff --git a/include/ajax/ajax_search_filter.php
b/include/ajax/ajax_search_filter.php
index 1d58a86..cc1d1d0 100644
--- a/include/ajax/ajax_search_filter.php
+++ b/include/ajax/ajax_search_filter.php
@@ -173,6 +173,7 @@ if ($op=="display_search_filter")
printf("</li>");
}
+ echo HtmlInput::button_close("boxfilter".$p_div);
return;
}
//-----------------------------------------------------------------------------
diff --git a/include/class/acc_ledger_search.class.php
b/include/class/acc_ledger_search.class.php
index 33d9838..f6e6b14 100644
--- a/include/class/acc_ledger_search.class.php
+++ b/include/class/acc_ledger_search.class.php
@@ -687,7 +687,7 @@ class Acc_Ledger_Search
$r='';
$r.='<div id="search_form" style="display:none">';
$r.=HtmlInput::title_box(_('Recherche'), "search_form", "hide", "",
"n");
- $r.='<FORM METHOD="GET">';
+ $r.='<FORM METHOD="GET" >';
$r.=$this->search_form();
$r.=HtmlInput::submit('search', _('Rechercher'));
@@ -714,6 +714,7 @@ class Acc_Ledger_Search
+ $r.=HtmlInput::button_hide("search_form");
$r.='</FORM>';
$r.='</div>';
diff --git a/unit-test/include/class/acc_ledger_search.Test.php
b/unit-test/include/class/acc_ledger_search.Test.php
index a1fbe72..f3f0b03 100644
--- a/unit-test/include/class/acc_ledger_search.Test.php
+++ b/unit-test/include/class/acc_ledger_search.Test.php
@@ -87,7 +87,9 @@ class Acc_Ledger_Test extends TestCase
put_global(array(["key"=>"ac","value"=>"phpunit"]));
$ledger=new Acc_Ledger_Search('ALL');
$r=$ledger->display_search_form();
- $this->assertEquals(9546,strlen($r),"Size of the html string for
display_search_form");
+ \Noalyss\Facility::save_file(__DIR__."/file",
"acc_ledger_search-test_display_search_form.html", $r);
+ $this->assertEquals(9665,strlen($r),"Size of the html string for
display_search_form see "
+ .
__DIR__."/file/acc_ledger_search-test_display_search_form.html ");
}
/**
* @covers ::build_search_filter
- [Noalyss-commit] [noalyss] branch master updated (8b28b18 -> 2b1bcd5), Dany De Bontridder, 2021/11/11
- [Noalyss-commit] [noalyss] 04/33: Sale & Purchase Quantity with 2 dec., Dany De Bontridder, 2021/11/11
- [Noalyss-commit] [noalyss] 01/33: Cosmetic : move dialog horizontally and vertically, Dany De Bontridder, 2021/11/11
- [Noalyss-commit] [noalyss] 02/33: Cosmetic : add button close for filter, dialog box search operation, TVA,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 09/33: Rounded for currency, Dany De Bontridder, 2021/11/11
- [Noalyss-commit] [noalyss] 08/33: Operation details : calcul correctement la différence avec les opérations extournées, Dany De Bontridder, 2021/11/11
- [Noalyss-commit] [noalyss] 12/33: Button close for new card, Dany De Bontridder, 2021/11/11
- [Noalyss-commit] [noalyss] 06/33: Bug rounded : show amount in currency with 4 dec., Dany De Bontridder, 2021/11/11
- [Noalyss-commit] [noalyss] 10/33: For Misc Operation in currency , show the currency amount / row, Dany De Bontridder, 2021/11/11
- [Noalyss-commit] [noalyss] 11/33: Bug for reversed operation when currency are used, Dany De Bontridder, 2021/11/11
- [Noalyss-commit] [noalyss] 03/33: Improve HttpInput::extract , the array is set and not passed anymore, Dany De Bontridder, 2021/11/11
- [Noalyss-commit] [noalyss] 05/33: Bug : pour non-assujetti , pas de calcul en devise, Dany De Bontridder, 2021/11/11
- [Noalyss-commit] [noalyss] 07/33: Bug for reversed operation when currency are used, Dany De Bontridder, 2021/11/11
- [Noalyss-commit] [noalyss] 14/33: Typo, Dany De Bontridder, 2021/11/11