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

Command icon 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

jeffm2001 created an issue. See original summary.

graber’s picture

Issue summary: View changes

graber’s picture

Status: Active » Needs review
jeffm2001’s picture

Status: Needs review » Reviewed & tested by the community

This is a big improvement!

  • graber committed 4b6f9285 on 1.1.x
    #3556547: Reference parameters are now displayed in the table widget.
    
graber’s picture

Status: Reviewed & tested by the community » Fixed

Thanks for rising this and testing, merged!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.