Okay
  Public Ticket #1758716
2-column form
Closed

Comments

  •  2
    Carl Nasal started the conversation

    I have a MySQL table with a lot of fields that I need users to be able to add and edit.  Is there any way to make the Add/Edit form contain 2 columns, with the fields split between the two columns?


    Thanks,
    Carl

  • [deleted] replied

    Hi Carl,
    Thank you for your purchase.

    There is no option to do it with built in functionalities. You need to change a code or overwrite it with CSS and quickest solution would be to open a 

    wp-content/plugins/wpdatatables/templates/frontend/edit_dialog.inc.php

    and around line 32 find 

    class="form-group col-xs-12"

    and change it to 

    class="form-group col-xs-6"


  •  2
    Carl Nasal replied

    Great! Thanks for that tip. Is there any way to override your templates in my theme so that they stay after plugin updates (like how WooCommerce does template overrides in your theme)?

    Thanks,
    Carl

  • [deleted] replied

    Hi Carl, 

    You could do this with CSS also by targeting those specific fields in modal like

    .modal-body .wdt-edit-dialog-fields-block .form-group {
        width: 50% !important;
    }
    

    in CustomCSS filed on Settings page of our plugin. 

  •  2
    Carl Nasal replied

    Thanks, I'll try that!

    Carl