Skip to content

Commit

Permalink
MDL-56677 core_cohort: fix style issues on cohort search fields
Browse files Browse the repository at this point in the history
  • Loading branch information
lameze committed Nov 2, 2016
1 parent 93dfcf3 commit 4bd9a67
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions cohort/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,17 @@
}

// Add search form.
$search = html_writer::start_tag('form', array('id'=>'searchcohortquery', 'method'=>'get'));
$search .= html_writer::start_tag('div');
$search .= html_writer::label(get_string('searchcohort', 'cohort'), 'cohort_search_q'); // No : in form labels!
$search .= html_writer::empty_tag('input', array('id'=>'cohort_search_q', 'type'=>'text', 'name'=>'search', 'value'=>$searchquery));
$search .= html_writer::empty_tag('input', array('type'=>'submit', 'value'=>get_string('search', 'cohort')));
$search = html_writer::start_tag('form', array('id'=>'searchcohortquery', 'method'=>'get', 'class' => 'form-inline'));
$search .= html_writer::start_div('m-b-1');
$search .= html_writer::label(get_string('searchcohort', 'cohort'), 'cohort_search_q', true,
array('class' => 'm-r-1')); // No : in form labels!
$search .= html_writer::empty_tag('input', array('id' => 'cohort_search_q', 'type' => 'text', 'name' => 'search',
'value' => $searchquery, 'class' => 'form-control m-r-1'));
$search .= html_writer::empty_tag('input', array('type' => 'submit', 'value' => get_string('search', 'cohort'),
'class' => 'btn btn-secondary'));
$search .= html_writer::empty_tag('input', array('type'=>'hidden', 'name'=>'contextid', 'value'=>$contextid));
$search .= html_writer::empty_tag('input', array('type'=>'hidden', 'name'=>'showall', 'value'=>$showall));
$search .= html_writer::end_tag('div');
$search .= html_writer::end_div();
$search .= html_writer::end_tag('form');
echo $search;

Expand Down

0 comments on commit 4bd9a67

Please sign in to comment.