You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1022 B
38 lines
1022 B
{% extends "main.html" %}
|
|
|
|
{% block title %} Items {% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
<h2>{{item.name}} {% if !item.active %}<span class="badge text-bg-danger">Inactive</span> {% endif %}</h2>
|
|
|
|
<section class="container">
|
|
<div hx-get="/item/{{item_id}}/stats" hx-trigger="load" hx-swap="outerHTML">
|
|
</div>
|
|
|
|
<div class="grid">
|
|
<article>Reorder at: {{item.reorder_point}}</article>
|
|
</div>
|
|
</section>
|
|
|
|
{% if item.active %}
|
|
<section class="container-fluid">
|
|
<div class="row">
|
|
<div class="col-sm-6">
|
|
<div hx-get="/item/{{item_id}}/adjustment/sale" hx-trigger="load" hx-swap="outerHTML">
|
|
</div>
|
|
</div>
|
|
<div class="col-sm-6">
|
|
<div hx-get="/item/{{item_id}}/adjustment/new-stock" hx-trigger="load" hx-swap="outerHTML">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
{% endif %}
|
|
|
|
<section class="container">
|
|
<div hx-get="/item/{{item_id}}/adjustments" hx-trigger="load" hx-swap="outerHTML">
|
|
</div>
|
|
</section>
|
|
|
|
{% endblock %} |