File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
lib/generators/tailwindcss/scaffold/templates Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
<%%= form_with(model: <%= model_resource_name %>, class: "contents") do |form| %>
2
2
<%% if <%= singular_table_name %>.errors.any? %>
3
- <div id="error_explanation" class="px-3 py-2 mt-3 font-medium text-red-500 rounded-md bg-red-50 ">
3
+ <div id="error_explanation" class="bg-red-50 text-red-500 px-3 py-2 font-medium rounded-md mt-3 ">
4
4
<h2><%%= pluralize(<%= singular_table_name %>.errors.count, "error") %> prohibited this <%= singular_table_name %> from being saved:</h2>
5
5
6
- <ul class="ml-6 list-disc">
6
+ <ul class="list-disc ml-6 ">
7
7
<%% <%= singular_table_name %>.errors.each do |error| %>
8
8
<li><%%= error.full_message %></li>
9
9
<%% end %>
Original file line number Diff line number Diff line change 1
1
<div id="<%%= dom_id <%= singular_name %> %>">
2
2
<% attributes.reject(&:password_digest?).each do |attribute| -%>
3
3
<p class="my-5">
4
- <strong class="block mb-1 font-medium"><%= attribute.human_name %>:</strong>
4
+ <strong class="block font-medium mb-1 "><%= attribute.human_name %>:</strong>
5
5
<% if attribute.attachment? -%>
6
6
<%%= link_to <%= singular_name %>.<%= attribute.column_name %>.filename, <%= singular_name %>.<%= attribute.column_name %> if <%= singular_name %>.<%= attribute.column_name %>.attached? %>
7
7
<% elsif attribute.attachments? -%>
You can’t perform that action at this time.
0 commit comments