summaryrefslogtreecommitdiff
path: root/components/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'components/index.html')
-rw-r--r--components/index.html33
1 files changed, 18 insertions, 15 deletions
diff --git a/components/index.html b/components/index.html
index 7c4cb82..d32154a 100644
--- a/components/index.html
+++ b/components/index.html
@@ -1,3 +1,4 @@
+{{define "main"}}
<!DOCTYPE html>
<html>
<head>
@@ -12,20 +13,21 @@
<div>
HELLO {{.ID}}
<br />
- You have {{len .Actions}} actions.
- <br />
- Your current score: {{.Score}}
- <br />
- {{ range .Actions }}
- Action Name: {{.Name}}
- <br />
- Action Magnitude: {{.Magnitude}}
- <br />
- Action Type: {{.Type}}
- <br />
- Repeatable: {{.Repeatable}}
- <br />
- {{end}}
+ <!-- You have {{len .Actions}} actions. -->
+ <!-- <br /> -->
+ <!-- Your current score: {{.Score}} -->
+ <!-- <br /> -->
+ <!-- {{ range .Actions }} -->
+ <!-- Action Name: {{.Name}} -->
+ <!-- <br /> -->
+ <!-- Action Magnitude: {{.Magnitude}} -->
+ <!-- <br /> -->
+ <!-- Action Type: {{.Type}} -->
+ <!-- <br /> -->
+ <!-- Repeatable: {{.Repeatable}} -->
+ <!-- <br /> -->
+ <!-- {{end}} -->
+ {{ template "UserScore" . }}
</div>
<div>
@@ -34,7 +36,7 @@
<label>Name:</label><br />
<input type="text" name="name"><br />
<label>Magnitude:</label><br />
- <input type="number" default="1" name="magnitude"><br />
+ <input type="number" value="1" name="magnitude"><br />
<label>Repeatable:</label><br />
<input type="checkbox" name="repeatable"></input><br />
<input type="radio" name="act_type" value="plus" checked>
@@ -47,3 +49,4 @@
</div>
</body>
</html>
+{{end}}