Module: Hyrax::WorkFormHelper
- Included in:
- HyraxHelperBehavior
- Defined in:
- app/helpers/hyrax/work_form_helper.rb
Instance Method Summary collapse
-
#form_progress_sections_for ⇒ Array<String>
This helper allows downstream applications and engines to add additional sections to be rendered after the visibility section in the Save Work panel on the work form.
-
#form_tabs_for(form:) ⇒ Array<String>
This helper allows downstream applications and engines to add/remove/reorder the tabs to be rendered on the work form.
Instance Method Details
#form_progress_sections_for ⇒ Array<String>
This helper allows downstream applications and engines to add additional sections to be rendered after the visibility section in the Save Work panel on the work form.
44 45 46 |
# File 'app/helpers/hyrax/work_form_helper.rb', line 44 def form_progress_sections_for(*) [] end |
#form_tabs_for(form:) ⇒ Array<String>
TODO:
The share tab isn’t included because it wasn’t in guts4form. guts4form should be cleaned up so share is treated the same as other tabs and can be included below.
This helper allows downstream applications and engines to add/remove/reorder the tabs to be rendered on the work form.
21 22 23 24 25 26 27 |
# File 'app/helpers/hyrax/work_form_helper.rb', line 21 def form_tabs_for(form:) if form.instance_of? Hyrax::Forms::BatchUploadForm %w[files metadata relationships] else %w[metadata files relationships] end end |