+
Import CSV
+
+
+ {#if result}
+
+
Result
+ {#if result.success}
+
Import completed successfully.
+ {:else}
+
Import completed with errors.
+ {/if}
+
+ {#if result.summary}
+
+ - Players created: {result.summary.playersCreated}
+ - Players skipped (already exist): {result.summary.playersSkipped}
+ - Registrations created: {result.summary.registrationsCreated}
+
+ {/if}
+
+ {#if result.playersCreated && result.playersCreated.length > 0}
+
+ Created players ({result.playersCreated.length})
+
+ {#each result.playersCreated as name}
+ - {name}
+ {/each}
+
+
+ {/if}
+
+ {#if result.registrationsCreated && result.registrationsCreated.length > 0}
+
+ Created registrations ({result.registrationsCreated.length})
+
+ {#each result.registrationsCreated as reg}
+ - {reg}
+ {/each}
+
+
+ {/if}
+
+ {#if result.errors && result.errors.length > 0}
+
+ Errors ({result.errors.length})
+
+ {#each result.errors as err}
+ - {err}
+ {/each}
+
+
+ {/if}
+
+ {/if}
+
diff --git a/temp.csv b/temp.csv
new file mode 100644
index 0000000..6df6d7a
--- /dev/null
+++ b/temp.csv
@@ -0,0 +1,31 @@
+First Name,Last name,Bracket,Event,Class,,
+,,A,100m,10 East,,Change the top row in the class column to change all rows (the red one)
+,,B,100m,10 East,,"MUST be in the format ""NUMBER HOUSE"" with the house capitalised"
+,,C,100m,10 East,,"eg ""10 East"" or ""7 West"""
+,,A,200m,10 East,,"Please return the file with the same name (eg ""10 East.xlsx"") for my sanity"
+,,B,200m,10 East,,"Any returned with generic file names may be filed incorrectly (no ""Book 3"" etc)"
+,,C,200m,10 East,,
+,,A,400m,10 East,,
+,,B,400m,10 East,,
+,,C,400m,10 East,,
+,,A,800m,10 East,,
+,,B,800m,10 East,,
+,,C,800m,10 East,,
+,,A,1500m,10 East,,
+,,B,1500m,10 East,,
+,,C,1500m,10 East,,
+,,A,Javelin,10 East,,
+,,B,Javelin,10 East,,
+,,C,Javelin,10 East,,
+,,A,Shotput,10 East,,
+,,B,Shotput,10 East,,
+,,C,Shotput,10 East,,
+,,A,Long Jump,10 East,,
+,,B,Long Jump,10 East,,
+,,C,Long Jump,10 East,,
+,,A,High Jump,10 East,,
+,,B,High Jump,10 East,,
+,,C,High Jump,10 East,,
+,,A,Triple Jump,10 East,,
+,,B,Triple Jump,10 East,,
+,,C,Triple Jump,10 East,,