Some improvements
This commit is contained in:
@@ -29,15 +29,22 @@
|
||||
tr
|
||||
th scope="col"
|
||||
| Time since start
|
||||
th scope="col"
|
||||
| Relative time
|
||||
th scope="col"
|
||||
| Puzzle
|
||||
tbody
|
||||
- @completions.each do |completion|
|
||||
tr scope="row"
|
||||
td
|
||||
= link_to completion.time_seconds, edit_contest_completion_path(@contest, completion, contestant.id)
|
||||
= completion.display_time_from_start
|
||||
td
|
||||
= completion.puzzle.name
|
||||
= completion.display_relative_time
|
||||
td
|
||||
| #{completion.puzzle.name} - #{completion.puzzle.brand}
|
||||
td
|
||||
a.btn.btn-sm.btn-secondary href=edit_contest_completion_path(@contest, completion, contestant.id)
|
||||
| Edit
|
||||
.row
|
||||
.col
|
||||
a.btn.btn-primary href=new_contest_completion_path(@contest, contestant_id: contestant.id)
|
||||
|
@@ -10,13 +10,13 @@
|
||||
= form.check_box :team, class: "form-check-input"
|
||||
= form.label :team
|
||||
| Team contest
|
||||
.form-text For registration and UI display purposes
|
||||
.form-text For UI display purposes mainly
|
||||
.row.mb-3
|
||||
.col
|
||||
.form-check.form-switch
|
||||
= form.check_box :allow_registration, class: "form-check-input"
|
||||
= form.label :allow_registration
|
||||
.form-text Generates a registration form for this contest
|
||||
.form-text Generates a shareable registration form for this contest
|
||||
.row
|
||||
.col
|
||||
= form.submit submit_text, class: "btn btn-primary"
|
@@ -11,7 +11,7 @@
|
||||
| Edit contest
|
||||
|
||||
.row.mb-4
|
||||
.col-8
|
||||
.col-6
|
||||
.row
|
||||
.col
|
||||
h4
|
||||
@@ -33,7 +33,7 @@
|
||||
.col
|
||||
a.btn.btn-primary href=new_contest_puzzle_path(@contest)
|
||||
| Add puzzle
|
||||
.col-4
|
||||
.col-6
|
||||
.row
|
||||
.col
|
||||
h4
|
||||
@@ -49,10 +49,15 @@
|
||||
- @contestants.each do |contestant|
|
||||
tr scope="row"
|
||||
td
|
||||
= link_to contestant.name, edit_contest_contestant_path(@contest, contestant)
|
||||
= contestant.name
|
||||
td
|
||||
= contestant.completions.length
|
||||
.row
|
||||
td
|
||||
a.btn.btn-sm.btn-secondary href=edit_contest_contestant_path(@contest, contestant)
|
||||
| Open
|
||||
a.btn.btn-sm.btn-secondary.ms-2 href=new_contest_completion_path(@contest, contestant_id: contestant.id)
|
||||
| Add completion
|
||||
.row.mt-4
|
||||
.col
|
||||
a.btn.btn-primary href=new_contest_contestant_path(@contest)
|
||||
| Add contestant
|
||||
|
Reference in New Issue
Block a user