Sha256: 4bc6c16b403d93ec296ed2b1885f3d6f14c51aeb160523bf96b71051dfea40ff

Contents?: true

Size: 736 Bytes

Versions: 20

Compression:

Stored size: 736 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::ResourceForm(<%= 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

20 entries across 20 versions & 1 rubygems

Version Path
hyrax-5.0.0.rc1 lib/generators/hyrax/work_resource/templates/form.rb.erb
hyrax-3.6.0 lib/generators/hyrax/work_resource/templates/form.rb.erb
hyrax-4.0.0 lib/generators/hyrax/work_resource/templates/form.rb.erb
hyrax-4.0.0.rc3 lib/generators/hyrax/work_resource/templates/form.rb.erb
hyrax-4.0.0.rc2 lib/generators/hyrax/work_resource/templates/form.rb.erb
hyrax-4.0.0.rc1 lib/generators/hyrax/work_resource/templates/form.rb.erb
hyrax-3.5.0 lib/generators/hyrax/work_resource/templates/form.rb.erb
hyrax-4.0.0.beta2 lib/generators/hyrax/work_resource/templates/form.rb.erb
hyrax-3.4.2 lib/generators/hyrax/work_resource/templates/form.rb.erb
hyrax-4.0.0.beta1 lib/generators/hyrax/work_resource/templates/form.rb.erb
hyrax-3.4.1 lib/generators/hyrax/work_resource/templates/form.rb.erb
hyrax-3.4.0 lib/generators/hyrax/work_resource/templates/form.rb.erb
hyrax-3.3.0 lib/generators/hyrax/work_resource/templates/form.rb.erb
hyrax-3.2.0 lib/generators/hyrax/work_resource/templates/form.rb.erb
hyrax-3.1.0 lib/generators/hyrax/work_resource/templates/form.rb.erb
hyrax-3.0.2 lib/generators/hyrax/work_resource/templates/form.rb.erb
hyrax-3.0.1 lib/generators/hyrax/work_resource/templates/form.rb.erb
hyrax-3.0.0 lib/generators/hyrax/work_resource/templates/form.rb.erb
hyrax-3.0.0.pre.rc4 lib/generators/hyrax/work_resource/templates/form.rb.erb
hyrax-3.0.0.pre.rc3 lib/generators/hyrax/work_resource/templates/form.rb.erb