Sha256: 1644c6f913ee620dafef01ec996b9d9d4b63decb2c2d65db710ef9c06fbcc690

Contents?: true

Size: 738 Bytes

Versions: 5

Compression:

Stored size: 738 Bytes

Contents

# frozen_string_literal: true

# Generated via
#  `rails generate hyrax:work_resource <%= class_name %>`
#
# @see https://github.com/samvera/hyrax/wiki/Hyrax-Valkyrie-Usage-Guide#forms
# @see https://github.com/samvera/valkyrie/wiki/ChangeSets-and-Dirty-Tracking
class <%= class_name %>Form < Hyrax::Forms::PcdmObjectForm(<%= class_name %>)
  include Hyrax::FormFields(:basic_metadata)
  include Hyrax::FormFields(:<%= file_name %>)

  # 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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
hyrax-5.0.2 lib/generators/hyrax/work_resource/templates/form.rb.erb
hyrax-5.0.1 lib/generators/hyrax/work_resource/templates/form.rb.erb
hyrax-5.0.0 lib/generators/hyrax/work_resource/templates/form.rb.erb
hyrax-5.0.0.rc3 lib/generators/hyrax/work_resource/templates/form.rb.erb
hyrax-5.0.0.rc2 lib/generators/hyrax/work_resource/templates/form.rb.erb