Label print calibration and Lithium Label UI polish (#3)

## Summary
- Calibrate label print/calibrate CSS to the reference PDF (positions, ~7pt/6pt sizes, bottom-row pitch)
- Print layout: partial last-box weight, pad short pages to 4 slips, whole-number weights
- Rename to Lithium Label Manager; Vazirmatn for FA / Inter for EN; inverted lithium icon; seed weights=5; number step=1; hide empty toast

## Test plan
- [ ] Print calibration sheet and overlay on a physical label — top and bottom rows align
- [ ] Order 50/5/4 — box labels show 20, 20, 10 (padded page); weights without `.0`
- [ ] Language toggle switches Inter ↔ Vazirmatn
- [ ] Seed products use canister weight 5; form spinners step by 1

Reviewed-on: #3
Co-authored-by: Diaco Soltanpour <dyaco8464@yahoo.com>
Co-committed-by: Diaco Soltanpour <dyaco8464@yahoo.com>
This commit was merged in pull request #3.
This commit is contained in:
2026-10-01 18:10:44 +00:00
committed by rhino
parent cbb1030641
commit d7f1929674
15 changed files with 161 additions and 126 deletions

View File

@@ -1,7 +1,7 @@
{% extends 'slips/base.html' %}
{% load static %}
{% block title %}Data Entry — Lithium Slip Manager{% endblock %}
{% block title %}Data Entry — Lithium Label Manager{% endblock %}
{% block nav_entry_active %}active{% endblock %}
{% block content %}
@@ -39,7 +39,7 @@
</div>
<div class="form-group">
<label for="new-weight" data-i18n="default_weight">Default Weight</label>
<input type="number" id="new-weight" value="5" step="0.1" min="0.1">
<input type="number" id="new-weight" value="5" step="1" min="1">
</div>
</div>
<div class="form-actions-inline">
@@ -67,15 +67,15 @@
<div class="form-row">
<div class="form-group">
<label for="total-weight" data-i18n="total_weight">Total Weight (kg)</label>
<input type="number" id="total-weight" required step="0.1" min="0.1" value="100">
<input type="number" id="total-weight" required step="1" min="1" value="100">
</div>
<div class="form-group">
<label for="canister-weight" data-i18n="canister_weight">Canister Weight (kg)</label>
<input type="number" id="canister-weight" required step="0.1" min="0.1" value="5">
<input type="number" id="canister-weight" required step="1" min="1" value="5">
</div>
<div class="form-group">
<label for="canisters-per-box" data-i18n="canisters_per_box">Canisters per Box</label>
<input type="number" id="canisters-per-box" required min="1" value="4">
<input type="number" id="canisters-per-box" required step="1" min="1" value="4">
</div>
</div>