Sha256: 238e7ebe39e204a8d61545f8f522f708903fa8eff63e059754bfc48042684a32

Contents?: true

Size: 1.09 KB

Versions: 9

Compression:

Stored size: 1.09 KB

Contents

# Warning: this component participates in i18n.feature, careful with adding new fields!
class AuthorForm < Netzke::Basepack::FormPanel
  js_property :title, Author.model_name.human

  def configuration
    super.merge(
      :model => "Author",
      # :record => Author.first,
      # :items => [
      #   :title,
      #   {:name => :author__first_name, :setter => author_first_name_setter},
      #   {:name => :author__last_name, :xtype => :displayfield},
      #   {:name => :author__updated_at, :editable => false},
      #   :digitized,
      #   :exemplars,
      #   {:name => :in_abundance, :getter => in_abundance_getter, :xtype => :displayfield},
      #   {:name => :tags, :xtype => :commalistcbg, :options => %w(read cool recommend buy)},
      #   {:name => :rating, :xtype => :nradiogroup, :options => [[1, "Good"], [2, "Average"], [3, "Poor"]]}
      # ]
    )
  end

  # js_method :init_component, <<-JS
  #   function(){
  #     Netzke.classes.AuthorForm.superclass.initComponent.call(this);

  #     this.on('submitsuccess', function(){ this.feedback('Suc'+'cess!')}, this);
  #   }
  # JS


end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
netzke-basepack-0.7.7 test/basepack_test_app/app/components/author_form.rb
netzke-basepack-zh-0.7.6 test/basepack_test_app/app/components/author_form.rb
netzke-basepack-0.7.6 test/basepack_test_app/app/components/author_form.rb
netzke-basepack-0.7.5 test/basepack_test_app/app/components/author_form.rb
netzke-basepack-0.7.4 test/basepack_test_app/app/components/author_form.rb
netzke-basepack-0.7.3 test/basepack_test_app/app/components/author_form.rb
netzke-basepack-0.7.2 test/basepack_test_app/app/components/author_form.rb
netzke-basepack-0.7.1 test/basepack_test_app/app/components/author_form.rb
netzke-basepack-0.7.0 test/rails_app/app/components/author_form.rb