1<?php use Fisharebest\Webtrees\I18N; ?> 2 3<div class="progress" id="progress<?= e($tree->id()) ?>"> 4 <div 5 class="progress-bar" 6 role="progressbar" 7 aria-valuenow="<?= $progress * 100 ?>" 8 aria-valuemin="0" 9 aria-valuemax="100" 10 style="width: <?= $progress * 100 ?>%; min-width: 40px;" 11 > 12 <?= I18N::percentage($progress, 1) ?> 13 </div> 14</div> 15 16<?php if ($errors === ''): ?> 17 <script> 18 $("#import<?= e($tree->id()) ?>") 19 .load("<?= route('import', ['ged' => $tree->name()]) ?>", {}); 20 </script> 21<?php else: ?> 22 <div class="alert alert-danger"> 23 <?= $errors ?> 24 </div> 25 26 <button class="btn btn-primary" onclick="" id="error-button-<?= $tree->id() ?>"> 27 <?= I18N::translate('continue') ?> 28 </button> 29 30 <script> 31 $("#error-button-<?= $tree->id() ?>").click(function () { 32 $("#import<?= e($tree->id()) ?>") 33 .load("<?= route('import', ['ged' => $tree->name()]) ?>", {}); 34 }); 35 </script> 36<?php endif ?> 37