aboutsummaryrefslogtreecommitdiffstats
path: root/src/views/draft.mustache
diff options
context:
space:
mode:
Diffstat (limited to 'src/views/draft.mustache')
-rw-r--r--src/views/draft.mustache27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/views/draft.mustache b/src/views/draft.mustache
new file mode 100644
index 0000000..a7e52e8
--- /dev/null
+++ b/src/views/draft.mustache
@@ -0,0 +1,27 @@
+<div hx-get="/drafts/{{draft_id}}" hx-trigger="every 1s">
+ <strong>{{user.id}}</strong>
+<!-- <div hx-get="/drafts/{{draft_info.draft_id}}"> -->
+{{#draft_info}}
+<h1>{{league}}</h1>
+<div class="sticky">
+ <p>{{message}}</p>
+ {{#can_pick}}<p>Round Time Remaining: {{round_time_remaining}}</p>{{/can_pick}}
+</div>
+{{/draft_info}}
+ <table class="striped">
+ <thead>
+ <tr>
+ <th>Team</th>
+ <th>Division</th>
+ <th colspan="2">Rank</th>
+ </tr>
+ </thead>
+ <tbody>
+ {{#teams}}
+ <tr id="team-{{team_id}}">
+ {{> pick}}
+ </tr>
+ {{/teams}}
+ </tbody>
+ </table>
+</div>