diff --git a/conntrackt/templates/conntrackt/location_widget.html b/conntrackt/templates/conntrackt/location_widget.html --- a/conntrackt/templates/conntrackt/location_widget.html +++ b/conntrackt/templates/conntrackt/location_widget.html @@ -1,11 +1,23 @@ {% load conntrackt_tags %} - + + + + + {% for entity in entities %} - + + + + + {% endfor %} {% with project_id=project.id|slugify location_id=location.id|slugify %} - + + + + + {% endwith %}
{{location.name}}{% html_link '' 'project_location_iptables' project.id location.id class="btn btn-link" %}
{{location.name}}{% html_link '' 'project_location_iptables' project.id location.id class="btn btn-link" %}
{% html_link entity.name 'entity' entity.id class="btn btn-link" %}{% html_link '' 'entity_iptables' entity.id class="btn btn-link" %}
{% html_link entity.name 'entity' entity.id class="btn btn-link" %}{% html_link '' 'entity_iptables' entity.id class="btn btn-link" %}{% html_link '' 'entity_delete' entity.id class="btn btn-link" %}
{% html_link "Add entity" "entity_create" class="btn btn-primary btn-mini" get="project="|add:project_id|add:"&location="|add:location_id %}
{% html_link "Add entity" "entity_create" class="btn btn-primary btn-mini" get="project="|add:project_id|add:"&location="|add:location_id %}