Source

DJFacet / demoproject / mytemplates / djfacet / religions / religions_item.html

Full commit

{# THIS IS A CUSTOMIZED VERSION OF <templates/djfacet/results/generic_item.html> #}


<!-- hidden fields useful to store data -->
<input type="hidden" id="active_ordering" value="default" />
<!-- end of hidden fields -->



<h1>Record: {{single_item}} 
	<span id="rec_num" style="display:none;">1</span>
	<small class="smalllinks">
		<a {% if single_item.prev %}href="?resulttype={{result_typeObj.uniquename}}&amp;item={{single_item.prev}}{{newurl_stub}}"{% endif %}>prev</a> |
		<a {% if single_item.next %}href="?resulttype={{result_typeObj.uniquename}}&amp;item={{single_item.next}}{{newurl_stub}}"{% endif %}>next</a> | 
		{% if single_item.fullrecord %}<a href="{{single_item.get_absolute_url}}">full record</a> |{% endif %}	
		<a title="Back to the results page" href="?resulttype={{result_typeObj.uniquename}}{{newurl_stub}}">search results</a>
	</small>
</h1>


<table class="simple headersX">
    <tbody>
		<tr>
			<th scope="row">ID</th>
			<td>{{ single_item.id }}</td>
		</tr>
		<tr>
			<th scope="row">Name</th>
			<td>{{ single_item.name }}</td>
		</tr>	
		{% for r in  single_item.religionincountry_set.all %}
				<tr>
				<th scope="row">In Country</th>
				<td>{{ r.country.name }} : {{r.percentage}} %</td>
			</tr>
		{% endfor %}
    </tbody>


</table>