mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-46703 mod_data: limit the width of select element when editing templates
Thanks to Hittesh for the provided solution
This commit is contained in:
parent
e1eb180806
commit
017ae4c78d
@ -63,6 +63,7 @@
|
||||
#page-mod-data-templates .template_heading {
|
||||
text-align:center;
|
||||
}
|
||||
#page-mod-data-templates #availabletags_wrapper {max-width:250px;}
|
||||
|
||||
.dir-rtl .mod-data-default-template .template-field {text-align:left;}
|
||||
.dir-rtl .mod-data-default-template .template-token {text-align:right;}
|
||||
|
@ -234,7 +234,7 @@ if ($mode != 'csstemplate' and $mode != 'jstemplate') {
|
||||
echo $OUTPUT->help_icon('availabletags', 'data');
|
||||
echo '<br />';
|
||||
|
||||
|
||||
echo '<div class="no-overflow" id="availabletags_wrapper">';
|
||||
echo '<select name="fields1[]" id="availabletags" size="12" onclick="insert_field_tags(this)">';
|
||||
|
||||
$fields = $DB->get_records('data_fields', array('dataid'=>$data->id));
|
||||
@ -291,6 +291,7 @@ if ($mode != 'csstemplate' and $mode != 'jstemplate') {
|
||||
}
|
||||
|
||||
echo '</select>';
|
||||
echo '</div>';
|
||||
echo '<br /><br /><br /><br /><input type="submit" name="defaultform" value="'.get_string('resettemplate','data').'" />';
|
||||
echo '<br /><br />';
|
||||
if ($usehtmleditor) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user