Add search form see BT#12470

pull/2487/head
jmontoyaa 9 years ago
parent b3151f8b66
commit 1574d378cb
  1. 2
      index.php
  2. 15
      main/session/session_list.php
  3. 2
      tests/behat/behat.yml

@ -168,4 +168,6 @@ if (isset($_GET['firstpage'])) {
api_delete_firstpage_parameter();
}
//var_dump(api_check_password('1AAAAAAAAAAA'));
var_dump(api_check_password(api_generate_password()));
$controller->tpl->display_two_col_template();

@ -317,6 +317,21 @@ if ($list_type == 'complete') {
echo $actions;
if (api_is_platform_admin()) {
echo '<div class="pull-right">';
// Create a search-box
$form = new FormValidator(
'search_simple',
'get',
'',
'',
[],
FormValidator::LAYOUT_INLINE
);
$form->addElement('text', 'keyword');
$form->addButtonSearch(get_lang('Search'));
$form->display();
echo '</div>';
echo '<div class="pull-right">';
echo $sessionFilter->returnForm();
echo '</div>';

@ -1,7 +1,7 @@
default:
extensions:
Behat\MinkExtension:
base_url: http://localhost/
base_url: http://localhost/chamilo_111/
goutte: ~
show_cmd: 'open %s'
selenium2:

Loading…
Cancel
Save