MDL-51603 dataformats: Using the long name instead of the short one

This commit is contained in:
David Monllao 2016-04-21 14:48:01 +08:00
parent bc3b5a6a2f
commit fef111472c
2 changed files with 14 additions and 12 deletions

View file

@ -1893,7 +1893,7 @@ class core_renderer extends renderer_base {
if ($format->is_enabled()) { if ($format->is_enabled()) {
$options[] = array( $options[] = array(
'value' => $format->name, 'value' => $format->name,
'label' => get_string('shortname', $format->component), 'label' => get_string('dataformat', $format->component),
); );
} }
} }

View file

@ -30,6 +30,7 @@
* submit * submit
}} }}
<form method="get" action="{{base}}" class="dataformatselector"> <form method="get" action="{{base}}" class="dataformatselector">
<div class="mdl-align">
<input type="hidden" name="sesskey" value="{{sesskey}}"> <input type="hidden" name="sesskey" value="{{sesskey}}">
<label for="downloadtype_{{name}}">{{label}}</label> <label for="downloadtype_{{name}}">{{label}}</label>
<select name="{{name}}" id="downloadtype_{{name}}"> <select name="{{name}}" id="downloadtype_{{name}}">
@ -41,4 +42,5 @@
{{#params}} {{#params}}
<input type="hidden" name="{{name}}" value="{{value}}" /> <input type="hidden" name="{{name}}" value="{{value}}" />
{{/params}} {{/params}}
</div>
</form> </form>