<p><b>Please check your email for your new password</b></p>
<p>The new password was automatically generated, so you might like to
<a href=\"$a->link\">change it to something easier to remember</a>.</p>';
+$string['path'] = 'Path';
$string['pathnotexists'] = 'Path doesn\'t exist in your server!';
$string['pathslasherror'] = 'Path can\'t end with a slash!!';
$string['paymentinstant'] = 'Use the button below to pay and be enrolled within minutes!';
$string['selectdefault'] = 'Select default';
$string['selectamodule'] = 'Please select an activity module';
$string['selectednowmove'] = '$a files selected for moving. Now go into the destination folder and press \'Move files to here\'';
+$string['selectedfile'] = 'Selected file';
+$string['selectfiles'] = 'Select files';
$string['selectnos'] = 'Select all \'no\'';
$string['selectperiod'] = 'Select period';
$string['senddetails'] = 'Send my details via email';
var sep = document.createElement('SPAN');
sep.innerHTML = ' ▶ ';
if (count==0) {
- sep.innerHTML = 'Path: ';
+ sep.innerHTML = mstr.moodle.path + ': ';
} else {
sep.innerHTML = ' ▶ ';
}
if (!empty($options['maxbytes'])) {
$this->_options['maxbytes'] = get_max_upload_file_size($CFG->maxbytes, $options['maxbytes']);
}
- // XXX: hide element lable
- $elementLabel = '';
parent::HTML_QuickForm_element($elementName, $elementLabel, $attributes);
repository_head_setup();
$PAGE->requires->string_for_js('confirmdeletefile', 'repository');
$PAGE->requires->string_for_js('nopathselected', 'repository');
$PAGE->requires->string_for_js('popupblockeddownload', 'repository');
+ $PAGE->requires->string_for_js('path', 'moodle');
if (empty($draftitemid)) {
// no existing area info provided - let's use fresh new draft area
$mform->addElement('header', 'contentsection', get_string('contentheader', 'resource'));
$mainfile = 'mainfile';
- $options = array('mainfile'=>$mainfile, 'subdirs'=>0, 'maxbytes'=>0, 'maxfiles'=>-1, 'filetypes'=>'*', 'returnvalue'=>'*');
+ $options = array('mainfile'=>$mainfile, 'subdirs'=>0, 'maxbytes'=>0, 'maxfiles'=>-1, 'filetypes'=>'*', 'returnvalue'=>'ref_id');
$mform->addElement('hidden', $mainfile, '', array('id'=>$mainfile.'-id'));
- $mform->addElement('static', '', 'Main file', '<div id="'.$mainfile.'-label"></div>');
- $mform->addElement('filemanager', 'files', get_string('file'), null, $options);
+ $mform->addElement('filemanager', 'files', get_string('selectfiles'), null, $options);
+ $mform->addElement('static', '', get_string('selectedfile'), '<div id="'.$mainfile.'-label"></div>');
//-------------------------------------------------------
$mform->addElement('header', 'optionssection', get_string('optionsheader', 'resource'));
background: #CCC;
}
.fm-breadcrumb {
- margin: 6px 0;
+ margin: 0;
}
.filemanager-container {
padding: 5px;