Files
wizarr/app/templates/servers/index.html
Matthieu B 187b8758c1 Refactor wizard templates and JavaScript controller
- Updated title block in frame.html for clarity.
- Improved localization for the "Next" button in steps.html.
- Refactored the WizardController JavaScript for better readability and organization.
- Added detailed comments to the wizard architecture for future reference.
- Enhanced button visibility and state management based on interaction requirements.
- Implemented swipe gesture handling for mobile navigation.
- Updated subproject commit to indicate a dirty state.
2025-10-07 14:01:16 +02:00

44 lines
1.8 KiB
HTML

{% extends 'base.html' %}
{% block content %}
<section class="p-8">
<h1 class="text-2xl mb-4">{{ _("Media Servers") }}</h1>
<a href="{{ url_for('media_servers.create_server') }}"
class="bg-blue-600 text-white px-4 py-2 rounded">{{ _("Add Server") }}</a>
<table class="min-w-full mt-6 border">
<thead>
<tr>
<th class="px-4 py-2 border">{{ _("Name") }}</th>
<th class="px-4 py-2 border">{{ _("Type") }}</th>
<th class="px-4 py-2 border">{{ _("URL") }}</th>
<th class="px-4 py-2 border">{{ _("Verified") }}</th>
<th class="px-4 py-2 border">{{ _("Actions") }}</th>
</tr>
</thead>
<tbody>
{% for s in servers %}
<tr class="border-t">
<td class="px-4 py-2 border">{{ s.name }}</td>
<td class="px-4 py-2 border">{{ s.server_type|title }}</td>
<td class="px-4 py-2 border">{{ s.url }}</td>
<td class="px-4 py-2 border">{{ '✅' if s.verified else '❌' }}</td>
<td class="px-4 py-2 border text-right">
<a href="{{ url_for('media_servers.edit_server', server_id=s.id) }}"
class="text-blue-600 mr-2">{{ _("Edit") }}</a>
<form action="{{ url_for('media_servers.delete_server', server_id=s.id) }}"
method="post"
style="display:inline"
onsubmit="return confirm('{{ _("Delete this server?") }}');">
<button type="submit" class="text-red-600">{{ _("Delete") }}</button>
</form>
</td>
</tr>
{% else %}
<tr>
<td colspan="5" class="px-4 py-6 text-center text-gray-500">{{ _("No servers configured yet.") }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</section>
{% endblock content %}