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="-n3jCOSiZ0Rx5g160ODym2nBWomrAB95J_fIM_3eQsvTrEAKzBU-Gl6WAiWr8wyBRlkOsoATglshij2sg094MA" 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 xmlns="http://www.w3.org/2000/svg" viewbox="0 0 20 20" class="Polaris-Icon__Svg" focusable="false" aria-hidden="true"><path d="M11.5 8.25a.75.75 0 0 1 .75.75v4.25a.75.75 0 0 1-1.5 0v-4.25a.75.75 0 0 1 .75-.75Z"></path><path d="M9.25 9a.75.75 0 0 0-1.5 0v4.25a.75.75 0 0 0 1.5 0v-4.25Z"></path><path fill-rule="evenodd" d="M7.25 5.25a2.75 2.75 0 0 1 5.5 0h3a.75.75 0 0 1 0 1.5h-.75v5.45c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311c-.642.327-1.482.327-3.162.327h-.4c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311c-.327-.642-.327-1.482-.327-3.162v-5.45h-.75a.75.75 0 0 1 0-1.5h3Zm1.5 0a1.25 1.25 0 1 1 2.5 0h-2.5Zm-2.25 1.5h7v5.45c0 .865-.001 1.423-.036 1.848-.033.408-.09.559-.128.633a1.5 1.5 0 0 1-.655.655c-.074.038-.225.095-.633.128-.425.035-.983.036-1.848.036h-.4c-.865 0-1.423-.001-1.848-.036-.408-.033-.559-.09-.633-.128a1.5 1.5 0 0 1-.656-.655c-.037-.074-.094-.225-.127-.633-.035-.425-.036-.983-.036-1.848v-5.45Z"></path></svg>
</span>
</div>
</span>
</button><input type="hidden" name="authenticity_token" value="PltYCVRO2ZYmT8TBNPoMBy-vqDl8EKJhro4MV3zgTnAXivsLfPmAyAk_y55P6fIdADf8AlcDP0Oo8_nIAnF0iw" 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.with_icon(name: "DeleteIcon") %>
<% end %>