{% load codenerix_common %}
{% comment %}

django-codenerix

Codenerix GNU

Project URL : http://www.codenerix.com

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

{% endcomment %}

    <div class="modal-header">
        <h3 class="modal-title text-center">
{% block form_title %}{% endblock %}
        </h3>
    </div>
{% block form_head %}{% endblock %}
{% block table_content %}
<div class="col-md-12 column panel panel-default scrolling-container table-responsive">
    <table class="table table-condensed table-hover list">
        <thead>
            <tr>
            {% for column in columns %}
                <th>
                    {{column.name}}
                </th>
            {% endfor %}
            </tr>
        </thead>
        <tbody>
            {% for obj in object_list %}

            {# sustituyo la funcion editrow por details, la funcion editrow no se encentra en el codigo #}
            {# se hace y testea para las sublistas de airport #}

            {#<tr ng-click="details({{obj.id}})">#}
            <tr ng-click="details({{obj.pk}})">
                {% for column in columns %}
                    <td>
                        {#{{obj|objectatrib:column.pk}}#}
                        {{obj|objectatrib:column.id}}
                    </td>
                {% endfor %}
            </tr>
            {% endfor %}
        </tbody>
    </table>
</div>
{% endblock %}
