Source

django-pim / projects / templates / projects / view_goal.html

Kevin Veroneau fffb63b 






















{% extends "projects/base.html" %}

{% block body %}
<h2><a href="{{goal.project.get_absolute_url}}">{{goal.project}}</a>: {{goal.title}}</h2>
<i>Created on: {{goal.created_on}}</i>
<p>{{goal.description|linebreaksbr}}</p><hr/>
{% if goal.complete %}
<p>This goal was completed on {{goal.completed_on}}.</p>
{% else %}
<p>This goal is due on {{goal.due_on}}.</p>
<a class="btn" href="{% url projects-view-goal goal.project.slug goal.slug %}?complete=true">Mark as complete</a>
<a class="btn" href="{% url projects-create-goal-note goal.project.slug goal.slug %}">Add Note</a>
{% endif %}
{% if notes.count > 0 %}
<table class="table table-striped">
<thead><tr><th>Note</th><th>Created on</th></tr></thead>
<tbody>
{% for note in notes %}
<tr><td><a href="{{note.get_absolute_url}}">{{note}}</a></td><td>{{note.created_on}}</td></tr>
{% endfor %}
</tbody>
</table>
{% endif %}
{% endblock %}