Commit 10562300 by Bence Dányi

firewall_gui: display records on domain records page

parent fb85d493
...@@ -96,3 +96,11 @@ ...@@ -96,3 +96,11 @@
</div> </div>
</div> </div>
</form> </form>
<div class="span12">
<h3>Records belonging to this domain</h3>
<div class="well well-small">
<span class="label label-info" ng-repeat="record in entity.records">
<a href="#/records/{{record.id}}">{{record.name}}</a>
</span>
</div>
</div>
...@@ -547,7 +547,10 @@ def show_domain(request, id=None): ...@@ -547,7 +547,10 @@ def show_domain(request, id=None):
'modified_at': domain.modified_at.isoformat(), 'modified_at': domain.modified_at.isoformat(),
'ttl': domain.ttl, 'ttl': domain.ttl,
'description': domain.description, 'description': domain.description,
'records': [{
'id': record.id,
'name': record.get_name()
} for record in domain.record_set.all()]
} }
except: except:
domain = { domain = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment