Sha256: 0a570387405220ae2066ee21768a096bc3285d07729c50c5e0203406bb720355

Contents?: true

Size: 1.18 KB

Versions: 40

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 mb-1 font-medium"><%= 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

40 entries across 40 versions & 2 rubygems

Version Path
panda-cms-0.7.0 lib/templates/erb/scaffold/partial.html.erb.tt
panda_cms-0.6.3 lib/templates/erb/scaffold/partial.html.erb.tt
panda_cms-0.6.2 lib/templates/erb/scaffold/partial.html.erb.tt
panda_cms-0.6.1 lib/templates/erb/scaffold/partial.html.erb.tt
panda_cms-0.6.0 lib/templates/erb/scaffold/partial.html.erb.tt
panda_cms-0.5.10 lib/templates/erb/scaffold/partial.html.erb.tt
panda_cms-0.5.9 lib/templates/erb/scaffold/partial.html.erb.tt
panda_cms-0.5.8 lib/templates/erb/scaffold/partial.html.erb.tt
panda_cms-0.5.7 lib/templates/erb/scaffold/partial.html.erb.tt
panda_cms-0.5.6 lib/templates/erb/scaffold/partial.html.erb.tt
panda_cms-0.5.5 lib/templates/erb/scaffold/partial.html.erb.tt
panda_cms-0.5.4 lib/templates/erb/scaffold/partial.html.erb.tt
panda_cms-0.5.3 lib/templates/erb/scaffold/partial.html.erb.tt
panda_cms-0.5.2 lib/templates/erb/scaffold/partial.html.erb.tt
panda_cms-0.5.1 lib/templates/erb/scaffold/partial.html.erb.tt
panda_cms-0.5.0 lib/templates/erb/scaffold/partial.html.erb.tt
panda_cms-0.3.15 lib/templates/erb/scaffold/partial.html.erb.tt
panda_cms-0.3.14 lib/templates/erb/scaffold/partial.html.erb.tt
panda_cms-0.3.13 lib/templates/erb/scaffold/partial.html.erb.tt
panda_cms-0.3.12 lib/templates/erb/scaffold/partial.html.erb.tt