AdminLTE icon indicating copy to clipboard operation
AdminLTE copied to clipboard

Many forms on a tabbed view

Open punchi opened this issue 12 years ago • 5 comments

Hi!

First, thanks for this free admin template!! =) I have a question related with AdminLTE, so, how can I put 2 forms (General Elements) into a tabbed view (AdminLTE Custom Tabs)??

When trying, I lose the tabbed margin on bottom, I'm trying to make something like:

Thanks!

punchi avatar Oct 06 '14 23:10 punchi

Could you elaborate more on the issue you are having? Are you able to generate the tabs? A screenshot of your work could go a long way.

almasaeed2010 avatar Oct 07 '14 00:10 almasaeed2010

I would like to place many boxes with differents width, and those boxes should be forms to fill and post (all or individually with ajax). Below its some code too, if you need more, I can paste it, but I guess the important it's here.

Without col-md-X without

With col-md-5 with_colmd5

With 2 x col-md-5 forms with_two

punchi avatar Oct 07 '14 02:10 punchi

Did you try adding the col-- in .row? After #tab_1 and before .col-md-* add .row div

almasaeed2010 avatar Oct 07 '14 14:10 almasaeed2010

To be more clear of what I mean, here is how your layout should look like:

<div id="tab_1" class="tab-pane active">
  <!-- add the .row div here -->
  <div class="row">
    <div class="col-md-6">
      <!-- first .box goes here -->
    </div>
    <div class="col-md-6">
      <!-- second .box goes here -->
    </div>
  </div><!-- /.row -->
</div>

I strongly advise you to understand the Bootstrap 3 grid system by visiting http://getbootstrap.com/css/#grid

almasaeed2010 avatar Oct 07 '14 16:10 almasaeed2010

Thanks, I will ! =)

punchi avatar Oct 08 '14 02:10 punchi