Jump to content

Display information in a grid


Recommended Posts

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',
                )
            ),
        );
    }

 

Edited by dostoyevski (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...