Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

MDL-35615 Course section: fixed alignment for userdefaultname checkbo…

…x to be inline with section name text input
  • Loading branch information...
commit 31946300e9f96109cdf3a354d05f8021356c1fe1 1 parent 215c189
kordan kordan authored rwijaya committed

Showing 1 changed file with 6 additions and 3 deletions. Show diff stats Hide diff stats

  1. +6 3 course/editsection_form.php
9 course/editsection_form.php
@@ -12,10 +12,13 @@ function definition() {
12 12
13 13 $mform = $this->_form;
14 14 $course = $this->_customdata['course'];
15   - $mform->addElement('checkbox', 'usedefaultname', get_string('sectionusedefaultname'));
16   - $mform->setDefault('usedefaultname', true);
17 15
18   - $mform->addElement('text', 'name', get_string('sectionname'), array('size'=>'30'));
  16 + $elementgroup = array();
  17 + $elementgroup[] = $mform->createElement('text', 'name', '', array('size' => '30'));
  18 + $elementgroup[] = $mform->createElement('checkbox', 'usedefaultname', '', get_string('sectionusedefaultname'));
  19 + $mform->addGroup($elementgroup, 'name_group', get_string('sectionname'), ' ', false);
  20 +
  21 + $mform->setDefault('usedefaultname', true);
19 22 $mform->setType('name', PARAM_TEXT);
20 23 $mform->disabledIf('name','usedefaultname','checked');
21 24

0 comments on commit 3194630

Please sign in to comment.
Something went wrong with that request. Please try again.