Change select2 box to ordinary select

I have only a short list of clients hence no need for search in select box. I use a tablet for creating invoices and virtual keyboard bothers a lot. How may I customise it? Which file will I edit?

The corresponding input field: https://github.com/InvoicePlane/InvoicePlane/blob/master/application/modules/invoices/views/modal_create_invoice.php#L85
And the PHP function to get the clients: https://github.com/InvoicePlane/InvoicePlane/blob/master/application/modules/invoices/views/modal_create_invoice.php#L23

Thank you. I figured it out.

Maybe you could share your code here for other interested people?

            <div class="form-group">
                <label for="client_name"><?php echo lang('client'); ?></label>
                <div class="controls">
                    <select name="client_name" id="client_name"
                            class="form-control">
                        <option value=""></option>
                        <?php foreach ($clients as $client) { ?>
                            <option value="<?php echo $client->client_name; ?>"
                   <?php if ($this->mdl_clients->form_value('client_name') == $client->client_name) { ?>selected="selected"<?php } ?>>
                            <?php echo $client->client_name; ?>
                                    </option>
                        <?php } ?>
                    </select>
                </div>
            </div>
1 Like