{% extends "base.html" %}
{% load tags %}
{% load render_table from django_tables2 %}

{% block main_content %}
{% block actions %}
	<a class="btn" href="{% url app_label|add:'-'|add:actual_model_name|add:'-create' %}"><i class="icon-plus-sign"></i> Add {{actual_model_name|title}}</a>
{% endblock %}
<hr/>

<b>APP :</b> {{app_label}}<br/>
<b>MODEL : </b>{{actual_model_name}}<br/>
<b>PLURIZED MODEL :</b> {{pluralized_model_name}}<br/>

<h3>{{pluralized_model_name|title}}<h3>

<h4>Using Django Tables2</h4>

<form saction="." method="GET">
	<input type="text" name='search'>
	<button type="submit" >Search</button>
</form>

{% render_table table_objects %}

<hr/>
<h4>Using normal queryset</h4>
{{object_list}}


{% endblock %}
