fix: add missing meshy_margin_pct input in new_job form
Deploy via Portainer / deploy (push) Successful in 1s

This commit is contained in:
Jo
2026-07-16 15:10:06 +02:00
parent 0619559190
commit 0d146e241d
+22 -8
View File
@@ -295,15 +295,29 @@
</label> </label>
</div> </div>
<div id="meshyCreditsRow" class="{% if not (prefill and prefill.meshy_enabled) %}d-none{% endif %}"> <div id="meshyCreditsRow" class="{% if not (prefill and prefill.meshy_enabled) %}d-none{% endif %}">
<label class="form-label small fw-semibold text-muted mb-1">Crédits utilisés</label> <div class="row g-2">
<div class="input-group input-group-sm" style="max-width:180px"> <div class="col-auto">
<input type="number" name="meshy_credits_used" id="meshy_credits_used" <label class="form-label small fw-semibold text-muted mb-1">Crédits utilisés</label>
class="form-control" min="0" step="1" <div class="input-group input-group-sm" style="max-width:180px">
value="{{ prefill.meshy_credits_used if prefill else 0 }}" <input type="number" name="meshy_credits_used" id="meshy_credits_used"
oninput="recalc()"> class="form-control" min="0" step="1"
<span class="input-group-text">crédits</span> value="{{ prefill.meshy_credits_used if prefill else 0 }}"
oninput="recalc()">
<span class="input-group-text">crédits</span>
</div>
</div>
<div class="col-auto">
<label class="form-label small fw-semibold text-muted mb-1">Marge Meshy (%)</label>
<div class="input-group input-group-sm" style="max-width:140px">
<input type="number" name="meshy_margin_pct" id="meshy_margin_pct"
class="form-control" min="0" max="500" step="1"
value="{{ prefill.meshy_margin_pct if prefill else settings.get('meshy_default_margin_pct', 30) }}"
oninput="recalc()">
<span class="input-group-text">%</span>
</div>
</div>
</div> </div>
<div class="form-text" id="meshyCostHint"></div> <div class="form-text mt-1" id="meshyCostHint"></div>
</div> </div>
</div> </div>
</div> </div>