summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.eu>2022-01-24 23:40:15 +0100
committerRené 'Necoro' Neumann <necoro@necoro.eu>2022-01-24 23:40:15 +0100
commit3dd57cb4f69d8c2f00dae92fc164a316cafa7ad0 (patch)
tree54b5963124dc660e07742b9d764cf40078478112 /templates
parentbee1831ddc82ee2b941e288aaa7480cfa0d82857 (diff)
downloadengarde-importer-3dd57cb4f69d8c2f00dae92fc164a316cafa7ad0.tar.gz
engarde-importer-3dd57cb4f69d8c2f00dae92fc164a316cafa7ad0.tar.bz2
engarde-importer-3dd57cb4f69d8c2f00dae92fc164a316cafa7ad0.zip
Create clubs and participants files also via template
Diffstat (limited to 'templates')
-rw-r--r--templates/club.txt.tpl4
-rw-r--r--templates/tireur.txt.tpl6
2 files changed, 10 insertions, 0 deletions
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