Corriger les liens et la synchronisation i-CAD
This commit is contained in:
parent
7b89fd5dfa
commit
9ff26ad9be
10 changed files with 83 additions and 23 deletions
|
|
@ -225,7 +225,7 @@ $hasCurrent = ($currentLat !== null && $currentLng !== null);
|
|||
|
||||
<div class="alert alert-success mt-3">
|
||||
<strong><?= h(t('animal.adopted_by')) ?> :</strong><br>
|
||||
<?php if (!empty($adoption['adopter_contact_id'])): ?><a class="fw-bold" href="/directory/show?id=<?= (int)$adoption['adopter_contact_id'] ?>"><?= h($adoption['adopter_name']) ?></a><?php else: ?><span class="fw-bold"><?= h($adoption['adopter_name']) ?></span><?php endif; ?>
|
||||
<?php if (!empty($adoption['adopter_contact_id'])): ?><a class="fw-bold" href="/directory/view?id=<?= (int)$adoption['adopter_contact_id'] ?>"><?= h($adoption['adopter_name']) ?></a><?php else: ?><span class="fw-bold"><?= h($adoption['adopter_name']) ?></span><?php endif; ?>
|
||||
<div class="small mt-1"><?= h(trim(implode(' · ', array_filter([
|
||||
trim((string)($adoption['adopter_address'] ?? '') . ' ' . (string)($adoption['adopter_postal_code'] ?? '') . ' ' . (string)($adoption['adopter_city'] ?? '')),
|
||||
$adoption['adopter_phone'] ?? '', $adoption['adopter_email'] ?? ''
|
||||
|
|
@ -316,10 +316,14 @@ $err = (string)($cache['error'] ?? '');
|
|||
</a>
|
||||
<?php endif; ?>
|
||||
|
||||
<button class="btn btn-sm btn-outline-secondary" type="button" id="btn-icad-refresh"
|
||||
data-animal-id="<?= (int)$animal['id'] ?>">
|
||||
<?= h(t('common.refresh')) ?>
|
||||
</button>
|
||||
<form method="post" action="/animal/icad" id="form-icad-refresh" class="m-0">
|
||||
<input type="hidden" name="csrf" value="<?= h(Auth::csrf()) ?>">
|
||||
<input type="hidden" name="id" value="<?= (int)$animal['id'] ?>">
|
||||
<input type="hidden" name="force" value="1">
|
||||
<button class="btn btn-sm btn-outline-secondary" type="submit" id="btn-icad-refresh">
|
||||
<?= h(t('common.refresh')) ?>
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue