Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {% extends 'base.html' %}
- {% block content %}
- <h2>{% block title %} {{ item['title'] }} {% endblock %}</h2>
- <span class="badge badge-primary">{{ item['company'] }}</span>
- {% if item['status']=='выдан' %}
- <span class="badge badge-success"> выдан </span>
- {% else %}
- <span class="badge badge-danger"> не выдан </span>
- {%- endif %}
- <hr>
- <table class="table">
- <thead>
- <tr>
- <th scope="col">#</th>
- <th scope="col">Позиция</th>
- <th scope="col">Единица измерения</th>
- <th scope="col">Количество</th>
- </tr>
- {% for p in pos %}
- <tr>
- <th scope="col">#</th>
- <th scope="col">{{ p['item'] }}</th>
- <th scope="col">{{ p['type'] }}</th>
- <th scope="col">{{ p['amount'] }}</th>
- </tr>
- {% endfor %}
- </thead>
- <tbody>
- </tbody>
- </table>
- {% if item['status']=='выдан' %}
- <p><h5>Товары были выданы {{ item['date'] }}</h5></p>
- {% else %}
- <p>
- <form method="POST">
- <button type="submit" class="btn btn-primarybtn-sm">Выдать товары по накладной</button>
- </form>
- </p>
- {%- endif %}
- </p>
- {% endblock %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement