UI changes.

1.10.x
Julio Montoya 10 years ago
parent a36aeeb736
commit 073bb9a352
  1. 2
      main/create_course/add_course.php
  2. 22
      main/inc/lib/pear/HTML/QuickForm/advanced_settings.php

@ -156,7 +156,7 @@ $obj->fill_grade_model_select_in_form($form);
$form->addElement('html','</div>'); $form->addElement('html','</div>');
// Submit button. // Submit button.
$form->addElement('button', 'submit', $course_validation_feature ? get_lang('CreateThisCourseRequest') : get_lang('CreateCourseArea'), 'class="add"'); $form->addButtonCreate($course_validation_feature ? get_lang('CreateThisCourseRequest') : get_lang('CreateCourseArea'));
// The progress bar of this form. // The progress bar of this form.
$form->add_progress_bar(); $form->add_progress_bar();

@ -28,7 +28,7 @@ class HTML_QuickForm_advanced_settings extends HTML_QuickForm_static
* @access public * @access public
* @return void * @return void
*/ */
function HTML_QuickForm_advanced_settings($text = null) public function HTML_QuickForm_advanced_settings($text = null)
{ {
$this->HTML_QuickForm_static(null, null, $text); $this->HTML_QuickForm_static(null, null, $text);
$this->_type = 'html'; $this->_type = 'html';
@ -44,17 +44,19 @@ class HTML_QuickForm_advanced_settings extends HTML_QuickForm_static
function accept(&$renderer, $required=false, $error=null) function accept(&$renderer, $required=false, $error=null)
{ {
$renderer->renderHtml($this); $renderer->renderHtml($this);
} // end func accept }
function toHtml() { public function toHtml()
return '<div class="control-group "> {
<label class="control-label"></label> return '<div class="form-group ">
<div class="controls"> <label class="control-label col-sm-2"></label>
<div class="col-sm-10">
<div class="form-control-static">
'.HTML_QuickForm_static::toHtml().' '.HTML_QuickForm_static::toHtml().'
</div> </div>
</div>
</div> </div>
'; ';
} //end func toHtml }
} //end class HTML_QuickForm_html }

Loading…
Cancel
Save