From ae7ef10b67737f08a86743f687bca30a12e9e17a Mon Sep 17 00:00:00 2001 From: salmonik Date: Sun, 12 Jul 2026 19:38:03 +0200 Subject: first stable --- templates/instances/create.html | 115 ++++++++++++++++++++++++++++++++++++++++ templates/instances/edit.html | 62 ++++++++++++++++++++++ templates/instances/list.html | 50 +++++++++++++++++ 3 files changed, 227 insertions(+) create mode 100644 templates/instances/create.html create mode 100644 templates/instances/edit.html create mode 100644 templates/instances/list.html (limited to 'templates/instances') diff --git a/templates/instances/create.html b/templates/instances/create.html new file mode 100644 index 0000000..45f70f4 --- /dev/null +++ b/templates/instances/create.html @@ -0,0 +1,115 @@ +{% extends "base.html" %} +{% block content %} +

Create Instance

+ +{% if let Some(msg) = error %} +
{{ msg }}
+{% endif %} + +
+
+ Basic Info + + + + +
+ +
+ World + +
+ + +
+ + +
+ +
+ Server Properties + + + + + +
+ + +
+ + +{% endblock %} diff --git a/templates/instances/edit.html b/templates/instances/edit.html new file mode 100644 index 0000000..356c7cd --- /dev/null +++ b/templates/instances/edit.html @@ -0,0 +1,62 @@ +{% extends "base.html" %} +{% block content %} +

Edit: {{ instance.name }}

+ +
+
+ Version: {{ instance.version }} + Type: {{ instance.server_type }} + World: {{ instance.world_source }} + {% if let Some(seed) = instance.world_seed %} + Seed: {{ seed }} + {% endif %} + {% if instance.has_modpack %} + Modpack: Installed + {% endif %} +
+
+ +
+
+ Server Properties + + + + + + +
+ +
+ + Cancel +
+
+{% endblock %} diff --git a/templates/instances/list.html b/templates/instances/list.html new file mode 100644 index 0000000..b8b2337 --- /dev/null +++ b/templates/instances/list.html @@ -0,0 +1,50 @@ +{% extends "base.html" %} +{% block content %} + + +{% if instances.is_empty() %} +
+

No instances yet. Create one to get started.

+
+{% else %} +
+ {% for inst in instances %} +
+ {% if inst.is_active %} +
ACTIVE
+ {% endif %} +

{{ inst.name }}

+
+ {{ inst.version }} + {{ inst.server_type }} + {% if inst.has_modpack %} + Modded + {% endif %} +
+
+ {% if !inst.is_active %} +
+ +
+ {% else %} +
+ +
+ {% endif %} + Edit + Backups + {% if !inst.is_active %} +
+ +
+ {% endif %} +
+
+ {% endfor %} +
+{% endif %} +{% endblock %} -- cgit v1.2.3