#Sample Template
# Uses django admin css file.
# You'll need to modify the specific fields in the table, but that
should be easy enough.
# Hope you find this helpful.
#==============
        <link rel="stylesheet" type="text/css" href="/media/css/base.css" />
        <!-- Pager -->
        <div class="module" id="changelist" style="width:850px">
        <div id="toolbar" style="height:31px;">
                <table><tr>
                        <th style="width:120px;">
                                {# Ugly non-spaced mess so buttons align 
correctly. #}
                                {% if has_previous %}<a href=".?page={{ previous
}}">&larr;Back</a>{% else %}<span
style="opacity:.3">&larr;Back</span>{% endif %} &nbsp;&nbsp; {% if
has_next %}<a href=".?page={{ next }}">Next&rarr;</a>{% else %}<span
style="opacity:.3">Next&rarr;</span>
                                {% endif %}
                                <th style="vertical-align:middle;">
                                Page {{page}}/{{pages}}
                                </th>
                        </th>

                </tr>
                </table>
        </div></div>
        <!-- Now display the table -->
        <table cellspacing="0" style="width:850px">
                <thead>
                        <th>Name</th>
                        <th>Street</th>
                        <th>City</th>
                        <th>State</th>
                        <th>Zip</th>
                        <th>Country</th>
                        <th>Phone</th>
                        <th>Email</th>
                        <th></th>
                </thead>
                {% for o in object_list %}
                <tr class="{% cycle row1,row2 %}" id="mainrow_{{o.id}}">
                        <td class="mainRow" width="100">{{o.name}}</td>
                        <td class="mainRow" width="100">{{o.street}}</td>
                        <td class="mainRow" width="100">{{o.city}}</td>
                        <td class="mainRow" width="25">{{o.state}}</td>
                        <td class="mainRow" width="75">{{o.zip}}</td>
                        <td class="mainRow" width="75">{{o.country}}</td>
                        <td class="mainRow" width="100">{{o.phone}}</td>
                        <td class="mainRow" width="100">{{o.email}}</td>
                        <td></td>
                </tr>
                {% endfor %}

        </table>
        <div id="content" class="flex"
style="font-size:10px;">{{results_per_page}} results per page &bull;
{{hits}} total</div>

Reply via email to