From 3dd57cb4f69d8c2f00dae92fc164a316cafa7ad0 Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Mon, 24 Jan 2022 23:40:15 +0100 Subject: Create clubs and participants files also via template --- templates/club.txt.tpl | 4 ++++ templates/tireur.txt.tpl | 6 ++++++ 2 files changed, 10 insertions(+) create mode 100644 templates/club.txt.tpl create mode 100644 templates/tireur.txt.tpl (limited to 'templates') diff --git a/templates/club.txt.tpl b/templates/club.txt.tpl new file mode 100644 index 0000000..d38201c --- /dev/null +++ b/templates/club.txt.tpl @@ -0,0 +1,4 @@ +{{- /*gotype:github.com/Necoro/engarde-importer.EngardeConfig*/ -}} +{{ range .Clubs -}} + {[classe club] [nom "{{.Name}}"] [modifie vrai] [date_oed "332"] [cle {{.Id}}]} +{{ end }} \ No newline at end of file diff --git a/templates/tireur.txt.tpl b/templates/tireur.txt.tpl new file mode 100644 index 0000000..980b60a --- /dev/null +++ b/templates/tireur.txt.tpl @@ -0,0 +1,6 @@ +{{- /*gotype:github.com/Necoro/engarde-importer.EngardeConfig*/ -}} +{{ range .Participants -}} + {[classe tireur] [sexe {{.Gender.Engarde}}] [presence present] [carton_coach non] [status normal] + [medical non] [lateralite droite] [nom " {{.LastName | upper}} "] [prenom " {{.FirstName}} "] + [points 1.0] [date_oed "340"] [cle {{.Id}}] [club1 {{.ClubId}}]} +{{ end }} \ No newline at end of file -- cgit v1.2.3-54-g00ecf