Files
fizzy/app/views/collections/new.html.erb
T
Jason Zimdars f3e2c5472d Simplify design
2025-10-23 15:39:08 -07:00

20 lines
813 B
Plaintext

<% @page_title = "Create a new board" %>
<% content_for :header do %>
<%= render "filters/menu" %>
<% end %>
<div class="panel panel--centered">
<%= form_with model: @collection, class: "flex flex-column gap", data: { controller: "form" } do |form| %>
<h1 class="txt-x-large margin-none font-weight-black"><%= @page_title %></h2>
<%= form.text_field :name, required: true, class: "input full-width", autofocus: true, autocomplete: "off",placeholder: "Name it…", data: { action: "keydown.esc@document->form#cancel" } %>
<button type="submit" class="btn btn--link center">
<span>Create board</span>
<%= icon_tag "arrow-right" %>
</button>
<%= link_to "Cancel and go back", root_path, data: { form_target: "cancel", turbo_frame: "_top" }, hidden: true %>
<% end %>
</div>