From: skodak Date: Tue, 28 Nov 2006 08:24:45 +0000 (+0000) Subject: Place information before controls on upload forms MDL-7491 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=d83d000ee393fc0ef934573926a3bcfbab9428cb;p=moodle.git Place information before controls on upload forms MDL-7491 --- diff --git a/course/group-edit.html b/course/group-edit.html index 87a7db7234..2c3cd954e2 100644 --- a/course/group-edit.html +++ b/course/group-edit.html @@ -38,13 +38,15 @@ if (!empty($CFG->gdversion) and $maxbytes) { ?> - : + :
( dirroot.'/lib/uploadlib.php'); upload_print_form_fragment(1,array('imagefile'),null,false,null,0,0,false); - helpbutton("picture", get_string("helppicture")); - print_string("maxsize", "", display_size($maxbytes)); if (isset($err["imagefile"])) formerr($err["imagefile"]); ?> diff --git a/mod/glossary/edit.html b/mod/glossary/edit.html index 8fe02ba4ee..921696296c 100644 --- a/mod/glossary/edit.html +++ b/mod/glossary/edit.html @@ -153,14 +153,20 @@ if (isset($errors)) { - :
(
+ :
+ maxbytes, $course->maxbytes))); + echo ')
'; + print_string("optional"); + echo ' '; + helpbutton("attachment", get_string("attachment", "glossary"), "glossary"); + ?>
+ dirroot.'/lib/uploadlib.php'); upload_print_form_fragment(1,array('attachment'),null,false,null,$course->maxbytes,0,false); - helpbutton("attachment", get_string("attachment", "glossary"), "glossary"); - echo ' '; - print_string("maxsize", "", display_size(get_max_upload_file_size($CFG->maxbytes, $course->maxbytes))); ?> diff --git a/mod/glossary/import.html b/mod/glossary/import.html index fc48aba57b..bbd5202088 100644 --- a/mod/glossary/import.html +++ b/mod/glossary/import.html @@ -1,14 +1,18 @@
- + diff --git a/user/edit.html b/user/edit.html index 26a731aec8..685c2870c1 100644 --- a/user/edit.html +++ b/user/edit.html @@ -311,13 +311,18 @@ if (has_capability('moodle/user:update', get_context_instance(CONTEXT_SYSTEM, SI - +
::
+ maxbytes, $course->maxbytes))); + echo ') '; + helpbutton("filetoimport", get_string("filetoimport", "glossary"), "glossary"); + ?> +
dirroot.'/lib/uploadlib.php'); upload_print_form_fragment(1,array('file'),null,false,null,0,0); - helpbutton("filetoimport", get_string("filetoimport", "glossary"), "glossary"); - echo ' '; - print_string("maxsize", "", display_size(get_max_upload_file_size($CFG->maxbytes, $course->maxbytes))); ?>
::
+ +
dirroot.'/lib/uploadlib.php'); upload_print_form_fragment(1,array('imagefile'),null,false,null,0,0,false); - helpbutton("picture", get_string("helppicture")); - print_string("maxsize", "", display_size($maxbytes)); if (isset($err["imagefile"])) formerr($err["imagefile"]); ?>