Skip to content

Commit

Permalink
Merge pull request #1053 from rughh/fix/admin-event-show-page
Browse files Browse the repository at this point in the history
fix: changed administrate api
  • Loading branch information
salzig authored Oct 7, 2024
2 parents 14c42d3 + 36a07e5 commit 1fb3f7b
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions app/views/admin/events/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -68,17 +68,19 @@ as well as a link to its edit page.
</header>

<section class="main-content__body">
<dl>
<% page.attributes.each do |attribute| %>
<dt class="attribute-label" id="<%= attribute.name %>">
<%= t(
"helpers.label.#{resource_name}.#{attribute.name}",
default: attribute.name.titleize,
) %>
</dt>
<dl>
<% page.attributes.each do |_title, attributes| %>
<% attributes.each do |attribute| %>
<dt class="attribute-label" id="<%= attribute&.name %>">
<%= t(
"helpers.label.#{resource_name}.#{attribute&.name}",
default: attribute.name.titleize,
) %>
</dt>

<dd class="attribute-data attribute-data--<%=attribute.html_class%>"
><%= render_field attribute, page: page %></dd>
<dd class="attribute-data attribute-data--<%=attribute.html_class%>"
><%= render_field attribute, page: page %></dd>
<% end %>
<% end %>
</dl>
</section>

0 comments on commit 1fb3f7b

Please sign in to comment.