Files
ubicloud/views/components/billing_warning.erb
Enes Cakir 2196a31487 Do not allow to create GitHub runner without a valid payment method
We don't allow the creation of new virtual machines without a valid payment
method.

We need to implement a similar check for GitHub runners, ensuring that GitHub
accounts cannot be connected without a valid payment method.
2023-09-14 19:29:16 +03:00

18 lines
685 B
Plaintext

<% unless @has_valid_payment_method %>
<div class="-mt-6 mb-2 rounded-md bg-red-50 p-4">
<div class="flex items-center">
<div class="flex-shrink-0">
<%== render("components/icon", locals: { name: "hero-banknotes", classes: "h-9 w-9 text-red-400" }) %>
</div>
<div class="ml-3">
<h3 class="text-sm font-medium text-red-700">
Project doesn't have valid billing information. You have to create project's billing details first.
<br>
<a href="<%= @project_data[:path] %>/billing" class="font-bold text-red-800">Click here</a>
to create billing details.
</h3>
</div>
</div>
</div>
<% end %>