{% extends "base.html" %}
{% load i18n %}
{% load markup %}

{% block page-title %}
  <img src="{% if project.image %}{{ STATIC_URL }}{{ project.image }}{% else %}/static/img/favicon.png{% endif %}"
       height="32" width="32" style="margin-right: 10px;">
  {% trans "Project" %}: {{ project }}
  {% if project.is_closed %}({% trans 'closed' %}){% endif %}
{% endblock %}

{% block navigation %}
  {% activetab "main" "projects" %}
  {{ block.super }}
{% endblock %}

{% block sub-navigation %}
  <ul>
	<li><a href="{% url inhouse.views.show_projects %}" style="font-weight: bold;">&laquo; {% trans "Back to projects" %}</a></li>
  </ul>
{% endblock %}

{% block content %}

  <aside id="right">
  </aside>

  <section id="xxx" style="width: 72%;">
  <div class="module">
	<h3 class="header">
	  {% trans 'Customer' %}
	</h3>
	<div class="body">
	  <div class="clearfix after">
		<label>{% trans 'Name' %}:</label>
		<p>{{ project.customer }}</p>
	  </div>
	  <div class="clearfix after">
  		<label>{% trans 'Address' %}:</label>
		{{ project.customer.address.get_addressstring|markdown }}
	  </div>
	</div>
  </div>
  <div class="module">
	<h3 class="header">
	  {% trans 'Details' %}
	</h3>
	<div class="body">
	  <div class="clearfix after">
		<label>{% trans 'Type' %}:</label>
		<p>{{ project.type }}</p>
	  </div>
	  <div class="clearfix after">
		<label>{% trans 'Status' %}:</label>
		<p>{{ project.status }}</p>
	  </div>
	</div>
  </div>
  <div class="module">
	<h3 class="header">
	  {% trans 'Personnel' %}
	</h3>
	<div class="body">
	  <div class="clearfix after">
		<label>{% trans "Project lead" %}:</label>
		<p>{{ project.manager.id|show_user_link }}</p>
	  </div>
	  <div class="clearfix after">
		<label>{% trans "Participants" %}:</label>
		  {% for user in participants %}
			<p>{{ user.id|show_user_link }}</p>
		  {% endfor %}
	  </div>
	</div>
  </div>
  </section>

{% endblock %}