<%= render PandaCms::Admin::ContainerComponent.new do |component| %> <% component.with_heading(text: "#{page.title}", level: 1) %> <% component.with_slideover(title: "Page Details") do %> <%= panda_cms_form_with model: page, url: admin_page_path, method: :put do |f| %> <%= f.text_field :title, class: "block w-full rounded-md border-0 p-2 text-gray-900 ring-1 ring-inset ring-mid placeholder:text-gray-300 focus:ring-1 focus:ring-inset focus:ring-dark sm:text-sm sm:leading-6 hover:pointer" %> <%= f.text_field :template, value: template.name, readonly: true, class: "read-only:bg-gray-100 block w-full rounded-md border-0 p-2 text-gray-900 ring-1 ring-inset ring-mid placeholder:text-gray-300 focus:ring-1 focus:ring-inset focus:ring-dark sm:text-sm sm:leading-6 hover:pointer" %> <%= f.select :status, options_for_select([["Active", "active"], ["Draft", "draft"], ["Hidden", "hidden"], ["Archived", "archived"]], selected: page.status), {}, class: "block w-full rounded-md border-0 py-1.5 pl-3 pr-10 text-gray-900 ring-1 ring-inset ring-mid focus:ring-1 focus:ring-inset focus:ring-dark sm:text-sm sm:leading-6 hover:pointer" %> <%= f.submit "Save" %> <% end %> <% end %>
<%= @page.path %>
<%= render PandaCms::Admin::ButtonComponent.new(text: "Save Changes", action: :save_inactive, icon: "check", link: "#", size: :regular, id: "saveEditableButton") %>
<% end %> <% content_for :head do %> <%#= javascript_include_tag "panda_cms_editable", "data-turbo-track": "reload", defer: true %> <% end %>