xref: /webtrees/resources/views/admin/import-progress.phtml (revision aa6f03bb51be5a55a78fe8aed18753116689a6d3)
1dd6b2bfcSGreg Roach<?php use Fisharebest\Webtrees\I18N; ?>
2dd6b2bfcSGreg Roach
372cf66d4SGreg Roach<div class="progress" id="progress<?= e($tree->id()) ?>">
4dd6b2bfcSGreg Roach    <div
5dd6b2bfcSGreg Roach        class="progress-bar"
6dd6b2bfcSGreg Roach        role="progressbar"
7dd6b2bfcSGreg Roach        aria-valuenow="<?= $progress * 100 ?>"
8dd6b2bfcSGreg Roach        aria-valuemin="0"
9dd6b2bfcSGreg Roach        aria-valuemax="100"
10dd6b2bfcSGreg Roach        style="width: <?= $progress * 100 ?>%; min-width: 40px;"
11dd6b2bfcSGreg Roach    >
12dd6b2bfcSGreg Roach        <?= I18N::percentage($progress, 1) ?>
13dd6b2bfcSGreg Roach    </div>
14dd6b2bfcSGreg Roach</div>
15dd6b2bfcSGreg Roach
16dd6b2bfcSGreg Roach<script>
1772cf66d4SGreg Roach  $("#import<?= e($tree->id()) ?>")
18*aa6f03bbSGreg Roach      .load("<?= route('import', ['ged' => $tree->name()]) ?>", {});
19dd6b2bfcSGreg Roach</script>
20