Sha256: b3b2819062daac188882b4f1b58f3256f9373fadf218638aff8f58467074f3ce

Contents?: true

Size: 1.18 KB

Versions: 105

Compression:

Stored size: 1.18 KB

Contents

<div id="<%%= dom_id <%= singular_name %> %>">
<% attributes.reject(&:password_digest?).each do |attribute| -%>
  <p class="my-5">
    <strong class="block font-medium mb-1"><%= attribute.human_name %>:</strong>
<% if attribute.attachment? -%>
    <%%= link_to <%= singular_name %>.<%= attribute.column_name %>.filename, <%= singular_name %>.<%= attribute.column_name %> if <%= singular_name %>.<%= attribute.column_name %>.attached? %>
<% elsif attribute.attachments? -%>
    <%% <%= singular_name %>.<%= attribute.column_name %>.each do |<%= attribute.singular_name %>| %>
      <div><%%= link_to <%= attribute.singular_name %>.filename, <%= attribute.singular_name %> %></div>
    <%% end %>
<% else -%>
    <%%= <%= singular_name %>.<%= attribute.column_name %> %>
<% end -%>
  </p>

<% end -%>
  <%% if action_name != "show" %>
    <%%= link_to "Show this <%= human_name.downcase %>", <%= singular_name %>, class: "rounded-lg py-3 px-5 bg-gray-100 inline-block font-medium" %>
    <%%= link_to 'Edit this <%= human_name.downcase %>', edit_<%= singular_name %>_path(<%= singular_name %>), class: "rounded-lg py-3 ml-2 px-5 bg-gray-100 inline-block font-medium" %>
    <hr class="mt-6">
  <%% end %>
</div>

Version data entries

105 entries across 105 versions & 4 rubygems

Version Path
tailwindcss-rails-2.0.30 lib/generators/tailwindcss/scaffold/templates/partial.html.erb.tt
tailwindcss-rails-2.0.30-x86_64-linux lib/generators/tailwindcss/scaffold/templates/partial.html.erb.tt
tailwindcss-rails-2.0.30-x86_64-darwin lib/generators/tailwindcss/scaffold/templates/partial.html.erb.tt
tailwindcss-rails-2.0.30-x64-mingw32 lib/generators/tailwindcss/scaffold/templates/partial.html.erb.tt
tailwindcss-rails-2.0.30-x64-mingw-ucrt lib/generators/tailwindcss/scaffold/templates/partial.html.erb.tt
tailwindcss-rails-2.0.30-arm64-darwin lib/generators/tailwindcss/scaffold/templates/partial.html.erb.tt
tailwindcss-rails-2.0.30-arm-linux lib/generators/tailwindcss/scaffold/templates/partial.html.erb.tt
tailwindcss-rails-2.0.30-aarch64-linux lib/generators/tailwindcss/scaffold/templates/partial.html.erb.tt
tailwindcss-rails-2.0.29 lib/generators/tailwindcss/scaffold/templates/partial.html.erb.tt
tailwindcss-rails-2.0.29-x86_64-linux lib/generators/tailwindcss/scaffold/templates/partial.html.erb.tt
tailwindcss-rails-2.0.29-x86_64-darwin lib/generators/tailwindcss/scaffold/templates/partial.html.erb.tt
tailwindcss-rails-2.0.29-x64-mingw32 lib/generators/tailwindcss/scaffold/templates/partial.html.erb.tt
tailwindcss-rails-2.0.29-x64-mingw-ucrt lib/generators/tailwindcss/scaffold/templates/partial.html.erb.tt
tailwindcss-rails-2.0.29-arm64-darwin lib/generators/tailwindcss/scaffold/templates/partial.html.erb.tt
tailwindcss-rails-2.0.29-arm-linux lib/generators/tailwindcss/scaffold/templates/partial.html.erb.tt
tailwindcss-rails-2.0.29-aarch64-linux lib/generators/tailwindcss/scaffold/templates/partial.html.erb.tt
tailwindcss-rails-2.0.28 lib/generators/tailwindcss/scaffold/templates/partial.html.erb.tt
tailwindcss-rails-2.0.28-x86_64-linux lib/generators/tailwindcss/scaffold/templates/partial.html.erb.tt
tailwindcss-rails-2.0.28-x86_64-darwin lib/generators/tailwindcss/scaffold/templates/partial.html.erb.tt
tailwindcss-rails-2.0.28-x64-mingw32 lib/generators/tailwindcss/scaffold/templates/partial.html.erb.tt