Skip to content

Commit

Permalink
MDL-51603 dataformats: Using the long name instead of the short one
Browse files Browse the repository at this point in the history
  • Loading branch information
David Monllao committed Apr 21, 2016
1 parent bc3b5a6 commit fef1114
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
2 changes: 1 addition & 1 deletion lib/outputrenderers.php
Original file line number Diff line number Diff line change
Expand Up @@ -1893,7 +1893,7 @@ public function download_dataformat_selector($label, $base, $name = 'dataformat'
if ($format->is_enabled()) {
$options[] = array(
'value' => $format->name,
'label' => get_string('shortname', $format->component),
'label' => get_string('dataformat', $format->component),
);
}
}
Expand Down
24 changes: 13 additions & 11 deletions lib/templates/dataformat_selector.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,17 @@
* submit
}}
<form method="get" action="{{base}}" class="dataformatselector">
<input type="hidden" name="sesskey" value="{{sesskey}}">
<label for="downloadtype_{{name}}">{{label}}</label>
<select name="{{name}}" id="downloadtype_{{name}}">
{{#options}}
<option value="{{value}}">{{label}}</option>
{{/options}}
</select>
<input type="submit" value="{{submit}}">
{{#params}}
<input type="hidden" name="{{name}}" value="{{value}}" />
{{/params}}
<div class="mdl-align">
<input type="hidden" name="sesskey" value="{{sesskey}}">
<label for="downloadtype_{{name}}">{{label}}</label>
<select name="{{name}}" id="downloadtype_{{name}}">
{{#options}}
<option value="{{value}}">{{label}}</option>
{{/options}}
</select>
<input type="submit" value="{{submit}}">
{{#params}}
<input type="hidden" name="{{name}}" value="{{value}}" />
{{/params}}
</div>
</form>

0 comments on commit fef1114

Please sign in to comment.