emory-libraries/dlp-selfdeposit

View on GitHub
app/forms/monograph_form.rb

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
# frozen_string_literal: true

# Generated via
#  `rails generate hyrax:work_resource Monograph`
#
# @see https://github.com/samvera/hyrax/wiki/Hyrax-Valkyrie-Usage-Guide#forms
# @see https://github.com/samvera/valkyrie/wiki/ChangeSets-and-Dirty-Tracking
class MonographForm < Hyrax::Forms::ResourceForm(Monograph)
  include Hyrax::FormFields(:basic_metadata)
  include Hyrax::FormFields(:monograph)

  # Define custom form fields using the Valkyrie::ChangeSet interface
  #
  # property :my_custom_form_field

  # if you want a field in the form, but it doesn't have a directly corresponding
  # model attribute, make it virtual
  #
  # property :user_input_not_destined_for_the_model, virtual: true
end