1<?php use Fisharebest\Webtrees\I18N; ?> 2 3<?= view('components/breadcrumbs', ['links' => [route('admin-control-panel') => I18N::translate('Control panel'), $title]]) ?> 4 5<h1><?= $title ?></h1> 6 7<p> 8 <?= I18N::translate('Files marked with %s are required for proper operation and cannot be removed.', view('icons/ban')) ?> 9</p> 10 11<form method="post"> 12 <input type="hidden" value="admin-clean-data"> 13 <?= csrf_field() ?> 14 <ul class="fa-ul"> 15 <?php 16 foreach ($entries as $entry) { 17 if (in_array($entry, $protected, true)) { 18 echo '<li><span class="fa-li">' . view('icons/ban') . '</span>', e($entry), '</li>'; 19 } else { 20 echo '<li><span class="fa-li">' . view('icons/delete') . '</span>'; 21 echo '<label>'; 22 echo '<input type="checkbox" name="to_delete[]" value="', e($entry), '"> '; 23 echo e($entry); 24 echo '</label></li>'; 25 } 26 } 27 ?> 28 </ul> 29 30 <button class="btn btn-danger" type="submit"> 31 <?= view('icons/delete') ?> 32 <?= /* I18N: A button label. */ I18N::translate('delete') ?> 33 </button> 34</form> 35