From 57a9b136c8ba4fb6d1becd4326be8a5552913755 Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Mon, 20 Aug 2012 11:24:46 +0200 Subject: [PATCH] Replacing select for input for the pass percentage see #5330 --- main/exercice/exercise.class.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/main/exercice/exercise.class.php b/main/exercice/exercise.class.php index d3c3813f93..8ebeaf45ea 100644 --- a/main/exercice/exercise.class.php +++ b/main/exercice/exercise.class.php @@ -1051,11 +1051,15 @@ class Exercise { //Pass percentage - $options = array('' => '-'); + /*$options = array('' => '-'); for ($i = 0; $i <= 20 ; $i++) { $options[$i*5] = $i*5; - } + } $form->addElement('select', 'pass_percentage', array(get_lang('PassPercentage'), null, '%'), $options, array('id' => 'pass_percentage', 'class' => 'chzn-select')); + */ + + $form->addElement('text', 'pass_percentage', array(get_lang('PassPercentage'), null, '%'), array('id' => 'pass_percentage')); + $form->addRule('pass_percentage', get_lang('Numeric'), 'numeric'); //$form->addElement('text', 'exerciseAttempts', get_lang('ExerciseAttempts').' : ',array('size'=>'2'));