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