Good afternoon. We are developing a website for a group of masters research, I am a scholarship holder, of the course of information systems, with little experience in web programming, who can help, for goodness! Using the nav-tabs and tab-content of the bootstrap, when you change the tabs, the content of the following tab is below the contents of the previous tab, as if the other elements were stacked under the new element.
The content of the tab-content is being created dynamically by the django views.py context variable.
Follow the code:
<!-- MOSTRA AS ABAS DE PROJETOS EM ANDAMENTO E CONCLUÍDO -->
<div class="col-lg-8 col-md-8 col-sm-8 col-xs-8" style="display:none;" id="abas_projetos"><!--cria 2 abas de navegação-->
<ul class="nav nav-tabs" >
<li class="active"><a data-toggle="tab" href="#aba_projetos_em_andamento" onclick="alternar_abas()">
Projetos Em Andamento</a>
</li>
<li><a data-toggle="tab" href="#aba_projetos_concluidos" onclick="alternar_abas()">
Projetos Concluídos</a>
</li>
</ul>
<div id="aba_projetos_em_andamento" class="tab-pane fade active in" > <!--cria o conteudo da aba de projetos concluidos -->
{% for pesquisa in pesquisas_andamento.all %}
<div class="tab-content" class="tabContent_projetos_em_andamento">
<h4>
<a href="#{{ pesquisa.id }}" data-toggle="collapse">
{{ pesquisa.titulo }}
</a>
</h4>
<div id="{{ pesquisa.id}}" class="collapse">
<strong>Ementa:</strong> {{ pesquisa.ementa }}
<a href=" url app_name:page_name.html "> + info </a>
</div>
</div>
{% endfor %}
</div>
<div id="aba_projetos_concluidos" class="tab-pane fade" > <!--cria o conteudo da aba de projetos concluidos -->
{% for pesquisa in pesquisas_concluidas.all %}
<div class="tab-content" class="tabContent_projetos_concluidos">
<h4>
<a href="#{{ pesquisa.id}}" data-toggle="collapse">
{{ pesquisa.titulo }}
</a>
</h4>
<div id=" {{ pesquisa.id }} " class="collapse">
<strong>Ementa:</strong> {{ pesquisa.ementa }}
</div>
</div>
{% endfor %}
</div>
</div> <!-- FECHA A DIV DAS ABAS DOS PROJETOS -->
The page print: