Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-67541

Set input number min/max in Forum grader

XMLWordPrintable

    • MOODLE_38_STABLE, MOODLE_405_STABLE
    • MOODLE_405_STABLE
    • MDL-67541-main
    • Hide
      1. Create a forum with grading enabled
      2. Set maximum grade to some value
      3. Go to Forum and click 'Grade users'
      4. Inspect the input in browser and make sure it has max and min set. I.e. it element has smth like this 

        min="0" max="70" 

      1. Using arrows make sure you can not set grade below 0 or greater than maxgrade
      Show
      Create a forum with grading enabled Set maximum grade to some value Go to Forum and click 'Grade users' Inspect the input in browser and make sure it has max and min set. I.e. it element has smth like this  min= "0" max= "70" Using arrows make sure you can not set grade below 0 or greater than maxgrade
    • 3
    • Team Alpha - Planning I3-2024

      In the new grading interface for Forums in 3.8, there is a number box (input=number) to enter a grade.

      It has up and down arrows, but there is no client side checking or feedback about allowed values, until you submit a bad value, at which point it will tell you you need to be between 0 and whatever the set max grade is.

      It would make it a lot cleaner if the template /grade/templates/grades/grader/gradingpanel/point.mustache set min and max values, which is supported by most major browsers (https://caniuse.com/#feat=input-number)

            ilyatregubov Ilya Tregubov
            emerrill Eric Merrill
            Kevin Percy Kevin Percy
            Glyn (Mathew) May Glyn (Mathew) May
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            0 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 59 minutes
                1h 59m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.