Skip to content

Commit f30b4ad

Browse files
revert class reordering
1 parent 47a3301 commit f30b4ad

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/generators/tailwindcss/scaffold/templates/_form.html.erb.tt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<%%= form_with(model: <%= model_resource_name %>, class: "contents") do |form| %>
22
<%% 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">
44
<h2><%%= pluralize(<%= singular_table_name %>.errors.count, "error") %> prohibited this <%= singular_table_name %> from being saved:</h2>
55

6-
<ul class="ml-6 list-disc">
6+
<ul class="list-disc ml-6">
77
<%% <%= singular_table_name %>.errors.each do |error| %>
88
<li><%%= error.full_message %></li>
99
<%% end %>

lib/generators/tailwindcss/scaffold/templates/partial.html.erb.tt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div id="<%%= dom_id <%= singular_name %> %>">
22
<% attributes.reject(&:password_digest?).each do |attribute| -%>
33
<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>
55
<% if attribute.attachment? -%>
66
<%%= link_to <%= singular_name %>.<%= attribute.column_name %>.filename, <%= singular_name %>.<%= attribute.column_name %> if <%= singular_name %>.<%= attribute.column_name %>.attached? %>
77
<% elsif attribute.attachments? -%>

0 commit comments

Comments
 (0)