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:
Marina Glancy 2014-08-16 13:26:34 +08:00
parent e1eb180806
commit 017ae4c78d
2 changed files with 3 additions and 1 deletions

View File

@ -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;}

View File

@ -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) {