add loading text for form submit buttons

This commit is contained in:
Alex Turchyn
2023-06-11 12:42:13 +00:00
parent 85574d6605
commit 21f684ed4a
20 changed files with 44 additions and 23 deletions
+8 -2
View File
@@ -1,6 +1,12 @@
<span class="enabled">
<%= title %>
<span class="flex justify-center space-x-3">
<%= icon if icon %>
<span><%= title %></span>
</span>
</span>
<span class="disabled">
<%= disabled_with %>
<span class="flex justify-center space-x-3">
<%= svg_icon('loader', class: 'w-6 h-6 animate-spin') %>
<span><%= disabled_with %>...</span>
</span>
</span>