0
我想知道是否有任何方法在活動管理中隱藏顯示操作中的字段,或者如果它們是空的,甚至不顯示它們?如何隱藏活動管理中的顯示字段
我想知道是否有任何方法在活動管理中隱藏顯示操作中的字段,或者如果它們是空的,甚至不顯示它們?如何隱藏活動管理中的顯示字段
排序它在該資源的.RB文件 -
show :title => :Company_Name do
panel "COMPANY DETAILS" do
attributes_table_for company, :Company_Name, :Title, :First_Name, :Surname, :Job_Title,:Direct_Number, :Contact_Email, :Address_1, :Address_2, :Address_3, :City, :Postcode, :Region, :Head_Office, :Showroom, :Trade_Counter, :Factory_Warehouse, :Telephone_Number, :Fax_Number, :Company_Email, :Web_Address, :PVCu_WindowsDoors_Method_1, :PVCu_WindowsDoors_System_1, :PVCu_WindowsDoors_Method_2, :PVCu_WindowsDoors_System_2, :Timber_Sash_Windows_Method, :FPW, :Composite_Doors_Method_1, :Composite_Doors_System_1, :Composite_Doors_Method_2, :Composite_Doors_System_2, :Composite_Doors_Method_3, :Composite_Doors_System_3, :Installer, :Trade, :Domestic, :Commercial, :New_Build
end
active_admin_comments
末
只需添加一個博客秀在ActiveAdmin文件預期的屬性,如以下
show do
attributes_table do
row :id
row :title
row :created_at
row :updated_at
end
end