Index: lams_tool_sbmt/conf/language/lams/ApplicationResources.properties =================================================================== diff -u -r8878abdf995d85e382ff0eb22a4118c413cd11cb -r07ace0e41d113321756cbe1d75ab04d8c9cb5841 --- lams_tool_sbmt/conf/language/lams/ApplicationResources.properties (.../ApplicationResources.properties) (revision 8878abdf995d85e382ff0eb22a4118c413cd11cb) +++ lams_tool_sbmt/conf/language/lams/ApplicationResources.properties (.../ApplicationResources.properties) (revision 07ace0e41d113321756cbe1d75ab04d8c9cb5841) @@ -39,7 +39,6 @@ label.learner.notAvailable =Not available label.learner.noUpload =No files have been uploaded yet. label.learner.uploadMessage =Uploaded file must not be executable and not exceed size of {0} -errors.maxfilesize =Uploaded file exceeded maximum size: {0} learner.finish.without.upload =No files have been uploaded yet. Files can not be uploaded once you choose OK. label.monitoring.heading =Monitoring label.monitoring.heading.userlist =Summary @@ -101,7 +100,7 @@ messsage.learner.finish.confirm =Are you going to finish submission? label.edit =Edit message.no.reflection.available =No Notebook available -error.attachment.executable =The uploaded file is executable, please zip it before uploading. +error.attachment.executable =The uploaded file can not be an executable message.alertContentEdit =Warning: One of more learners have accessed this activity. Changing this content will result in learners getting different information. message.warnLockOnFinish =Note: After you click on "Next Activity" and you come back to this Submit Files, you won't be able to continue adding files. message.activityLocked =The instructor has set this activity not to allow submissions after you have finished it. As you are returning to this activity, you are able to see your files but not allowed to add more. @@ -157,6 +156,6 @@ label.search =Search... errors.required ={0} is required. errors.maxfilesize =Uploaded file exceeded maximum size: {0} +label.add=Add - -#======= End labels: Exported 150 labels for en AU ===== +#======= End labels: Exported 149 labels for en AU ===== Index: lams_tool_sbmt/conf/language/lams/ApplicationResources_en_AU.properties =================================================================== diff -u -r8878abdf995d85e382ff0eb22a4118c413cd11cb -r07ace0e41d113321756cbe1d75ab04d8c9cb5841 --- lams_tool_sbmt/conf/language/lams/ApplicationResources_en_AU.properties (.../ApplicationResources_en_AU.properties) (revision 8878abdf995d85e382ff0eb22a4118c413cd11cb) +++ lams_tool_sbmt/conf/language/lams/ApplicationResources_en_AU.properties (.../ApplicationResources_en_AU.properties) (revision 07ace0e41d113321756cbe1d75ab04d8c9cb5841) @@ -38,7 +38,7 @@ label.learner.dateMarksReleased =Date marks released label.learner.notAvailable =Not available label.learner.noUpload =No files have been uploaded yet. -label.learner.uploadMessage =Only one file can be uploaded at a time - Maximum file size is 1.0 MB +label.learner.uploadMessage =Uploaded file must not be executable and not exceed size of {0} learner.finish.without.upload =No files have been uploaded yet. Files can not be uploaded once you choose OK. label.monitoring.heading =Monitoring label.monitoring.heading.userlist =Summary @@ -100,7 +100,7 @@ messsage.learner.finish.confirm =Are you going to finish submission? label.edit =Edit message.no.reflection.available =No Notebook available -error.attachment.executable =The uploaded file is executable, please zip it before uploading. +error.attachment.executable =The uploaded file can not be an executable message.alertContentEdit =Warning: One of more learners have accessed this activity. Changing this content will result in learners getting different information. message.warnLockOnFinish =Note: After you click on "Next Activity" and you come back to this Submit Files, you won't be able to continue adding files. message.activityLocked =The instructor has set this activity not to allow submissions after you have finished it. As you are returning to this activity, you are able to see your files but not allowed to add more. @@ -156,6 +156,6 @@ label.search =Search... errors.required ={0} is required. errors.maxfilesize =Uploaded file exceeded maximum size: {0} +label.add=Add - -#======= End labels: Exported 150 labels for en AU ===== +#======= End labels: Exported 149 labels for en AU ===== Index: lams_tool_sbmt/web/WEB-INF/tags/AuthoringButton.tag =================================================================== diff -u -rb5ab72c783a98abeb08431bafb067ad4b9edf1df -r07ace0e41d113321756cbe1d75ab04d8c9cb5841 --- lams_tool_sbmt/web/WEB-INF/tags/AuthoringButton.tag (.../AuthoringButton.tag) (revision b5ab72c783a98abeb08431bafb067ad4b9edf1df) +++ lams_tool_sbmt/web/WEB-INF/tags/AuthoringButton.tag (.../AuthoringButton.tag) (revision 07ace0e41d113321756cbe1d75ab04d8c9cb5841) @@ -123,7 +123,7 @@ }
- + Index: lams_tool_sbmt/web/WEB-INF/tags/FileUpload.tag =================================================================== diff -u --- lams_tool_sbmt/web/WEB-INF/tags/FileUpload.tag (revision 0) +++ lams_tool_sbmt/web/WEB-INF/tags/FileUpload.tag (revision 07ace0e41d113321756cbe1d75ab04d8c9cb5841) @@ -0,0 +1,84 @@ +<%@ taglib uri="tags-core" prefix="c"%> +<%@ taglib uri="tags-lams" prefix="lams"%> +<%@ taglib uri="tags-function" prefix="fn" %> +<%@ taglib uri="tags-fmt" prefix="fmt" %> + +<%-- Usually fileFieldname and fileFieldId are the same, but DACO needs them to be different. + If they can be the same, set fileFieldname and fileFieldId will be set to the same. + If you need them different, then define both. + If you define neither, fileFieldname = fileFieldId = "fileSelector" --%> +<%@ attribute name="fileFieldname" required="false" rtexprvalue="true"%> +<%@ attribute name="fileFieldId" required="false" rtexprvalue="true"%> + +<%@ attribute name="fileInputNameFieldname" required="false" rtexprvalue="true"%> +<%@ attribute name="fileInputMessageKey" required="false" rtexprvalue="true"%> + +<%-- Set uploadInfoMessageKey to '-' to NOT show the "not exe and max file size" type message. Leave it blank for the default key label.upload.info --%> +<%@ attribute name="uploadInfoMessageKey" required="false" rtexprvalue="true"%> +<%@ attribute name="maxFileSize" required="true" rtexprvalue="true"%> +<%@ attribute name="tabindex" required="false" rtexprvalue="true"%> + +<%-- Only set if you have more than one file field on the screen (such as DACO) --%> +<%@ attribute name="errorMsgDiv" required="false" rtexprvalue="true"%> +<%@ attribute name="fileButtonBrowse" required="false" rtexprvalue="true"%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ <%-- font-size:inherit needed for Share Resources authoring or the button is too small --%> + + + + +
+ +

${maxFileSize}

+
+ + + + Index: lams_tool_sbmt/web/WEB-INF/tags/WaitingSpinner.tag =================================================================== diff -u --- lams_tool_sbmt/web/WEB-INF/tags/WaitingSpinner.tag (revision 0) +++ lams_tool_sbmt/web/WEB-INF/tags/WaitingSpinner.tag (revision 07ace0e41d113321756cbe1d75ab04d8c9cb5841) @@ -0,0 +1,17 @@ +<%@ taglib uri="tags-core" prefix="c"%> + +<%@ attribute name="id" required="false" rtexprvalue="true"%> +<%@ attribute name="showInline" required="false" rtexprvalue="true"%> + + + id="${id}" + + + + + + + + + + \ No newline at end of file Index: lams_tool_sbmt/web/WEB-INF/tlds/lams/lams.tld =================================================================== diff -u -r1f99d03199a3995cfffe0cb1536c08f0220e88b0 -r07ace0e41d113321756cbe1d75ab04d8c9cb5841 --- lams_tool_sbmt/web/WEB-INF/tlds/lams/lams.tld (.../lams.tld) (revision 1f99d03199a3995cfffe0cb1536c08f0220e88b0) +++ lams_tool_sbmt/web/WEB-INF/tlds/lams/lams.tld (.../lams.tld) (revision 07ace0e41d113321756cbe1d75ab04d8c9cb5841) @@ -529,5 +529,13 @@ CommentsAuthor /WEB-INF/tags/CommentsAuthor.tag + + FileUpload + /WEB-INF/tags/FileUpload.tag + + + WaitingSpinner + /WEB-INF/tags/WaitingSpinner.tag + Index: lams_tool_sbmt/web/learner/sbmtlearner.jsp =================================================================== diff -u -rc594c716c5d793a4a86c95161a6b3be7ebd70af7 -r07ace0e41d113321756cbe1d75ab04d8c9cb5841 --- lams_tool_sbmt/web/learner/sbmtlearner.jsp (.../sbmtlearner.jsp) (revision c594c716c5d793a4a86c95161a6b3be7ebd70af7) +++ lams_tool_sbmt/web/learner/sbmtlearner.jsp (.../sbmtlearner.jsp) (revision 07ace0e41d113321756cbe1d75ab04d8c9cb5841) @@ -1,11 +1,18 @@ <%@include file="/common/taglibs.jsp"%> +<%@ page import="org.lamsfoundation.lams.util.Configuration" %> +<%@ page import="org.lamsfoundation.lams.util.ConfigurationKeys" %> +<%@ page import="org.lamsfoundation.lams.util.FileValidatorUtil" %> +<%=Configuration.get(ConfigurationKeys.UPLOAD_FILE_MAX_SIZE)%> +<%=FileValidatorUtil.formatSize(Configuration.getAsInt(ConfigurationKeys.UPLOAD_FILE_MAX_SIZE))%> +<%=Configuration.get(ConfigurationKeys.EXE_EXTENSIONS)%> <fmt:message key="tool.display.name" /> <%@ include file="/common/header.jsp"%> + @@ -216,7 +261,7 @@ - + @@ -231,31 +276,28 @@
- -

- - ${sessionMap.uploadMaxFileSize} - -

+
- -

*

+ +
+

*

+ + Index: lams_tool_sbmt/web/monitoring/mark/updatemark.jsp =================================================================== diff -u -raeba69e88ab1e8231f91f2b5908dda5edf03f84f -r07ace0e41d113321756cbe1d75ab04d8c9cb5841 --- lams_tool_sbmt/web/monitoring/mark/updatemark.jsp (.../updatemark.jsp) (revision aeba69e88ab1e8231f91f2b5908dda5edf03f84f) +++ lams_tool_sbmt/web/monitoring/mark/updatemark.jsp (.../updatemark.jsp) (revision 07ace0e41d113321756cbe1d75ab04d8c9cb5841) @@ -1,6 +1,12 @@ - <%@include file="/common/taglibs.jsp"%> +<%@ page import="org.lamsfoundation.lams.util.Configuration" %> +<%@ page import="org.lamsfoundation.lams.util.ConfigurationKeys" %> +<%@ page import="org.lamsfoundation.lams.util.FileValidatorUtil" %> +<%=Configuration.get(ConfigurationKeys.UPLOAD_FILE_LARGE_MAX_SIZE)%> +<%=FileValidatorUtil.formatSize(Configuration.getAsInt(ConfigurationKeys.UPLOAD_FILE_LARGE_MAX_SIZE))%> +<%=Configuration.get(ConfigurationKeys.EXE_EXTENSIONS)%> + @@ -13,10 +19,10 @@ <fmt:message key="activity.title" /> - + - + @@ -35,7 +58,7 @@ - + @@ -69,7 +92,8 @@
- +
@@ -96,11 +120,9 @@ -
- - : - - +
+
@@ -113,6 +135,8 @@ toolbarSet="DefaultMonitor">
+ +
@@ -128,9 +152,9 @@ - +
Index: lams_tool_sbmt/web/monitoring/parts/summary.jsp =================================================================== diff -u -rc6ad8493ef2064430e8783b28258cc9f223a3844 -r07ace0e41d113321756cbe1d75ab04d8c9cb5841 --- lams_tool_sbmt/web/monitoring/parts/summary.jsp (.../summary.jsp) (revision c6ad8493ef2064430e8783b28258cc9f223a3844) +++ lams_tool_sbmt/web/monitoring/parts/summary.jsp (.../summary.jsp) (revision 07ace0e41d113321756cbe1d75ab04d8c9cb5841) @@ -153,7 +153,7 @@ - +