Actualiser index.html
CI / PHP Syntax Check (push) Has been cancelled
CI / JavaScript Lint (push) Has been cancelled
CI / Docker Build Test (push) Has been cancelled
CI / Validate Translation Files (push) Has been cancelled
CI / Auto-merge develop → main (push) Has been cancelled
CI / Create GitHub Release (push) Has been cancelled
CI / PHP Syntax Check (push) Has been cancelled
CI / JavaScript Lint (push) Has been cancelled
CI / Docker Build Test (push) Has been cancelled
CI / Validate Translation Files (push) Has been cancelled
CI / Auto-merge develop → main (push) Has been cancelled
CI / Create GitHub Release (push) Has been cancelled
This commit is contained in:
+26
@@ -1820,6 +1820,32 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="config-tab-content" id="config-tab-units" style="display:none">
|
||||||
|
<div class="settings-card">
|
||||||
|
<h4>📏 Unités</h4>
|
||||||
|
<p class="settings-hint">Ajoute des unités personnalisées (ex: kg, L) qui se convertissent automatiquement en g/ml/pz pour le stockage, mais s'affichent dans leur propre unité partout dans l'app.</p>
|
||||||
|
<div id="custom-units-list-container" style="margin-top:10px">
|
||||||
|
<p class="settings-hint">Chargement…</p>
|
||||||
|
</div>
|
||||||
|
<div class="form-group mt-2">
|
||||||
|
<label>➕ Nouvelle unité</label>
|
||||||
|
<div class="barcode-input-row">
|
||||||
|
<input type="text" id="new-unit-icon" class="form-input" style="max-width:70px;text-align:center" placeholder="📏" maxlength="4">
|
||||||
|
<input type="text" id="new-unit-key" class="form-input" style="max-width:80px" placeholder="Es: kg" maxlength="10">
|
||||||
|
<input type="text" id="new-unit-label" class="form-input" placeholder="Es: kg (Kilogrammes)">
|
||||||
|
</div>
|
||||||
|
<div class="barcode-input-row" style="margin-top:8px">
|
||||||
|
<select id="new-unit-base" class="form-input">
|
||||||
|
<option value="g">g (poids)</option>
|
||||||
|
<option value="ml">ml (volume)</option>
|
||||||
|
<option value="pz">pz (pièces)</option>
|
||||||
|
</select>
|
||||||
|
<input type="number" id="new-unit-factor" class="form-input" placeholder="Facteur (ex: 1000)" min="0.001" step="any">
|
||||||
|
<button class="btn btn-accent" onclick="addCustomUnitConfig()">➕</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<!-- ===== GEMINI CHAT ===== -->
|
<!-- ===== GEMINI CHAT ===== -->
|
||||||
|
|||||||
Reference in New Issue
Block a user