Files
baclight/app/views/providers/_form.html.erb
T
2026-07-23 10:32:51 -04:00

18 lines
681 B
Plaintext

<%= form_with(model: provider, class: "contents") do |form| %>
<% if provider.errors.any? %>
<div id="error_explanation" class="bg-red-50 text-red-500 px-3 py-2 font-medium rounded-md mt-3">
<h2><%= pluralize(provider.errors.count, "error") %> prohibited this provider from being saved:</h2>
<ul class="list-disc ml-6">
<% provider.errors.each do |error| %>
<li><%= error.full_message %></li>
<% end %>
</ul>
</div>
<% end %>
<div class="inline">
<%= form.submit class: "w-full sm:w-auto rounded-md px-3.5 py-2.5 bg-blue-600 hover:bg-blue-500 text-white inline-block font-medium cursor-pointer" %>
</div>
<% end %>