Hi everybody!.. I'm trying Netzke and I want to know how can I change the add_in_form form, because I implement my own form, which code I let you below:
class CategoriasProductoForm < Netzke::Basepack::Form
def actions
super.merge({
apply: {:text => "Guardar", :disabled => false}
})
end
def configure(c)
c.title = "Categoria de Productos"
c.model = "CategoriasProducto"
c.items =[
{name: :str_nombre, field_label: "Nombre"},
{name: :str_descripcion, field_label: "Descripcion"}
]
c.bbar = [:apply]
super
end
end
and this is my custom Grid:
class CategoriasProductos < Netzke::Basepack::Grid
def configure(c)
c.model = "CategoriasProducto"
c.columns = [
{name: :str_nombre, header: "Nombre"},
{name: :str_descripcion, header: "Descripcion"}
]
super
end
end
Can I use my custom form?.
Thanks.
Ruben