From 574fd098228f5b63d10a4a739ee7b8e6c668a671 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sun, 11 Aug 2024 22:33:34 +0200 Subject: More work on mintages --- template/coins_mintages.templ | 34 +++++++++++++++++++--------------- 1 file changed, 19 insertions(+), 15 deletions(-) (limited to 'template') diff --git a/template/coins_mintages.templ b/template/coins_mintages.templ index b6ed2de..47940e1 100644 --- a/template/coins_mintages.templ +++ b/template/coins_mintages.templ @@ -17,7 +17,7 @@ var denoms = [...]float64{ templ CoinsMintages() { {{ code := ctx.Value("code").(string) - set := ctx.Value("set").(mintage.Set) + table := ctx.Value("table").([]mintage.Row) p := ctx.Value("printer").(lib.Printer) }}
@@ -45,7 +45,7 @@ templ CoinsMintages() {
- - - + @coinTypeRadio("circ", p.T("Circulation Coins")) + @coinTypeRadio("nifc", p.T("NIFC / BU Sets")) + @coinTypeRadio("proof", p.T("Proof Coins"))
@@ -83,7 +74,7 @@ templ CoinsMintages() { } - for _, row := range set.Circ { + for _, row := range table { if row.Mintmark != "" { @@ -110,3 +101,16 @@ templ CoinsMintages() { } + +templ coinTypeRadio(short, long string) { + +} -- cgit v1.2.3