Problem/Motivation
When editing a course, you can see the mandatory status and required score for individual lessons by clicking the Modify Parameters button, but you can't see those values at a glance for all lessons in the course. Similarly, when editing a lesson, you can only view the max points setting one at a time.
Steps to reproduce
Proposed resolution
Add mandatory, required score, and max points to the tables in the respective entity reference widgets.
Tech notes
Drupal\lms\Plugin\Field\FieldWidget\LMSReferenceTable::formElement():
Currently we have
'parameters' => [
'#type' => 'hidden',
'#default_value' => $reference['parameters'],
'#attributes' => ['data-lms-selector' => $parameters_selector],
],
Where the value gets replaced from an AJAX callback. It'll be easy to add those parameters visually and update accordingly, the challenge here may be fitting them in the table somehow.
User interface changes
Issue fork lms-3556547
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
graber commentedComment #4
graber commentedComment #5
jeffm2001 commentedThis is a big improvement!
Comment #7
graber commentedThanks for rising this and testing, merged!