Sha256: f60857703a9bf72fb6a0a4e40e4d628bfc0ef4e83b7eed62e58110c0aa86a32c

Contents?: true

Size: 1.07 KB

Versions: 2

Compression:

Stored size: 1.07 KB

Contents

# Warning: this component participates in i18n.feature, careful with adding new fields!
class AuthorForm < Netzke::Basepack::Form
  js_configure do |c|
    c.title = Author.model_name.human
  end

  def configure(c)
    super
    c.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(){
  #     this.callParent();

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


end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
netzke-basepack-0.8.1 test/basepack_test_app/app/components/author_form.rb
netzke-basepack-0.8.0 test/basepack_test_app/app/components/author_form.rb