Module: Comable::Admin::ProductsHelper
- Defined in:
- app/helpers/comable/admin/products_helper.rb
Instance Method Summary collapse
-
#add_property_button_tag(name) ⇒ Object
プロパティ追加ボタン設置.
Instance Method Details
#add_property_button_tag(name) ⇒ Object
プロパティ追加ボタン設置
5 6 7 8 |
# File 'app/helpers/comable/admin/products_helper.rb', line 5 def (name) fields = render 'comable/admin/products/property_fields', property_key: nil, property_value: nil (name, type: :button, class: 'add_property btn btn-default pull-right', data: { fields: fields.delete("\n") }) end |