5
I’m having some difficulties, I know this is not the ideal way, but it’s what I need at the moment. I have a list medicos
and need to call a different modal for each of them, without database, static even.
Follows my code:
<section class="about text-center" id="about">
<div class="container">
<div class="row">
<div class="header-backup"></div>
<h2>Dentistas</h2>
<div class="col-md-6 col-sm-6">
<div class="col-sm-12" style="background-color:lavender;">
<h3>Dentistas</h3>
<div class="list-group">
<a href="#" class="list-group-item " data-target="#myModal" data-toggle="modal">
<h4 class="list-group-item-heading">Antonio Andrade Santos</h4>
</a>
<a href="#" class="list-group-item" data-target="#myModal" data-toggle="modal">
<h4 class="list-group-item-heading">Armando Sambataro </h4>
</a>
<a href="#" class="list-group-item" data-target="#myModal" data-toggle="modal">
<h4 class="list-group-item-heading">Joao Eduardo Albieri Marinho</h4>
</a>
<a href="#" class="list-group-item " data-target="#myModal" data-toggle="modal">
<h4 class="list-group-item-heading">Raul Coutinho Rodrigues Da Matta</h4>
</a>
<a href="#" class="list-group-item " data-target="#myModal" data-toggle="modal">
<h4 class="list-group-item-heading">Rodolpho Telarolli Junior</h4>
</a>
</div>
</div>
</div>
<!-- Modal -->
<div class="modal fade" id="myModal" role="dialog">
<div class="header-backup"></div>
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">Antonio Andrade Santos</h4>
</div>
<div class="modal-body">
<div class="modal-perso">
<div class="info-detail2">
<ul><li><i class="fa2 fa-calendar"></i><span class="span-modal"> Segunda Feira - Sexta Feira:</span> 8:00 as 18:00 </li></ul>
<ul><li><i class="fa2 fa-map-marker"></i><span class="span-modal"> Endereço:</span> São Paulo </li></ul>
<ul><li><i class="fa2 fa-phone"></i><span class="span-modal"> Telefone:</span> (00) 0000-0000 </li></ul>
<ul><li><i class="fa2 fa-phone"></i><span class="span-modal"> Telefone:</span> (00) 0000-0000 </li></ul>
<ul><li><i class="fa2 fa-fax"></i><span class="span-modal"> CRM:</span> (123)984-1234</li></ul>
<ul><li><i class="fa2 fa-envelope"></i><span class="span-modal"> Email:</span> [email protected]</li></ul>
</div>
</div class="div-foto3x4">
<div><img src="img/foto 3x4.jpg" class="foto3x4" alt="foto"></div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Fechar</button>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
What to change in the new modal and how to call in the div
of medico
?
You want to use the same modal for all doctors?
– ShutUpMagda