summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/views/runs/new.html.erb54
1 files changed, 30 insertions, 24 deletions
diff --git a/app/views/runs/new.html.erb b/app/views/runs/new.html.erb
index 0c5c3ad..3471828 100644
--- a/app/views/runs/new.html.erb
+++ b/app/views/runs/new.html.erb
@@ -1,31 +1,37 @@
-<%= form_with model: @run do |f| %>
- <div>
- <%= f.label :game_id, "Game" %>
- <%= f.collection_select :game_id, Game.all, :id, :title, {prompt: "Choose..."} %>
- </div>
+<div class="space-y-4">
+ <h1>Start a run</h1>
- <div>
- <%= f.label :title %>
- <%= f.text_field :title %>
- </div>
+ <p>This run will start checked out to you.</p>
- <div>
- <%= f.label :description %>
- <%= f.text_area :description %>
- </div>
+ <%= form_with model: @run, class: "space-y-4" do |f| %>
+ <div>
+ <%= f.label :game_id, "Game" %>
+ <%= f.collection_select :game_id, Game.all, :id, :title, {prompt: "Choose..."} %>
+ </div>
+
+ <div>
+ <%= f.label :title %>
+ <%= f.text_field :title %>
+ </div>
- <div>
- <%= f.submit "Start run", class: "btn-primary" %>
- </div>
+ <div>
+ <%= f.label :description %>
+ <%= f.text_area :description %>
+ </div>
- <% if @run.errors.any? %>
<div>
- <p><%= pluralize(@run.errors.count, "error") %> prohibited this run from being saved:</p>
- <ul>
- <% @run.errors.full_messages.each do |message| %>
- <li><%= message %></li>
- <% end %>
- </ul>
+ <%= f.submit "Start run", class: "btn-primary" %>
</div>
+
+ <% if @run.errors.any? %>
+ <div>
+ <p><%= pluralize(@run.errors.count, "error") %> prohibited this run from being saved:</p>
+ <ul>
+ <% @run.errors.full_messages.each do |message| %>
+ <li><%= message %></li>
+ <% end %>
+ </ul>
+ </div>
+ <% end %>
<% end %>
-<% end %>
+</div>