Index: openacs-4/packages/evaluation/www/admin/evaluations/grades-sheet-parse.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/evaluation/www/admin/evaluations/grades-sheet-parse.adp,v diff -u -r1.8 -r1.8.2.1 --- openacs-4/packages/evaluation/www/admin/evaluations/grades-sheet-parse.adp 3 Jul 2015 10:47:36 -0000 1.8 +++ openacs-4/packages/evaluation/www/admin/evaluations/grades-sheet-parse.adp 1 Dec 2016 13:01:22 -0000 1.8.2.1 @@ -1,28 +1,33 @@ -@page_title;literal@ -@context;literal@ + @page_title;literal@ + @context;literal@ -

#evaluation.lt_Confirm_your_evaluati#

+

#evaluation.lt_Confirm_your_evaluati#

- -
- @export_vars;noquote@ - - - -
- - - - - -
#evaluation.Name#@evaluations_gs.party_name@
#evaluation.Grade#@evaluations_gs.grade@ / @max_grade@
#evaluation.CommentsEdit_reason#@evaluations_gs.comment@
#evaluation.Will_the_studens_be#
#evaluation.lt_able_to_see_the_grade#
@evaluations_gs.show_student@
- - -
- -
-
-
-#evaluation.lt_There_is_no_info_# - + +
+ @export_vars;noquote@ + + + + +
+ + +
+ + + + + +
#evaluation.Name#@evaluations_gs.party_name@
#evaluation.Grade#@evaluations_gs.grade@ / @max_grade@
#evaluation.CommentsEdit_reason#@evaluations_gs.comment@
#evaluation.Will_the_studens_be#
#evaluation.lt_able_to_see_the_grade#
@evaluations_gs.show_student@
+ + +
+ +
+
+
+ + #evaluation.lt_There_is_no_info_# + Index: openacs-4/packages/evaluation/www/admin/evaluations/grades-sheet-parse.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/evaluation/www/admin/evaluations/grades-sheet-parse.tcl,v diff -u -r1.16.2.1 -r1.16.2.2 --- openacs-4/packages/evaluation/www/admin/evaluations/grades-sheet-parse.tcl 12 Sep 2015 11:06:04 -0000 1.16.2.1 +++ openacs-4/packages/evaluation/www/admin/evaluations/grades-sheet-parse.tcl 1 Dec 2016 13:01:22 -0000 1.16.2.2 @@ -204,13 +204,18 @@ } } set evaluations_gs:rowcount $counter + + if {$counter > 0} { + template::add_event_listener -id "backbutton" -script {history.go(-1);} + } + set export_vars [export_vars -form { task_id max_grade grades_gs comments_gs show_student_gs item_ids new_p_gs grades_sheet_item_id tmp_filename upload_file }] # writing the file in the file system so we can work with it later flush $file_handler close $file_handler - if {[catch {exec mv $tmp_filename "${tmp_filename}_grades_sheet"} errmsg]} { + if {[catch {file rename -force -- $tmp_filename "${tmp_filename}_grades_sheet"} errmsg]} { ad_return_error "[_ evaluation.lt_Error_while_storing_f]" "[_ evaluation.lt_There_was_a_problem_s]" ad_script_abort }