2017-05-06 04:04
浏览 26


i need help again, i have my list of products.. and i want to show in a modal bootstrap te details of products... im using symfony 2.8, Yaml, bootstrap and mysql... this is my code

{% for entity in tipoProductos %}
        <td>{{ }}</td>
        <td>{{ entity.nombre }}</td>
        <td class="hidden-480">{{ entity.abreviacion }}</td>
        <td class="hidden-480">{{ entity.descripcion }}</td>
        <td><span class="label label-sm label-success arrowed arrowed-righ">{{ entity.estado==1?'Habilitado':'Deshabilitado' }}</span></td>
            <div class="hidden-sm hidden-xs action-buttons">
                <a class="green" href="#modal-table" role="button" data-toggle="modal"> SHOW </a>
            <div id="modal-table" class="modal fade" tabindex="-1">
                <div class="modal-dialog">
                    <div class="modal-content">
                        <div class="modal-header no-padding">
                            <div class="table-header">
                                Tipos de Obra
                        <div class="modal-body no-padding">
                            <table class="table table-striped table-bordered table-hover no-margin-bottom no-border-top">

                                        <td>{{ entity.nombre}}</td>
                                        <td>{{ entity.abreviacion }}</td>
                                        <td>{{ entity.descripcion}}</td>
                    </div><!-- /.modal-content -->
                </div><!-- /.modal-dialog -->
{% endfor %}

I have seen some posts that use only php, but they use a little complex functions, somebody that can help me please. I know it can be done with javascript, which is the best and fastest way to do it .. someone to help me please ...

  • 写回答
  • 好问题 提建议
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • drd2551 2017-05-06 04:11

    You must put an attribute, and the id of the modal to the link -

    解决 无用
    打赏 举报

相关推荐 更多相似问题