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="3HkEjQCjpUs7BznxgykAtp0OTKdtCT9S7_AtGwQLcSyisDWHEgvPKs89B6Z3CF3s-kMv93JK4a24acdLeqVUUQ" 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="HQ-xnnLDZf8rMqfAhuS1_1g_oh9ER-C_4NIeP4L0EHBjxoCUYGsPnt8ImZdyxeilP3LBT1sEPkC3S_Rv_Fo1DQ" 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 %>
No notes provided.
No params configured.