Add RB.FormView, a class for managing forms and fieldsets.

Review Request #10847 — Created Jan. 21, 2020 and submitted — Latest diff uploaded

Information

Review Board
release-4.0.x

Reviewers

This introduces RB.FormView, which is designed to be used with
.rb-c-form classes, and aids in managing forms. Right now, it's pretty
basic, offering only support for expanding/collapsing
.rb-c-form-fieldset components. Down the road, it'll be a useful place
for adding common form functionality that we're otherwise potentially
re-implementing in several other form implementations.

This is currently being used for the Change Form, to implement the
collapsed fieldset support there.

Unit tests passed.

Manually tested this with Change Form.

Diff Revision 2 (Latest)

orig
1
2

Commits

First Last Summary ID Author
Add RB.FormView, a class for managing forms and fieldsets.
This introduces `RB.FormView`, which is designed to be used with `.rb-c-form` classes, and aids in managing forms. Right now, it's pretty basic, offering only support for expanding/collapsing `.rb-c-form-fieldset` components. Down the road, it'll be a useful place for adding common form functionality that we're otherwise potentially re-implementing in several other form implementations.
aef95126add6a622f7f7008ae606633ee080d1a0 Christian Hammond
reviewboard/staticbundles.py
reviewboard/static/rb/js/admin/views/changeFormPageView.es6.js
reviewboard/static/rb/js/ui/views/formView.es6.js
reviewboard/static/rb/js/ui/views/tests/formViewTests.es6.js
Loading...