public function display() { global $OUTPUT; // Extra fields at the top of the page. echo '<div class="topfields clearfix">'; $this->print_field('shortname', get_string('roleshortname', 'role') . ' ' . $OUTPUT->help_icon('roleshortname', 'role'), $this->get_shortname_field('shortname')); $this->print_field('name', get_string('customrolename', 'role') . ' ' . $OUTPUT->help_icon('customrolename', 'role'), $this->get_name_field('name')); $this->print_field('edit-description', get_string('customroledescription', 'role') . ' ' . $OUTPUT->help_icon('customroledescription', 'role'), $this->get_description_field('description')); $this->print_field('menuarchetype', get_string('archetype', 'role') . ' ' . $OUTPUT->help_icon('archetype', 'role'), $this->get_archetype_field('archetype')); $this->print_field('', get_string('maybeassignedin', 'role'), $this->get_assignable_levels_control()); echo "</div>"; $this->print_show_hide_advanced_button(); // Now the permissions table. parent::display(); }
public function display() { // Extra fields at the top of the page. echo '<div class="topfields clearfix">'; $this->print_field('name', get_string('name'), $this->get_name_field('name')); $this->print_field('shortname', get_string('shortname'), $this->get_shortname_field('shortname')); $this->print_field('edit-description', get_string('description'), $this->get_description_field('description')); $this->print_field('menulegacytype', get_string('legacytype', 'role'), $this->get_legacy_type_field('legacytype')); $this->print_field('', get_string('maybeassignedin', 'role'), $this->get_assignable_levels_control()); echo "</div>"; $this->print_show_hide_advanced_button(); // Now the permissions table. parent::display(); }