From 7e6240733bd58942838b13b25d2b1732c44d6a79 Mon Sep 17 00:00:00 2001 From: Keith Solomon Date: Mon, 6 Jul 2026 21:30:17 -0500 Subject: [PATCH] feat: add home and team editor templates --- src/Views/home.php | 19 +++++++++ src/Views/team-editor.php | 87 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 106 insertions(+) create mode 100644 src/Views/home.php create mode 100644 src/Views/team-editor.php diff --git a/src/Views/home.php b/src/Views/home.php new file mode 100644 index 0000000..81143f2 --- /dev/null +++ b/src/Views/home.php @@ -0,0 +1,19 @@ + Escape::html($v); + $a = static fn (string $v): string => Escape::attr($v); + ?> +

BattleForge

+

New scenario

+

Recent scenarios

+

No saved scenarios yet.

+ + $old Optional old form values, keyed by field name; HTML-escaped on output. + * @var array $post Raw form data (for repopulating per-unit fields). + */ +$e = static fn (string $v): string => Escape::html($v); +$a = static fn (string $v): string => Escape::attr($v); +$archetypes = ArchetypeCatalog::templates(); +?> +

Team editor

+ +

+ +
+ +
+ Scenario + + + + +
+
+ Team A + +
+ + + + + + + + + + +
+ +
+
+ Team B + +
+ + + + + + + + + + +
+ +
+
+ Victory + + + +
+ +
+