mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-18 06:23:48 +01:00
Add reset search button
This commit is contained in:
parent
6ddcca037d
commit
46a8cfb51d
6 changed files with 45 additions and 32 deletions
BIN
public_html/images/default/reset.png
Normal file
BIN
public_html/images/default/reset.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 795 B |
Binary file not shown.
|
@ -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 <brenard@zionetrix.net>\n"
|
||||
"Language-Team: LdapSaisie <ldapsaisie-users@lists.labs.libre-entreprise."
|
||||
"org>\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"
|
||||
|
|
|
@ -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 <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\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 ""
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
<ul class='LSview-actions'>
|
||||
{foreach from=$LSview_actions item=item}
|
||||
{if is_array($item)}
|
||||
<li class='LSview-actions'><a href='{$item.url}' class='LSview-actions'><img src='{img name=$item.action}' alt='{tr msg=$label}' title='{tr msg=$label}' /> {tr msg=$item.label}</a></li>
|
||||
<li class='LSview-actions'><a href='{$item.url}' class='LSview-actions'><img src='{img name=$item.action}' alt='{$item.label|escape:"htmlall"}' title='{$item.label|escape:"htmlall"}' /> {$item.label|escape:"htmlall"}</a></li>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</ul>
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue