Skip to content

armgit / sure

Public Imported from GitHub
0

The personal finance app for everyone (by everyone)

Ruby
1.1 KB
Raw Blame
<%= 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">
        <%= render DS::Alert.new(
          title: t(".api_key_not_configured"),
          message: t(".api_key_description"),
          variant: :warning
        ) %>

        <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 %>