⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

add and edit form in two columns



kenshicu
  • profile picture
  • Member

Posted 05 December 2012 - 21:52 PM

as I can in the form of add or edit, put the input, selectbox in two columns? :wacko:

kenshicu
  • profile picture
  • Member

Posted 16 March 2013 - 22:22 PM

I created something about it, in add.php and edit.php files in the path:
(assets\grocery_crud\themes\flexigrid\views\)

I added this code to test, still not finished.
 

<?php    if( $counter <= 45) { ?>
<div style="float:left;">
<?php   } ?>    

<?php    if( $counter > 45) { ?>
<div style="float:right;">
<?php   } ?>


before the line:

<div class='form-field-box <?php echo $even_odd?>' id="<?php echo $field->field_name; ?>_field_box">



with the intention of using more space on the screen, look something like this:

http://s15.postimage.org/iybqjwqsb/add_record10.jpg

good ideas are welcome :)


putoyair
  • profile picture
  • Member

Posted 22 March 2013 - 06:22 AM

How did you did it? 

 

I created something about it, in add.php and edit.php files in the path:
(assets\grocery_crud\themes\flexigrid\views\)

I added this code to test, still not finished.
 

<?php    if( $counter <= 45) { ?>
<div style="float:left;">
<?php   } ?>    

<?php    if( $counter > 45) { ?>
<div style="float:right;">
<?php   } ?>


before the line:

<div class='form-field-box <?php echo $even_odd?>' id="<?php echo $field->field_name; ?>_field_box">



with the intention of using more space on the screen, look something like this:

http://s15.postimage.org/iybqjwqsb/add_record10.jpg

good ideas are welcome :)

 

 

Sir How did you did it? Can you share some code to keep some space?