add ids to fieldsets in review request details template
Review Request #7721 — Created Oct. 21, 2015 and submitted
Adds id attributes to fieldsets in review request details template. This allows extensions to hide an entire fieldset from the UI only without impacting backend operations, or to style selected fieldsets differently from others. eg. an extension may render a fieldset in a different manner, but store the data in the standard fields. Unregistering the fieldset would break functionality when all that's required UI hiding.
updated template, ensured id attributes where rendered in the generated html.
-
Hey glob,
The fields API allows us to wholesale remove any fieldsets we don't want, I believe - like, I think the following code would remove the "Info" fieldset:
info_fieldset = get_review_request_fieldset("info") unregister_review_request_fieldset(info_fieldset)
Note that you'd want to probably put that fieldset back when the extension shuts down. I think we do something similar with the Testing Done field.
-
Hi,
I'm going to need a lot more detail in the description, sentence casing in the summary, and a detailed description of how you tested this. See https://www.reviewboard.org/docs/codebase/dev/writing-good-descriptions/.
- Description:
-
~ adds ids to fieldsets in review request details template to enable site to hide/style fieldsets with css
~ Adds id attributes to fieldsets in review request details template.
+ + This allows extensions to hide an entire fieldset from the UI only without
+ impacting backend operations, or to style selected fieldsets differently from + others. + + eg. an extension may render a fieldset in a different manner, but store the
+ data in the standard fields. Unregistering the fieldset would break + functionality when all that's required UI hiding. - Testing Done:
-
+ updated template, ensured id attributes where rendered in the generated html.