Skip to content

armgit / sure

Public Imported from GitHub
0

The personal finance app for everyone (by everyone)

Ruby
1.4 KB
Raw Blame
<%= render DS::Dialog.new(variant: "modal", width: "md") do |dialog| %>
  <% dialog.with_header(title: t("reports.google_sheets_instructions.title_no_key")) %>
  <% dialog.with_body do %>
    <div class="space-y-4 text-sm text-secondary">
      <p><%= t("reports.google_sheets_instructions.need_key") %></p>
      <ol class="list-decimal list-inside space-y-2">
        <li><%= t("reports.google_sheets_instructions.step1") %></li>
        <li><%= t("reports.google_sheets_instructions.step2") %></li>
        <li><%= t("reports.google_sheets_instructions.step3") %></li>
        <li><%= t("reports.google_sheets_instructions.step4") %></li>
      </ol>
      <div class="space-y-2">
        <p class="font-medium text-primary"><%= t("reports.google_sheets_instructions.example") %></p>
        <div class="bg-surface-inset p-3 rounded-lg font-mono text-xs text-primary break-all">
          <%= @csv_url %>&api_key=YOUR_API_KEY_HERE
        </div>
      </div>
      <p><%= t("reports.google_sheets_instructions.then_use") %></p>
    </div>
  <% end %>
  <div class="flex justify-end gap-2 px-4">
    <%= render DS::Button.new(
      text: t("reports.google_sheets_instructions.close"),
      variant: "ghost",
      data: { action: "DS--dialog#close" }
    ) %>
    <%= render DS::Link.new(
      text: t("reports.google_sheets_instructions.go_to_api_keys"),
      variant: "primary",
      href: settings_api_keys_path,
      frame: "_top"
    ) %>
  </div>
<% end %>