Previews

No matching results.

x
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<form class="button_to" method="post" action="/products"><input type="hidden" name="_method" value="delete" autocomplete="off" /><button data-confirm="Are you sure?" data-controller="polaris-button" type="submit" class="Polaris-Button Polaris-Button--destructive"><span class="Polaris-Button__Content">
<div class="Polaris-Button__Text">
Delete
</div>
</span>
</button><input type="hidden" name="authenticity_token" value="Ph4yHaWivKlSZVlMe3i4Tk976l-J8rUOkomWcMASMURHlJIL60L54yniFZPk1q7QEI4IUll_p0-Q45bGkkEHjg" autocomplete="off" /></form>
<br>
<form class="button_to" method="post" action="/products"><input type="hidden" name="_method" value="delete" autocomplete="off" /><button data-confirm="Are you sure?" data-controller="polaris-button" type="submit" class="Polaris-Button Polaris-Button--iconOnly"><span class="Polaris-Button__Content">
<div class="Polaris-Button__Icon">
<span class="Polaris-Icon">
<svg viewbox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" class="Polaris-Icon__Svg" focusable="false" aria-hidden="true"><path d="M8 3.994C8 2.893 8.895 2 10 2s2 .893 2 1.994h4c.552 0 1 .446 1 .997a1 1 0 0 1-1 .997H4c-.552 0-1-.447-1-.997s.448-.997 1-.997h4zM5 14.508V8h2v6.508a.5.5 0 0 0 .5.498H9V8h2v7.006h1.5a.5.5 0 0 0 .5-.498V8h2v6.508A2.496 2.496 0 0 1 12.5 17h-5C6.12 17 5 15.884 5 14.508z"></path></svg>
</span>
</div>
</span>
</button><input type="hidden" name="authenticity_token" value="cRzp0r849YlkPVns_3ZZsVu7LsJ_J-pPpIcg-WE7vuIIlknE8diwwx-6FTNg2E8vBE7Mz6-q-A6m7SBPM2iIKA" autocomplete="off" /></form>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<%= polaris_button_to("Delete", "/products",
method: :delete,
destructive: true,
data: {
confirm: "Are you sure?",
}
) %>
<br>
<%= polaris_button_to("/products",
method: :delete,
data: {
confirm: "Are you sure?",
}
) do |button| %>
<% button.icon(name: "DeleteMinor") %>
<% end %>