Files @ 2a0c8cb4797c
Branch filter:

Location: conntrackt/conntrackt/templates/conntrackt/project_detail.html

branko
CONNT-5: Added custom model form for Interface. Applied small improvement to EntityForm for styling. Implemented adding interfaces to entities from the entity details page. Updated representation of interfaces on entity details page. Updated view tests for the new functionality. Minor fix to EntityView.
{% extends "conntrackt/base.html" %}

{# For html_link #}
{% load conntrackt_tags %}

{% block content %}
<div class="row">
  <h1 class="span12">{{project.name}}</h1>
</div>

{% if project.description %}
<div class="row">
  <div class="span12">
    {{project.description}}
  </div>
</div>
<hr>
{% endif %}

<div class="row">
  <div class="span12">
    {% html_link "Edit" "project_update" project.id class="btn btn-primary" %}
    {% html_link "Remove" "project_delete" project.id class="btn btn-primary" %}
    {% with project_id=project.id|slugify %}
    {% html_link "Add entity" "entity_create" class="btn btn-primary" get="project="|add:project_id %}
    {% endwith %}
  </div>
</div>
<hr>
{% if location_entities %}
<div class="row">
  {% for location, entities in location_entities %}
  <div class="span4">
    <div class="well">{% include "conntrackt/location_widget.html" with location=location entities=entities %}</div>
  </div>
  {% endfor %}
</div>
{% endif %}
{% endblock %}