Jump to content

Edit History

dostoyevski

dostoyevski

I want to show a list of orders with their corresponding VAT in a grid in the backoffice of a module. But I don't know how to show the elements in a grid. This is my getConfigForm function. I would like the fields with the type "text" to be displayed in a grid.

    protected function getConfigForm() {

        return array(
            'form' => array(
                'legend' => array(
                    'title' => $this->l('Settings'),
                    'icon' => 'icon-cogs'
                ),
                'input' => array(
                    array(
                        'type' => 'text',
                        'label' => $this->l('Hello'),
                        'name' => 'my_date_desde',
                        'required' => true,
                    ),
                    array(
                        'type' => 'text',
                        'label' => $this->l('Goodbye'),
                        'name' => 'my_date_hasta',
                        'required' => true,
                    ),
                    array(
                        'type' => 'text',
                        'label' => $this->l('Iva'),
                        'name' => 'iva',
                    )
                ),
                
                'submit' => array(
                    'title' => $this->l('Export to excel'),
                    'class' => 'button btn btn-default pull-right',
                    'name' => 'submitButton',
                )
            ),
        );
    }

 

dostoyevski

dostoyevski

I want to show a list of orders with their corresponding VAT in a grid in the backoffice of a module. But I don't know how to show the elements in a grid. This is my getConfigForm function. I would like the fields with the type "text" to be displayed in a grid.

×
×
  • Create New...