Events: kickstart shared scoreboard
This commit is contained in:
@@ -15,6 +15,13 @@
|
||||
.alert.alert-primary role="alert"
|
||||
= t("events.form.shared_scoreboard_message")
|
||||
|
||||
if method == :patch
|
||||
.row.mb-3
|
||||
.col
|
||||
.form-floating
|
||||
= form.select :lang, Languages::AVAILABLE_LANGUAGES.map { |lang| [ lang[:name], lang[:id] ] }, {}, class: "form-select"
|
||||
= form.label :lang
|
||||
|
||||
.row.mt-4
|
||||
.col
|
||||
- if method == :patch
|
||||
|
||||
@@ -8,7 +8,14 @@
|
||||
a.mt-3.btn.btn-primary.mb-4 href=new_contest_path(event: @event.id)
|
||||
= t("events.show.new_contest")
|
||||
|
||||
.row.row-cols-1.row-cols-md-3.g-4
|
||||
- if @event.shared_scoreboard
|
||||
a.btn.btn-success href="/public/event/#{@event.slug}" style="margin-top: -6px;"
|
||||
= t("events.show.open_shared_scoreboard")
|
||||
- else
|
||||
a.btn.btn-success.disabled style="margin-top: -6px;"
|
||||
= t("events.show.shared_scoreboard_disabled")
|
||||
|
||||
.mt-3.row.row-cols-1.row-cols-md-3.g-4
|
||||
- @contests.each do |contest|
|
||||
.col
|
||||
css:
|
||||
|
||||
Reference in New Issue
Block a user