<% content_for :title, "Forecourt Admin" %>

Forecourt

Local admin console

<%= link_to "Back to vehicle", root_path, class: "inline-flex items-center rounded-full border border-white/15 px-4 py-2 text-sm font-medium text-zinc-200 transition hover:border-white/30 hover:text-white" %>
<% if flash[:notice].present? %>
<%= flash[:notice] %>
<% end %> <% if flash[:alert].present? %>
<%= flash[:alert] %>
<% end %> <% if @unlocked %>

Unlocked

Admin Panel Unlocked

One final button. Press it if you want the ending.

<% else %>

Restricted access

Admin login required

Enter the four-word access phrase from the stock page in the format WORD_1-WORD_2-WORD_3-WORD_4.

Use the words in page order.

<%= form_with url: admin_path, method: :post, class: "mt-8 space-y-5" do |form| %>
<%= form.label :password, "Access phrase", class: "mb-2 block text-sm font-medium text-zinc-200" %> <%= form.password_field :password, autocomplete: "off", placeholder: "WORD_1-WORD_2-WORD_3-WORD_4", class: "w-full rounded-2xl border border-white/10 bg-zinc-950/70 px-4 py-3 font-mono text-sm text-white outline-none transition placeholder:text-zinc-500 focus:border-sky-400/60 focus:ring-2 focus:ring-sky-400/20" %>
<%= form.submit "Unlock", class: "inline-flex items-center rounded-full bg-white px-5 py-2.5 text-sm font-semibold text-zinc-950 transition hover:bg-zinc-200" %> Local preview only
<% end %>
<% end %>