summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorDavid Gay <david@davidgay.org>2023-11-02 17:42:02 -0400
committerDavid Gay <david@davidgay.org>2023-11-02 17:43:19 -0400
commitdec675543eaf02d279ff3395a634ab0c244737b7 (patch)
treedf3664d31a5aba8fac088fde07ecc04be2681bc1 /app/views
parent1bf6e9fdd7c55d276738c09a0de6943ba8b52afb (diff)
Runs#new page title, desc, and format
Diffstat (limited to 'app/views')
-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>