-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Übersetzung auf Deutsch und markierung von baustellen
- Loading branch information
Showing
6 changed files
with
26 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{% extends "layout.html" %} {% block content %} | ||
|
||
<h1> | ||
Baustelle | ||
</h1> | ||
|
||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,106 +1,5 @@ | ||
{% extends "layout.html" %} {% block content %} | ||
<div class="flex items-center"> | ||
<h1 class="text-lg font-semibold md:text-2xl">IP Addresses</h1> | ||
<div class="flex gap-2 ml-auto"> | ||
<a href="/ip/add" class="inline-flex items-center justify-center px-3 text-sm font-medium transition-colors bg-gray-700 rounded-md whitespace-nowrap ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 -foreground hover:/90 h-9"> | ||
Add IP | ||
</a> | ||
<button | ||
class="inline-flex items-center justify-center px-3 text-sm font-medium transition-colors bg-gray-700 rounded-md whitespace-nowrap ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 -foreground hover:/90 h-9"> | ||
Edit IP | ||
</button> | ||
<button | ||
class="inline-flex items-center justify-center px-3 text-sm font-medium transition-colors bg-gray-700 rounded-md whitespace-nowrap ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 -foreground hover:/90 h-9"> | ||
Reassign IP | ||
</button> | ||
</div> | ||
</div> | ||
<div class="flex items-center justify-between mb-4"> | ||
<div class="flex gap-2"> | ||
<label for="filter" class="mr-2 font-medium"> | ||
Filter by: | ||
</label> | ||
<select id="filter" class="p-2 border rounded-md"> | ||
<option value="">All</option> | ||
<option value="active">Active</option> | ||
<option value="inactive">Inactive</option> | ||
</select> | ||
</div> | ||
<div class="flex gap-2"> | ||
<label for="sort" class="mr-2 font-medium"> | ||
Sort by: | ||
</label> | ||
<select id="sort" class="p-2 border rounded-md"> | ||
<option value="">None</option> | ||
<option value="asc">IP Ascending</option> | ||
<option value="desc">IP Descending</option> | ||
</select> | ||
</div> | ||
</div> | ||
{% if data and data.hosts %} | ||
<div class="border rounded-lg shadow-sm"> | ||
<div class="relative w-full overflow-auto"> | ||
<table class="w-full text-sm caption-bottom"> | ||
<thead> | ||
<tr class="border-b "> | ||
<th | ||
class="h-12 px-4 text-left align-middle font-medium text-muted-foreground w-[100px]"> | ||
IP Address | ||
</th> | ||
<th | ||
class="h-12 px-4 text-left align-middle font-medium text-muted-foreground max-w-[150px]"> | ||
Status | ||
</th> | ||
<th | ||
class="hidden h-12 px-4 font-medium text-left align-middle text-muted-foreground md:table-cell"> | ||
Name | ||
</th> | ||
<th | ||
class="h-12 px-4 font-medium text-left align-middle text-muted-foreground "> | ||
Ports | ||
</th> | ||
<th | ||
class="h-12 px-4 font-medium text-left align-middle text-muted-foreground "> | ||
Actions | ||
</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for host in data.hosts %} | ||
<tr class="border-b "> | ||
<td class="p-4 font-medium align-middle"> | ||
{{ host.ip }}</td> | ||
<td class="p-4 align-middle "> | ||
{% if pingable %} | ||
<i class="text-green-500 material-symbols-outlined" style="font-size:24px;">check_circle</i> | ||
{% else %} | ||
<i class="text-red-500 material-symbols-outlined" style="font-size:24px;">cancel</i> | ||
{% endif %} | ||
</td> | ||
<td class="hidden p-4 align-middle md:table-cell"> | ||
{{ host.name }}</td> | ||
<td class="p-4 align-middle ">{{ host.ports[0]|join(", ") }}</td> | ||
<td class="p-4 align-middle "> | ||
<button | ||
class="inline-flex items-center justify-center px-3 text-sm font-medium transition-colors bg-gray-700 rounded-md whitespace-nowrap ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 -foreground hover:/90 h-9"> | ||
Edit | ||
</button> | ||
<button | ||
class="inline-flex items-center justify-center px-3 ml-2 text-sm font-medium transition-colors bg-gray-700 rounded-md whitespace-nowrap ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 -foreground hover:/90 h-9"> | ||
Reassign | ||
</button> | ||
<a href="/ip/delete/{{ host.id }}" | ||
class="inline-flex items-center justify-center px-3 ml-2 text-sm font-medium transition-colors bg-gray-700 rounded-md whitespace-nowrap ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 -foreground hover:/90 h-9"> | ||
Delete | ||
</a> | ||
</td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
{% else %} | ||
<p class="text-center text-gray-500">No data available.</p> | ||
{% endif %} | ||
|
||
<H1>Baustelle</H1> | ||
|
||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
{% extends "layout.html" %} {% block content %} | ||
|
||
<h1> | ||
Baustelle | ||
</h1> | ||
|
||
{% endblock %} |