app/components/articles_list.rb
# Override default fields for forms. Must return an array understood by the
# items property of the forms.
#
Override default fields for forms. Must return an array understood by the
items property of the forms.
Override default fields for forms . Must return an array understood by the items property of the forms .
def default_fields_for_forms
    [
      { :name => :created_on, :field_label => I18n.t(:created_on), :width => 80, :read_only => true,
        :format => 'Y-m-d', :summary_type => :count },
      { :name => :updated_on, :field_label => I18n.t(:updated_on), :width => 80, :read_only => true,
        :format => 'Y-m-d' },
      { :name => :title, :field_label => I18n.t(:title) },
      { :name => :entry_text, :field_label => I18n.t(:entry_text), :flex => 1 },
      { :name => :le_user__name, :field_label => I18n.t(:user), :width => 70, :sorting_scope => :sort_article_by_user,
        :default_value => Netzke::Core.current_user.id },
      { :name => :is_sticky, :field_label => I18n.t(:is_sticky),
        :default_value => false, :unchecked_value => 'false',
        :field_style => 'min-height: 13px; padding-left: 13px;'
      }
    ]
  end
def default_fields_for_forms [ { :name => :created_on , :field_label => I18n . t ( :created_on ) , :width => 80 , :read_only => true , :format => 'Y-m-d' , :summary_type => :count } , { :name => :updated_on , :field_label => I18n . t ( :updated_on ) , :width => 80 , :read_only => true , :format => 'Y-m-d' } , { :name => :title , :field_label => I18n . t ( :title ) } , { :name => :entry_text , :field_label => I18n . t ( :entry_text ) , :flex => 1 } , { :name => :le_user__name , :field_label => I18n . t ( :user ) , :width => 70 , :sorting_scope => :sort_article_by_user , :default_value => Netzke :: Core . current_user . id } , { :name => :is_sticky , :field_label => I18n . t ( :is_sticky ) , :default_value => false , :unchecked_value => 'false' , :field_style => 'min-height: 13px; padding-left: 13px;' } ] end
Override default fields for forms.
Override default fields for forms .