pull/2818/head
Alex Aragón 6 years ago
commit ceb69e369e
  1. 2
      main/exercise/question_pool.php
  2. 7
      main/inc/lib/display.lib.php
  3. 2
      main/session/about.php

@ -414,7 +414,7 @@ $select_answer_html = Display::select(
);
echo Display::form_row(get_lang('AnswerType'), $select_answer_html);
$button = '<button class="save" type="submit" name="name" value="'.get_lang('Filter').'">'.get_lang('Filter').'</button>';
$button = '<button class="btn btn-primary save" type="submit" name="name" value="'.get_lang('Filter').'">'.get_lang('Filter').'</button>';
echo Display::form_row('', $button);
echo "<input type='hidden' id='course_id_changed' name='course_id_changed' value='0' />";
echo "<input type='hidden' id='exercise_id_changed' name='exercise_id_changed' value='0' />";

@ -1075,6 +1075,7 @@ class Display
$html = '';
$extra = '';
$default_id = 'id="'.$name.'" ';
$extra_attributes = array_merge(['class' => 'form-control'], $extra_attributes);
foreach ($extra_attributes as $key => $parameter) {
if ($key == 'id') {
$default_id = '';
@ -1285,10 +1286,10 @@ class Display
*/
public static function form_row($label, $form_item)
{
$label = self::span($label, ['class' => 'control-label']);
$form_item = self::div($form_item, ['class' => 'controls']);
$label = self::tag('label', $label, ['class' => 'col-sm-2 control-label']);
$form_item = self::div($form_item, ['class' => 'col-sm-10']);
return self::div($label.$form_item, ['class' => 'control-group']);
return self::div($label.$form_item, ['class' => 'form-group']);
}
/**

@ -230,7 +230,7 @@ $redirectToSession = $coursesCount == 1 && $redirectToSession
$template->assign('redirect_to_session', $redirectToSession);
$template->assign('courses', $courses);
$essence = Essence\Essence::instance();
$essence = new Essence\Essence();
$template->assign('essence', $essence);
$template->assign(
'session_extra_fields',

Loading…
Cancel
Save