mirror of
https://github.com/we-promise/sure.git
synced 2026-04-08 14:54:49 +00:00
* Add support to unlink lunch flow accounts * add support to link and unlink to any provider * Fix tests and query * Let's keep Amr happy about his brand * Wrap unlink operations in a transaction and add error handling. * Fix tests --------- Co-authored-by: Juan José Mata <juanjo.mata@gmail.com>
24 lines
944 B
Plaintext
24 lines
944 B
Plaintext
<%= render DS::Dialog.new do |dialog| %>
|
|
<% dialog.with_header(title: t("accounts.select_provider.title")) %>
|
|
|
|
<% dialog.with_body do %>
|
|
<p class="text-secondary text-sm mb-4">
|
|
<%= t("accounts.select_provider.description", account_name: @account.name) %>
|
|
</p>
|
|
|
|
<div class="space-y-2">
|
|
<% @available_providers.each do |provider| %>
|
|
<%= link_to provider[:path], data: { turbo_frame: :modal }, class: "block p-4 border border-primary rounded-lg hover:bg-container-hover transition-colors" do %>
|
|
<div class="flex items-center justify-between">
|
|
<div>
|
|
<p class="font-medium text-primary"><%= provider[:name] %></p>
|
|
<p class="text-sm text-secondary"><%= provider[:description] %></p>
|
|
</div>
|
|
<%= icon("chevron-right", size: "sm", class: "text-secondary") %>
|
|
</div>
|
|
<% end %>
|
|
<% end %>
|
|
</div>
|
|
<% end %>
|
|
<% end %>
|