2025-02-21 11:57:59 -05:00
|
|
|
<%= render "layouts/shared/htmldoc" do %>
|
2025-05-01 16:47:14 -04:00
|
|
|
<div class="bg-surface flex flex-col h-full">
|
2025-01-16 14:36:37 -05:00
|
|
|
<header class="flex items-center justify-between p-8">
|
2025-05-01 16:47:14 -04:00
|
|
|
<% if content_for?(:prev_nav) %>
|
|
|
|
<%= yield :prev_nav %>
|
|
|
|
<% else %>
|
|
|
|
<%= render LinkComponent.new(
|
|
|
|
variant: "icon",
|
|
|
|
icon: "arrow-left",
|
|
|
|
href: content_for(:previous_path) || root_path
|
|
|
|
) %>
|
|
|
|
<% end %>
|
2025-01-16 14:36:37 -05:00
|
|
|
|
|
|
|
<nav>
|
|
|
|
<%= yield :header_nav %>
|
|
|
|
</nav>
|
|
|
|
|
2025-05-01 16:47:14 -04:00
|
|
|
<% if content_for?(:cancel_action) %>
|
|
|
|
<%= yield :cancel_action %>
|
|
|
|
<% else %>
|
|
|
|
<%= render LinkComponent.new(
|
|
|
|
variant: "icon",
|
|
|
|
icon: "x",
|
|
|
|
href: content_for(:cancel_path) || root_path
|
|
|
|
) %>
|
|
|
|
<% end %>
|
2025-01-16 14:36:37 -05:00
|
|
|
</header>
|
|
|
|
|
2025-02-12 11:22:30 -05:00
|
|
|
<main class="grow px-8 pt-12 pb-32 overflow-y-auto">
|
2025-01-16 14:36:37 -05:00
|
|
|
<%= yield %>
|
|
|
|
</main>
|
2025-05-01 16:47:14 -04:00
|
|
|
|
|
|
|
<% if content_for?(:footer) %>
|
|
|
|
<%= yield :footer %>
|
|
|
|
<% end %>
|
2025-01-16 14:36:37 -05:00
|
|
|
</div>
|
|
|
|
<% end %>
|