MDL-29766 Add drag and drop upload to filemanager / filepicker elements
[moodle.git] / lib / outputrenderers.php
index 7288f57..a3dd170 100644 (file)
@@ -1902,6 +1902,7 @@ class core_renderer extends renderer_base {
         $strsaved = get_string('filesaved', 'repository');
         $straddfile = get_string('openpicker', 'repository');
         $strloading  = get_string('loading', 'repository');
+        $strdndenabled = get_string('dndenabled_single', 'moodle');
         $icon_progress = $OUTPUT->pix_icon('i/loading_small', $strloading).'';
 
         $currentfile = $options->currentfile;
@@ -1935,7 +1936,9 @@ $icon_progress
 EOD;
         if ($options->env != 'url') {
             $html .= <<<EOD
-    <div id="file_info_{$client_id}" class="mdl-left filepicker-filelist">$currentfile</div>
+    <div id="file_info_{$client_id}" class="mdl-left filepicker-filelist">
+    $currentfile<span id="dndenabled-{$client_id}" style="display: none"> - $strdndenabled </span>
+    </div>
 EOD;
         }
         $html .= '</div>';