diff options
author | Antonio Gallo <tonicucoz@gmail.com> | 2012-03-11 15:10:43 +0000 |
---|---|---|
committer | Antonio Gallo <tonicucoz@gmail.com> | 2012-03-11 15:10:43 +0000 |
commit | 6740cd5eb795d11bb6128c1982fa67fd9211739d (patch) | |
tree | 39840c5588484c15bd11cedf7eb16112c80230bf /h-source/Application | |
parent | 8371e1d9f8c1ea129019553bd6b9824eb1609cc6 (diff) |
improved the form to filter using the model name
Diffstat (limited to 'h-source/Application')
-rw-r--r-- | h-source/Application/Controllers/GenericController.php | 2 | ||||
-rw-r--r-- | h-source/Application/Views/Desktop/catalogue.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/h-source/Application/Controllers/GenericController.php b/h-source/Application/Controllers/GenericController.php index b5bbb4c..3a9721a 100644 --- a/h-source/Application/Controllers/GenericController.php +++ b/h-source/Application/Controllers/GenericController.php @@ -502,7 +502,7 @@ class GenericController extends BaseController $data['popupLabel'] = $this->mod->getPopupLabel($this->viewArgs); - $data["search_string_form_value"] = strcmp($this->viewArgs['search_string'],Params::$nullQueryValue) === 0 ? gtext("model name") : $this->viewArgs['search_string']; + $data["search_string_form_value"] = strcmp($this->viewArgs['search_string'],Params::$nullQueryValue) === 0 ? "" : $this->viewArgs['search_string']; //set search_string to undef to clean the model name filter $this->viewArgs['search_string'] = "undef"; diff --git a/h-source/Application/Views/Desktop/catalogue.php b/h-source/Application/Views/Desktop/catalogue.php index 25a79ef..ad00222 100644 --- a/h-source/Application/Views/Desktop/catalogue.php +++ b/h-source/Application/Views/Desktop/catalogue.php @@ -43,7 +43,7 @@ <div class="model_string_search_form"> <form action="<?php echo $this->currPage."/$lang".$clearViewStatus;?>" method="GET"> - <input type="text" value="<?php echo $search_string_form_value;?>" name="search_string"> + <?php echo gtext("model name");?> <input type="text" value="<?php echo $search_string_form_value;?>" name="search_string"> <a href="<?php echo $this->currPage."/$lang".$clearViewStatus;?>"><img src="<?php echo $this->baseUrl."/Public/Img/Crystal/button_cancel.png";?>" /></a> <input type="submit" value="<?php echo gtext('Search');?>" name="submit"> </form> |