VRFS-2476 : Field size and length to improve JamTracks Admin UI.
This commit is contained in:
parent
220195ef5c
commit
696cdc0283
|
|
@ -2,15 +2,15 @@
|
|||
= f.semantic_errors *f.object.errors.keys
|
||||
= f.inputs name: 'JamTrack fields' do
|
||||
|
||||
= f.input :name
|
||||
= f.input :description
|
||||
= f.input :name, :input_html => { :rows=>1, :maxlength=>200 }
|
||||
= f.input :description, :input_html => { :rows=>5, :maxlength=>1000 }
|
||||
= f.input :bpm
|
||||
= f.input :time_signature, collection: JamRuby::JamTrack::TIME_SIGNATURES, include_blank: false
|
||||
= f.input :status, collection: JamRuby::JamTrack::STATUS, include_blank: false
|
||||
= f.input :recording_type, collection: JamRuby::JamTrack::RECORDING_TYPE, include_blank: false
|
||||
= f.input :original_artist
|
||||
= f.input :songwriter
|
||||
= f.input :publisher
|
||||
= f.input :original_artist, :input_html => { :rows=>2, :maxlength=>200 }
|
||||
= f.input :songwriter, :input_html => { :rows=>5, :maxlength=>1000 }
|
||||
= f.input :publisher, :input_html => { :rows=>5, :maxlength=>1000 }
|
||||
= f.input :licensor, collection: JamRuby::JamTrackLicensor.all, include_blank: false
|
||||
= f.input :pro, collection: JamRuby::JamTrack::PRO, include_blank: false
|
||||
= f.input :genre, collection: JamRuby::Genre.all, include_blank: false
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
%ol.nested-fields
|
||||
= f.input :track_type, :as => :select, collection: JamRuby::JamTrackTrack::TRACK_TYPE, include_blank: false
|
||||
= f.input :instrument, collection: Instrument.all, include_blank: false
|
||||
= f.input :part
|
||||
= f.input :part, :input_html => { :rows=>1, :maxlength=>20 }
|
||||
= f.input :position
|
||||
|
||||
- if f.object.new_record?
|
||||
|
|
|
|||
|
|
@ -43,7 +43,4 @@ JamAdmin::Application.configure do
|
|||
|
||||
# Show the logging configuration on STDOUT
|
||||
config.show_log_configuration = true
|
||||
|
||||
# set to false to instead use amazon. You will also need to supply amazon secrets
|
||||
config.store_artifacts_to_disk = true
|
||||
end
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ JamAdmin::Application.configure do
|
|||
|
||||
# Generate digests for assets URLs
|
||||
config.assets.digest = true
|
||||
|
||||
|
||||
# Defaults to nil and saved in location specified by config.assets.prefix
|
||||
# config.assets.manifest = YOUR_PATH
|
||||
|
||||
|
|
@ -73,4 +73,5 @@ JamAdmin::Application.configure do
|
|||
|
||||
config.aws_bucket_public = 'jamkazam-public'
|
||||
config.aws_bucket = 'jamkazam'
|
||||
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in New Issue