{% extends "orders/base.html" %}
{% block content %}
<main>
        <div class="container-fluid">
            <div class="row">
                <div class="col-12">
                    <div class="mb-2">
                        <h1>Επεξεργασία Παραγγελίας</h1>
                        <nav class="breadcrumb-container d-none d-sm-block d-lg-inline-block" aria-label="breadcrumb">
                            <ol class="breadcrumb pt-0">
                                <li class="breadcrumb-item">
                                    <a href="/dx">Πίσω</a>
                                </li>
                            </ol>
                        </nav>
                    </div>
                    <div class="separator mb-5"></div>
                </div>
            </div>
            <div class="row mb-4">
                                 <div class="container">
                                 {% if messages %}
  <ul class="messages">
    {% for message in messages %}
      <li class="{{ message.tags }}">{{ message }}</li>
    {% endfor %}
  </ul>
{% endif %}
<div class="card">
        <div class="card-header">
            <h1><b>Αριθμός Παραγγελίας {{ object }}</b></h1>
        </div>
        <div class="card-body">
        <table class="table">
        <!--for inline added titles-->
        {% if object.has_titles %}
        {% for title in object.has_titles.all %}
        <tr>
            <th>Title @{{title.language}}</th>
            <td>{{title.name}}</td>
        </tr>
        {% endfor %}
        {% endif %}
        <!--end-->
    	{% if object.subject %}
    	<tr>
            <th>Subject</th>
            <td>{{ object.subject }}</td>
        </tr>
    	{% endif %}
    	{% if object.owner %}
    	<tr>
            <th>Owner</th>
            <td>{{ object.owner }}</td>
        </tr>
    	{% endif %}
    	{% if object.note %}
    	<tr>
            <th>Note</th>
            <td>{{ object.note }}</td>
        </tr>
    	{% endif %}
        </table>
        <a class="btn btn-outline-info" href="{% url 'orders_app:order_update' pk=object.id %}">Ενημέρωση</a>
        </div>
</div>
{% endblock content %}
