Warehouse management

This commit is contained in:
Eden Kirin
2024-04-07 00:07:47 +02:00
parent 1b1d0f1b5c
commit b33ed21949
9 changed files with 170 additions and 24 deletions

View File

@ -2,27 +2,42 @@
{% block content %}
<form class="row">
<div
class="col"
hx-post="{{ url("complex-form-handle-route-module") }}"
hx-trigger="change"
hx-target="#route-module-content"
>
<div id="route-module-content">
{% set state = form_state.route_module %}
{% include "main/complex_form/route_module.html" %}
<form>
<div class="row mb-4">
<div
class="col-md-6"
hx-post="{{ url("complex-form-handle-route-module") }}"
hx-trigger="change"
hx-target="#route-module-content"
>
<div id="route-module-content" class="h-100">
{% set state = form_state.route_module %}
{% include "main/complex_form/route_module.html" %}
</div>
</div>
<div
class="col"
hx-post="{{ url("complex-form-handle-reports") }}"
hx-trigger="change"
hx-target="#reports-content"
>
<div id="reports-content">
{% set state = form_state.reports %}
{% include "main/complex_form/reports.html" %}
</div>
</div>
</div>
<div
class="col"
hx-post="{{ url("complex-form-handle-reports") }}"
hx-trigger="change"
hx-target="#reports-content"
>
<div id="reports-content">
{% set state = form_state.reports %}
{% include "main/complex_form/reports.html" %}
<div class="row">
<div
class="col-md-6"
hx-post="{{ url("complex-form-handle-warehouse-management") }}"
hx-trigger="change"
hx-target="#warehouse-management-content"
>
<div id="warehouse-management-content">
{% set state = form_state.warehouse_management %}
{% include "main/complex_form/warehouse_management.html" %}
</div>
</div>
</div>
</form>

View File

@ -3,7 +3,7 @@
{% set indent_1 = "ms-4" %}
{% set indent_2 = "ms-5" %}
<div class="card p-3">
<div class="card p-3 h-100">
{{ checkbox(
title="Enable Reports",
name="reports",

View File

@ -3,7 +3,7 @@
{% set indent_1 = "ms-4" %}
{% set indent_2 = "ms-5" %}
<div class="card p-3">
<div class="card p-3 h-100">
{{ checkbox(
title="Enable Route module",
name="route_module",

View File

@ -0,0 +1,58 @@
{% from "main/components/inputs.html" import checkbox, select %}
{% set indent_1 = "ms-4" %}
{% set indent_2 = "ms-5" %}
<div class="card p-3 h-100">
{{ checkbox(
title="Product warehouse",
name="product_warehouse",
state=state.product_warehouse
) }}
{{ select(
title="Delivery option",
name="delivery_option",
options={
"direct": "Direct",
"vehicle": "Vehicle",
},
state=state.delivery_option,
cls=indent_1
) }}
{{ checkbox(
title="Allow negative stock",
name="allow_negative_stock",
state=state.allow_negative_stock,
cls=indent_1
) }}
{{ checkbox(
title="Route reserve stock",
name="route_reserve_stock",
state=state.route_reserve_stock,
cls=indent_1
) }}
{{ checkbox(
title="Refill log",
name="refill_log",
state=state.refill_log,
cls=indent_1
) }}
{{ checkbox(
title="Product order",
name="product_order",
state=state.product_order,
cls=indent_1
) }}
{{ checkbox(
title="Spare parts warehouse",
name="spare_parts_warehouse",
state=state.spare_parts_warehouse
) }}
{{ checkbox(
title="Purchase module",
name="purchase_module",
state=state.purchase_module
) }}
</div>