This repository has been archived on 2026-10-23. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
2016-03-22 16:17:34 +01:00

95 lines
3.6 KiB
HTML
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html>
<html>
<head>
<title>{% block title %}{% endblock %}</title>
{% load staticfiles %}
<link type="text/css" href="{% static 'css/jquery.ui.css' %}" rel="stylesheet" />
<link type="text/css" href="{% static 'css/jquery.ui.datepicker.css' %}" rel="stylesheet" />
<link type="text/css" href="{% static 'css/bootstrap.css' %}" rel="stylesheet" />
<link type="text/css" href="{% static 'css/bootstrap-responsive.css' %}" rel="stylesheet" />
<link type="text/css" href="{% static 'css/design/style.css' %}" rel="stylesheet" />
<script type="text/javascript" src="{% static 'js/jquery-2.0.0.js' %}"></script>
<script type="text/javascript" src="{% static 'js/jquery.ui.core.js' %}"></script>
<script type="text/javascript" src="{% static 'js/jquery.ui.datepicker.js' %}"></script>
<script type="text/javascript" src="{% static 'js/bootstrap.js' %}"></script>
<script type="text/javascript" src="{% static 'js/jquery.ui.widget.js' %}"></script>
<script type="text/javascript" src="{% static 'js/jquery.iframe-transport.js' %}"></script>
<script type="text/javascript" src="{% static 'js/jquery.fileupload.js' %}"></script>
<script type="text/javascript" src="{% static 'js/attachments.js' %}"></script>
</head>
<body class="center">
<h1 class="text-center" style="margin:30px;">Bestilling fra {{ order.client }}</h1>
<table class="table table-bordered">
<caption>Kontaktperson</caption>
<tr>
<th style="width:50%;">Navn</th>
<td style="width:50%;">{{ order.contact_name }} {% if order.contact_email %}(<a href="mailto:{{ order.contact_email }}">{{ order.contact_email }}</a>){% endif %}</td>
</tr>
<tr>
<th>Telefon</th>
<td>{{ order.contact_number|default:"--" }}</td>
</tr>
<tr>
<th>Bestillingsdato</th>
<td>{{data.created|date:"d. E Y" }}</td>
</tr>
</table>
<table class="table table-bordered">
<caption>Status</caption>
<tr class="
{% if data.card.closed %}
error
{% else %}
{% if data.members %}
success
{% else %}
info
{% endif %}
{% endif %}">
<th style="width:50%;">Status</th>
<td style="width:50%;">{% if data.card.closed %}Lukket{% else %}&Aring;pen{% endif %}</td>
</tr>
<tr>
<th>Tildelt</th>
<td>
{% if data.members %}
<ul style="margin: 0 0 0 25px;">
{% for member in data.members %}
<li>{{ member.full_name }}</li>
{% endfor %}
</ul>
{% else %}
Ingen
{% endif %}
</td>
</tr>
<tr>
<th>Frist</th>
<td>{{ data.due|date:"d. E Y" }} {% if data.days_left %}({{ data.days_left|default:"" }} dager igjen){% endif %}</td>
</tr>
</table>
{% block order_details %}{% endblock %}
{% block order_attachments %}
<div class="text-center attachments-caption">Vedlegg</div>
<div class="attachments">
<div id="progress">
<div class="bar" style="width: 0%; background-color: #dff0d8;">&nbsp;</div>
</div>
<form action="{% url 'attachments' %}" id="fileupload-form">
{% csrf_token %}
<input type="hidden" name="content_type" value="{{ content_type_id }}">
<input type="hidden" name="object_id" value="{{ order.id }}">
<label for="fileupload">Last opp vedlegg: </label><input id="fileupload" type="file" name="uploaded_file" data-url="{% url 'attachments' %}">
</form>
<ul>
{% for a in attachments %}
<li><a href="{{ a.uploaded_file.url }}">{{ a.uploaded_file.name|slice:"8:" }}</a> ({{ a.created }})</li>
{% endfor %}
</ul>
</div>
{% endblock %}
</body>
</html>