The personal finance app for everyone (by everyone)
Ruby
<%= turbo_frame_tag "modal" do %>
<%= render DS::Dialog.new do |dialog| %>
<% dialog.with_header(title: t(".title")) %>
<% dialog.with_body do %>
<div class="space-y-4">
<div class="flex items-start gap-3">
<%= icon("alert-circle", class: "text-warning w-5 h-5 shrink-0 mt-0.5") %>
<div class="text-sm text-secondary">
<p class="font-medium text-primary mb-2"><%= t(".api_token_not_configured") %></p>
<p><%= t(".api_token_description") %></p>
</div>
</div>
<div class="bg-surface rounded-lg p-4 space-y-2 text-sm">
<p class="font-medium text-primary"><%= t(".setup_steps_title") %></p>
<ol class="list-decimal list-inside space-y-1 text-secondary">
<li><%= t(".setup_step_1_html") %></li>
<li><%= t(".setup_step_2_html") %></li>
<li><%= t(".setup_step_3") %></li>
<li><%= t(".setup_step_4") %></li>
</ol>
</div>
<div class="mt-4">
<%= render DS::Link.new(
text: t(".go_to_provider_settings"),
href: settings_providers_path,
variant: :primary,
data: { turbo: false }
) %>
</div>
</div>
<% end %>
<% end %>
<% end %>