mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-09 23:45:21 +02:00
WIP
This commit is contained in:
parent
e1296de458
commit
a36ac3253c
2 changed files with 15 additions and 2 deletions
|
@ -8,7 +8,16 @@
|
|||
{ name: "Confirm", path: import_path(import), is_complete: import.complete?, step_number: 5 }
|
||||
].reject { |step| step[:name] == "Map" && import.mapping_steps.empty? } %>
|
||||
|
||||
<ul class="flex items-center gap-2">
|
||||
<% content_for :mobile_import_progress do %>
|
||||
<% active_step = steps.detect { |s| request.path.eql?(s[:path]) } %>
|
||||
<% if active_step.present? %>
|
||||
<div class="md:hidden text-center text-secondary text-md my-2">
|
||||
<span class="text-gray-500">Step <%= active_step[:step_number] %> of <%= steps.size %></span>
|
||||
</div>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
<ul class="hidden md:flex items-center gap-2">
|
||||
<% steps.each_with_index do |step, idx| %>
|
||||
<li class="flex items-center gap-2 group">
|
||||
<% is_current = request.path == step[:path] %>
|
||||
|
|
|
@ -14,7 +14,11 @@
|
|||
<% end %>
|
||||
</header>
|
||||
|
||||
<main class="grow px-8 pt-12 pb-32 overflow-y-auto">
|
||||
<main class="grow px-8 md:pt-12 pb-32 overflow-y-auto">
|
||||
<div class="flex md:hidden justify-center w-full">
|
||||
<%= yield :mobile_import_progress %>
|
||||
</div>
|
||||
|
||||
<%= yield %>
|
||||
</main>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue