diff --git a/public_html/images/default/reset.png b/public_html/images/default/reset.png
new file mode 100644
index 00000000..ab92010c
Binary files /dev/null and b/public_html/images/default/reset.png differ
diff --git a/public_html/lang/fr_FR.UTF8/LC_MESSAGES/ldapsaisie.mo b/public_html/lang/fr_FR.UTF8/LC_MESSAGES/ldapsaisie.mo
index 155be226..3b08b95e 100644
Binary files a/public_html/lang/fr_FR.UTF8/LC_MESSAGES/ldapsaisie.mo and b/public_html/lang/fr_FR.UTF8/LC_MESSAGES/ldapsaisie.mo differ
diff --git a/public_html/lang/fr_FR.UTF8/LC_MESSAGES/ldapsaisie.po b/public_html/lang/fr_FR.UTF8/LC_MESSAGES/ldapsaisie.po
index 2a9148b9..bd44d92e 100644
--- a/public_html/lang/fr_FR.UTF8/LC_MESSAGES/ldapsaisie.po
+++ b/public_html/lang/fr_FR.UTF8/LC_MESSAGES/ldapsaisie.po
@@ -7,8 +7,8 @@ msgid ""
msgstr ""
"Project-Id-Version: LdapSaisie\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2019-05-27 18:10+0200\n"
-"PO-Revision-Date: 2019-05-27 18:11+0200\n"
+"POT-Creation-Date: 2019-06-03 14:24+0200\n"
+"PO-Revision-Date: 2019-06-03 14:24+0200\n"
"Last-Translator: Benjamin Renard \n"
"Language-Team: LdapSaisie \n"
@@ -57,6 +57,22 @@ msgstr "Recherche approximative"
msgid "Recursive search"
msgstr "Recherche récursive"
+#: view.php:143 create.php:120 includes/class/class.LSrelation.php:267
+msgid "New"
+msgstr "Nouveau"
+
+#: view.php:149 import.php:59
+msgid "Import"
+msgstr "Importer"
+
+#: view.php:156 includes/class/class.LSsession.php:1418
+msgid "Refresh"
+msgstr "Rafraîchir"
+
+#: view.php:161
+msgid "Reset"
+msgstr "Réinitialiser"
+
#: select.php:70 includes/class/class.LSsession.php:1214
#: includes/class/class.LSsession.php:2284
msgid "Level"
@@ -74,10 +90,6 @@ msgstr "L'objet a bien été modifié."
msgid "View"
msgstr "Voir"
-#: import.php:59
-msgid "Import"
-msgstr "Importer"
-
#: create.php:75
msgid "Data entry form"
msgstr "Masque de saisie"
@@ -86,10 +98,6 @@ msgstr "Masque de saisie"
msgid "Object has been added."
msgstr "L'objet a été ajouté."
-#: create.php:120 includes/class/class.LSrelation.php:267
-msgid "New"
-msgstr "Nouveau"
-
#: custom_search_action.php:53
msgid ""
"The custom action %{title} have been successfully execute on this search."
@@ -769,10 +777,6 @@ msgstr ""
msgid "Your new password has been sent to %{mail}. "
msgstr "Votre nouveau mot de passe vous a été envoyé à l'adresse %{mail}."
-#: includes/class/class.LSsession.php:1418
-msgid "Refresh"
-msgstr "Rafraîchir"
-
#: includes/class/class.LSsession.php:1434
msgid "Language"
msgstr "Langue"
diff --git a/public_html/lang/ldapsaisie.pot b/public_html/lang/ldapsaisie.pot
index 2ca5acc3..d6769448 100644
--- a/public_html/lang/ldapsaisie.pot
+++ b/public_html/lang/ldapsaisie.pot
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2019-05-27 18:09+0200\n"
+"POT-Creation-Date: 2019-06-03 14:23+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME \n"
"Language-Team: LANGUAGE \n"
@@ -54,6 +54,22 @@ msgstr ""
msgid "Recursive search"
msgstr ""
+#: view.php:143 create.php:120 includes/class/class.LSrelation.php:267
+msgid "New"
+msgstr ""
+
+#: view.php:149 import.php:59
+msgid "Import"
+msgstr ""
+
+#: view.php:156 includes/class/class.LSsession.php:1418
+msgid "Refresh"
+msgstr ""
+
+#: view.php:161
+msgid "Reset"
+msgstr ""
+
#: select.php:70 includes/class/class.LSsession.php:1214
#: includes/class/class.LSsession.php:2284
msgid "Level"
@@ -71,10 +87,6 @@ msgstr ""
msgid "View"
msgstr ""
-#: import.php:59
-msgid "Import"
-msgstr ""
-
#: create.php:75
msgid "Data entry form"
msgstr ""
@@ -83,10 +95,6 @@ msgstr ""
msgid "Object has been added."
msgstr ""
-#: create.php:120 includes/class/class.LSrelation.php:267
-msgid "New"
-msgstr ""
-
#: custom_search_action.php:53
msgid ""
"The custom action %{title} have been successfully execute on this search."
@@ -667,10 +675,6 @@ msgstr ""
msgid "Your new password has been sent to %{mail}. "
msgstr ""
-#: includes/class/class.LSsession.php:1418
-msgid "Refresh"
-msgstr ""
-
#: includes/class/class.LSsession.php:1434
msgid "Language"
msgstr ""
diff --git a/public_html/templates/default/viewSearch.tpl b/public_html/templates/default/viewSearch.tpl
index 0b451096..4a680047 100644
--- a/public_html/templates/default/viewSearch.tpl
+++ b/public_html/templates/default/viewSearch.tpl
@@ -22,7 +22,7 @@
diff --git a/public_html/view.php b/public_html/view.php
index f9b4a25b..87f23955 100644
--- a/public_html/view.php
+++ b/public_html/view.php
@@ -112,7 +112,7 @@ if(LSsession :: startLSsession()) {
$object = new $LSobject();
LStemplate :: assign('pagetitle',$object -> getLabel());
- $LSsearch = new LSsearch($LSobject,'LSview');
+ $LSsearch = new LSsearch($LSobject, 'LSview', null, (isset($_REQUEST['reset'])));
$LSsearch -> setParam('extraDisplayedColumns',True);
$LSsearch -> setParamsFormPostData();
@@ -140,23 +140,28 @@ if(LSsession :: startLSsession()) {
$LSview_actions=array();
if(LSsession :: canCreate($LSobject)) {
$LSview_actions['create'] = array (
- 'label' => 'New',
+ 'label' => _('New'),
'url' => 'create.php?LSobject='.$LSobject,
'action' => 'create'
);
if ($object -> listValidIOformats()) {
$LSview_actions['import'] = array (
- 'label' => 'Import',
+ 'label' => _('Import'),
'url' => 'import.php?LSobject='.$LSobject,
'action' => 'import'
);
}
}
$LSview_actions['refresh'] = array (
- 'label' => 'Refresh',
+ 'label' => _('Refresh'),
'url' => 'view.php?LSobject='.$LSobject.'&refresh',
'action' => 'refresh'
);
+ $LSview_actions['reset'] = array (
+ 'label' => _('Reset'),
+ 'url' => 'view.php?LSobject='.$LSobject.'&reset',
+ 'action' => 'reset'
+ );
/*$LSview_actions['purge'] = array (
'label' => 'Purge the cache',
'url' => 'view.php?LSobject='.$LSobject.'&LSsearchPurgeSession',