xref: /webtrees/resources/views/admin/import-progress.phtml (revision ad7270802ba57a28d195fc58fcc55f26458a779a)
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<script>
17  $("#import<?= e($tree->id()) ?>")
18      .load("<?= route('import', ['ged' => $tree->name()]) ?>", {});
19</script>
20