when adding multiple grading schemes without refreshing the
page, the information should show up correctly. also, when
editing a scheme, you should not be able to edit, trash, or
add any new schemes (until you've saved or cancelled editing).
i also did some refactoring and split up the TabContainer file
into two new components: GradingStandardContainer and
GradingPeriodContainer.
closes CNVS-18481
test plan:
1. Go to the grading standards page for a course or an account
(/courses/:course_id/grading_standards or
/accounts/:account_id/grading_standards)
2. Click the 'Add grading scheme' button. Verify that the
button is grayed out and disabled after you click it. Also verify
that the 'pencil' and 'trash' icons are not present on the scheme
while you are editing it. Enter a new name for the grading scheme
and change some of the row values, delete a few rows, etc. Then click
'Save'. Verify after clicking 'Save' that the 'Add grading scheme'
button is un-grayed out and re-enabled.
3. Click the 'Add grading scheme' button again. Verify that
the title and data of the _first_ grading scheme you created
(listed below the one you're creating now) is still accurate.
Enter in some custom data for the new scheme and then hit 'Save'.
After hitting save, make sure both schemes show accurate information.
4. Refresh the page and make sure accurate data is still showing
up.
5. Whenever a grading scheme is being edited, verify that clicking
edit or trash icons on other schemes does not do anything. The
icons of other schemes should be disabled when you are editing
a scheme.
6. Whenever a grading scheme is being edited, verify that the
'Add grading scheme' button is grayed out/disabled.
7. Click the 'Add Grading Scheme' button and then, without
clicking 'Save' or 'Cancel', refresh the page. The scheme
that was just added should not be present, since it was
never saved.
Change-Id: I07f662729022a5d2ea4569fcbd8774147b4e2eee
Reviewed-on: https://gerrit.instructure.com/48697
Tested-by: Jenkins
Reviewed-by: Cameron Sutter <csutter@instructure.com>
Product-Review: Spencer Olson <solson@instructure.com>
QA-Review: Amber Taniuchi <amber@instructure.com>