add URI to feature geojson, add to table in authority record admin page
This commit is contained in:
parent
3933e87dfb
commit
777f41a16f
|
@ -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,
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue
Block a user