mirror of
https://github.com/we-promise/sure.git
synced 2026-04-22 21:44:11 +00:00
* fix: improve dark mode readability across the app * fix: improve dark mode support for asset percentage text * fix: apply suggested patch for theme-related improvements * chore: apply PR feedback – remove dark:, align with design tokens, update form builder * chore: revert background token and restore original style for visual consistency * chore: remove unnecessary class attributes from form fields using builder * refactor: move number_field and date_field into metaprogramming block * refactor: replace bg-divider-adaptive divs with <hr> and border-secondary * fix: apply requested changes and linting fixes
21 lines
902 B
Plaintext
21 lines
902 B
Plaintext
<%= modal(reload_on_close: true) do %>
|
|
<div class="space-y-4 p-4 max-w-[400px]">
|
|
<div>
|
|
<div class="flex justify-between mb-2 gap-4">
|
|
<h3 class="font-medium text-md">Confirm changes</h3>
|
|
<button data-action="mousedown->modal#close">
|
|
<%= lucide_icon("x", class: "w-5 h-5 shrink-0 text-secondary") %>
|
|
</button>
|
|
</div>
|
|
<div class="text-secondary text-sm">
|
|
<p>
|
|
You are about to apply this rule to
|
|
<span class="text-primary font-medium"><%= @rule.affected_resource_count %> <%= @rule.resource_type.pluralize %></span>
|
|
that meet the specified rule criteria. Please confirm if you wish to proceed with this change.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<%= button_to "Confirm changes", apply_rule_path(@rule), class: "btn btn--primary w-full justify-center", data: { turbo_frame: "_top"} %>
|
|
</div>
|
|
<% end %>
|