Sha256: b37b7d70b3b94de82d443e478347e04b2a15d499949296b09100ece6637f6c34
Contents?: true
Size: 794 Bytes
Versions: 1
Compression:
Stored size: 794 Bytes
Contents
module Hyrax module Forms module Admin class CollectionTypeForm include ActiveModel::Model attr_accessor :collection_type validates :title, presence: true delegate :title, :description, :brandable, :discoverable, :nestable, :sharable, :share_applies_to_new_works, :require_membership, :allow_multiple_membership, :assigns_workflow, :assigns_visibility, :id, :collection_type_participants, :persisted?, :collections?, :admin_set?, :user_collection?, to: :collection_type def all_settings_disabled? collections? || admin_set? || user_collection? end def share_options_disabled? all_settings_disabled? || !sharable end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hyrax-2.1.0.beta2 | app/forms/hyrax/forms/admin/collection_type_form.rb |