Corrige la localisation actuelle des animaux

This commit is contained in:
Alexandre NOEL 2026-09-13 15:57:57 +02:00
commit 68590eddbb
9 changed files with 80 additions and 36 deletions

View file

@ -422,22 +422,6 @@ $estMonths = $birth_estimated_months > 0 ? ($birth_estimated_months % 12) : '';
</div>
</div>
<div class="row">
<div class="col-md-8">
<div class="text-muted"><?= h(t('animal.rescue_location')) ?></div>
<input class="form-control" type="text" name="rescue_address"
value="<?= h($animal['rescue_address'] ?? '') ?>"
placeholder="<?= h(t('animal.rescue_location_placeholder')) ?>">
<div class="text-muted small mt-1"><?= h(t('animal.geocode_help')) ?></div>
</div>
<div class="col-md-4">
<div class="text-muted"><?= h(t('animal.form.current_location')) ?></div>
<input class="form-control" type="text" name="current_address"
value="<?= h($animal['current_address'] ?? '5 RUE NOTRE DAME 29260 LESNEVEN') ?>"
<?= $isArchivedEdit ? 'readonly' : '' ?> disabled>
</div>
</div>
</div>
</div>
</div>
@ -534,7 +518,7 @@ $estMonths = $birth_estimated_months > 0 ? ($birth_estimated_months % 12) : '';
</div>
<div class="row g-3">
<div class="col-md-6">
<div class="col-md-4">
<label class="form-label"><?= h(t('animal.form.origin_city')) ?></label>
<input type="text" name="rescue_location_name" class="form-control"
value="<?= h($animal['rescue_location_name'] ?? '') ?>"
@ -547,17 +531,20 @@ $estMonths = $birth_estimated_months > 0 ? ($birth_estimated_months % 12) : '';
value="<?= h($animal['rescue_lng'] ?? '') ?>">
</div>
<div class="col-md-6">
<div class="col-md-4">
<label class="form-label"><?= h(t('animal.rescue_location')) ?></label>
<input class="form-control" type="text" name="rescue_address"
value="<?= h($animal['rescue_address'] ?? '') ?>"
placeholder="<?= h(t('animal.rescue_location_placeholder')) ?>">
<div class="form-hint"><?= h(t('animal.geocode_help')) ?></div>
</div>
<div class="col-md-4">
<label class="form-label"><?= h(t('animal.form.current_location')) ?></label>
<input type="text" name="location_name" class="form-control"
value="<?= h($animal['location_name'] ?? '5 Rue Notre Dame 29260 LESNEVEN') ?>"
<input type="text" name="current_address" class="form-control"
value="<?= h($animal['current_address'] ?? '') ?>"
readonly>
<div class="form-hint"><?= h(t('animal.form.current_location_hint')) ?></div>
<input type="hidden" name="location_lat"
value="<?= h($animal['location_lat'] ?? '') ?>">
<input type="hidden" name="location_lng"
value="<?= h($animal['location_lng'] ?? '') ?>">
</div>
</div>
</div>