<%= form_for @changeset, @action, [class: "flex flex-col w-full h-full relative", id: "page_form"], fn f -> %> <%= if @changeset.action do %>

Oops, something went wrong!

<% end %> <%= if assigns[:already_taken] do %>

This custom URL has already been taken.

<% end %>
<%= textarea f, :content, [class: "w-full h-full px-6 py-4 outline-none bg-light-grey font-bold resize-none", placeholder: "> Paste, save, share! (Pasting just a URL will shorten it!)"] %>
<%= if @current_user && !assigns[:is_edit] do %>
<%= text_input f, :custom_url, [class: "px-2 mr-2 outline-none text-black px-2 py-1", placeholder: "Custom URL"] %>
<% end %>
<% end %>