1. Kevin Veroneau
  2. django-pim

Source

django-pim / sitetracker / templates / sitetracker / domain_detail.html

{% extends "sitetracker/base.html" %}
{% load project_list %}

{% block body %}
<h2><a href="http://{{object.name}}/">{{object}}</a></h2>
{% if object.payee %}<a href="{{object.payee.get_absolute_url}}">{{object.payee}}</a>{% endif %}
{% if object.admin_url %}<br/><a href="{{object.admin_url}}">Domain Administrator</a>{% endif %}
<p>{{object.notes|linebreaksbr}}</p>
{% if object.projects %}
<b>Projects:</b><ul>
{% for project in object.projects.all %}<li><a href="{{project.get_absolute_url}}">{{project}}</a><a href="{{object.rm_project_url}}?project_id={{project.pk}}"><i class="icon-remove"></i></a></li>{% endfor %}
</ul>
{% endif %}
<form action="{{object.add_project_url}}" method="post">{% csrf_token %}
Add Project: {% project_dropdown %}
<input type="submit" value="Add" class="btn" /></form><hr/>
<a href="{{object.get_update_url}}" class="btn">Update</a>
{% endblock %}