add URI to feature geojson, add to table in authority record admin page

This commit is contained in:
Sanj 2011-08-31 02:13:45 +05:30
parent 3933e87dfb
commit 777f41a16f
3 changed files with 4 additions and 1 deletions

View File

@ -70,6 +70,7 @@ class Feature(models.Model):
properties = {
'id': self.id,
'uri': self.url,
'preferred_name': self.preferred_name,
'feature_type': feature_type,
'admin1': self.admin1,

View File

@ -21,6 +21,7 @@ function getRow(props) {
var $tr = $('<tr />');
var $one = $('<td />').appendTo($tr);
var $a = $('<a />').attr("target", "_blank").attr("href", "/admin/places/feature/" + props.id).text(props.preferred_name).appendTo($one);
$('<td />').text(props.uri).appendTo($tr);
$('<td />').text(props.feature_type).appendTo($tr);
$('<td />').text(props.admin2).appendTo($tr);
$('<td />').text(props.admin1).appendTo($tr);

View File

@ -10,12 +10,13 @@
{% endblock %}
{% block after_related_objects %}
<div id="similarFeatures" class="module">
<div id="recordFeatures" class="module">
<h2>List of Features:</h2>
<table id="mapList" class="customTable">
<thead>
<tr>
<th>Name</th>
<th>URI</th>
<th>Type</th>
<th>County</th>
<th>State</th>