Files
michaelschiemer/src/Application/Admin/templates/routes.view.php
Michael Schiemer 55a330b223 Enable Discovery debug logging for production troubleshooting
- Add DISCOVERY_LOG_LEVEL=debug
- Add DISCOVERY_SHOW_PROGRESS=true
- Temporary changes for debugging InitializerProcessor fixes on production
2025-08-11 20:13:26 +02:00

47 lines
1.5 KiB
PHP

<layout src="admin-main"/>
<div class="admin-content">
<h1>{{ title }}</h1>
<div class="admin-tools">
<input type="text" id="routeFilter" placeholder="Routen filtern..." class="search-input">
</div>
<table class="admin-table" id="routesTable">
<thead>
<tr>
<th>Pfad</th>
<th>Methode</th>
<th>Controller</th>
<th>Handler</th>
<th>Name</th>
<th>Middleware</th>
</tr>
</thead>
<tbody>
<for var="route" in="routes">
<tr>
<td>{{ route.path }}</td>
<td><span class="method-badge method-{{ route.method | lower }}">{{ route.method }}</span></td>
<td>{{ route.controller }}</td>
<td>{{ route.handler }}</td>
<td>{{ route.name | default('-') }}</td>
<td>{{ route.middleware | join(', ') | default('-') }}</td>
</tr>
</for>
</tbody>
</table>
</div>
<script>
document.getElementById('routeFilter').addEventListener('input', function() {
const filterValue = this.value.toLowerCase();
const rows = document.querySelectorAll('#routesTable tbody tr');
rows.forEach(row => {
const text = row.textContent.toLowerCase();
row.style.display = text.includes(filterValue) ? '' : 'none';
});
});
</script>