feat: suivre la température pendant les tournées

This commit is contained in:
Alexandre NOEL 2026-09-15 15:43:00 +02:00
commit d35434c522
15 changed files with 129 additions and 23 deletions

View file

@ -347,6 +347,16 @@ $fieldOptions = [
type="radio" name="<?= h($field) ?>" value="<?= h($value) ?>"
<?= (($obs[$field] ?? array_key_first($options)) === $value) ? 'checked' : '' ?>><span><?= h($label) ?></span></label><?php endforeach; ?>
</div><?php endforeach; ?>
<div class="mb-2">
<label class="form-label fw-bold" for="temperature-<?= (int)$a['id'] ?>">🌡️ <?= h(t('care.temperature')) ?></label>
<div class="input-group">
<input class="form-control" id="temperature-<?= (int)$a['id'] ?>"
name="temperature_c" type="number" min="30" max="45" step="0.1"
inputmode="decimal" required
value="<?= h(number_format((float)($obs['temperature_c'] ?? 38.5), 1, '.', '')) ?>">
<span class="input-group-text">°C</span>
</div>
</div>
<?php foreach ($treatmentsByAnimal[(int)$a['id']] ?? [] as $t): ?><div
class="card card-sm bg-purple-lt mb-2">
<div class="card-body py-2"><strong>💊 <?= h($t['medication_name']) ?></strong>