Skip to content

Commit

Permalink
MDL-83325 filepicker: tidy up display of restrictions
Browse files Browse the repository at this point in the history
  • Loading branch information
timhunt committed Oct 1, 2024
1 parent ab291aa commit da31f69
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/form/filemanager.php
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ function toHtml() {
$html .= html_writer::empty_tag('input', array('value' => $draftitemid, 'name' => $elname, 'type' => 'hidden', 'id' => $id));

if (!empty($options->accepted_types) && $options->accepted_types != '*') {
$html .= html_writer::tag('p', get_string('filesofthesetypes', 'form'));
$html .= html_writer::tag('div', get_string('filesofthesetypes', 'form'), ['class' => 'mt-1']);
$util = new \core_form\filetypes_util();
$filetypes = $options->accepted_types;
$filetypedescriptions = $util->describe_file_types($filetypes);
Expand Down
2 changes: 1 addition & 1 deletion lib/form/filepicker.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ function toHtml() {
$html .= '</noscript>';

if (!empty($options->accepted_types) && $options->accepted_types != '*') {
$html .= html_writer::tag('p', get_string('filesofthesetypes', 'form'));
$html .= html_writer::tag('div', get_string('filesofthesetypes', 'form'), ['class' => 'mt-1']);
$util = new \core_form\filetypes_util();
$filetypes = $options->accepted_types;
$filetypedescriptions = $util->describe_file_types($filetypes);
Expand Down
2 changes: 1 addition & 1 deletion lib/templates/filemanager_page_generallayout.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
}
}}
<div id="filemanager-{{{client_id}}}" class="filemanager w-100 fm-loading">
<div class="fp-restrictions">
<div class="fp-restrictions mb-1">
{{{restrictions}}}
<span class="dnduploadnotsupported-message"> - {{#str}}dndnotsupported_insentence{{/str}}{{{helpicon}}}</span>
</div>
Expand Down

0 comments on commit da31f69

Please sign in to comment.