[expr {$max_items_msg ne "" ? "$max_items_msg" : ""}]
- $nrQuestions [expr {$nrQuestions == 1 ? "#xowf.question#" : "#xowf.questions#"}],
+ $nrQuestions [expr {$nrQuestions == 1 ? "#xowf.question#" : "#xowf.questions#"}]$question_hint_html,
$total_minutes #xowf.Minutes#, $total_points #xowf.Points#
+ [expr {$total_minutes <= 1 ? "#xowf.Countdown_timer_is_not_displayed#
" : ""}]
[expr {$autograde ? "#xowf.exam_review_possible#" : "#xowf.exam_review_not_possible#"}]
[expr {$randomizationOk ? "#xowf.randomization_for_exam_ok#" : "#xowf.randomization_for_exam_not_ok#"}]
[expr {$allow_paste ? "#xowf.Cut_and_paste_allowed#" : "#xowf.Cut_and_paste_not_allowed#"}]
@@ -7103,7 +7123,7 @@
set total 0
foreach title_info $title_infos {
if {[dict exists $title_info $property]} {
- set value [dict get $title_info $property]
+ set value [dict get $title_info $property]
if {$value eq ""} {
ns_log notice "missing property '$property' in '$title_info'"
set value 0
@@ -7151,6 +7171,29 @@
#----------------------------------------------------------------------
# Class: Question_manager
+ # Method: questions_without_minutes
+ #----------------------------------------------------------------------
+ :public method questions_without_minutes {{-max_items:integer,0..1 ""} form_info} {
+ #
+ # Compute the number of questions without provided time
+ #
+ set number 0
+ foreach title_info [:title_infos -max_items $max_items $form_info] {
+ if {[dict exists $title_info minutes]} {
+ set value [dict get $title_info minutes]
+ if {$value eq ""} {
+ set value 0
+ }
+ if {$value == 0} {
+ incr number
+ }
+ }
+ }
+ return $number
+ }
+
+ #----------------------------------------------------------------------
+ # Class: Question_manager
# Method: total_minutes_for_exam
#----------------------------------------------------------------------
:public method total_minutes_for_exam {-manager:object} {