chamilo-lms icon indicating copy to clipboard operation
chamilo-lms copied to clipboard

Annotation Question Enhancement

Open aelalfey opened this issue 5 years ago • 1 comments

Dear All " @ywarnier "

Inside "Tests" - "Annotation" Question type:

It would be great to add the ability to undo "one step backward", and by clicking more than once, it will keep clearing all student "edits - input" till it is all cleared, and redo student entry or add "clear all annotation" button be able to remove all student input/edits.

In our example for younger ages, student highlighted one answer right and the other one is wrong and he/she was unable to edit/undo his/her input because there is no way to do it.

ann1

Thank you in advace

aelalfey avatar Aug 24 '20 11:08 aelalfey

(already done in 1.11)

ywarnier avatar Jun 05 '25 15:06 ywarnier

This could be pushed to post-beta if we are short in time for the beta, but for now I'm leaving it here considering it has already been done in 1.11 and it should be easy to implement in master.

ywarnier avatar Aug 19 '25 14:08 ywarnier

It is improved with this commit https://github.com/chamilo/chamilo-lms/pull/6636/commits/0836ad131425c7f384918b36d46d22e7d4987532

  • Restored image load + render-onload so the background always shows.
  • Kept hidden choice[]/hotspot[] syncing; removed duplicates; cleanup on undo/redo/clear.
  • Replaced raw inputs with Tailwind “chips” (icon + label + edit); prompt edits live-update SVG and hidden fields.
  • Added Tailwind Undo/Redo/Clear with proper disabled states.
  • Introduced a lightweight T() i18n shim and wired labels/tooltips to it.
  • Preserved original draw/text modes and interaction behavior.

christianbeeznest avatar Aug 27 '25 19:08 christianbeeznest

As a teacher, I cannot see the image in the question preview

Image

As a teacher, I can try the question and it works well.

Image

As a student, I don't see the image nor the text on the buttons (I'm in a course in French, in case that blocks some JS)

Image

In the HTML code, I cannot see anything in the edit canvas

Image

ywarnier avatar Sep 04 '25 10:09 ywarnier

As a student, I see in my FF console that it tries to get to https://testing25.beeznest.com/r/quiz/questions/463d1a5a-9918-430d-8386-5fdcc63757eb/view?filter=hotspot_question but receives a 403 : Unauthorised view - access to resource forbidden

ywarnier avatar Sep 04 '25 10:09 ywarnier

Fixed with this commit https://github.com/chamilo/chamilo-lms/pull/6723/commits/9e32007042f15d3d169acea4aa2150970b15439d

Thanks for confirmation

christianbeeznest avatar Sep 09 '25 15:09 christianbeeznest

Yes, fixed! Thanks.

ywarnier avatar Sep 09 '25 16:09 ywarnier