Skip to content

Commit 1fb3f7b

Browse files
authored
Merge pull request #1053 from rughh/fix/admin-event-show-page
fix: changed administrate api
2 parents 14c42d3 + 36a07e5 commit 1fb3f7b

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

app/views/admin/events/show.html.erb

+12-10
Original file line numberDiff line numberDiff line change
@@ -68,17 +68,19 @@ as well as a link to its edit page.
6868
</header>
6969

7070
<section class="main-content__body">
71-
<dl>
72-
<% page.attributes.each do |attribute| %>
73-
<dt class="attribute-label" id="<%= attribute.name %>">
74-
<%= t(
75-
"helpers.label.#{resource_name}.#{attribute.name}",
76-
default: attribute.name.titleize,
77-
) %>
78-
</dt>
71+
<dl>
72+
<% page.attributes.each do |_title, attributes| %>
73+
<% attributes.each do |attribute| %>
74+
<dt class="attribute-label" id="<%= attribute&.name %>">
75+
<%= t(
76+
"helpers.label.#{resource_name}.#{attribute&.name}",
77+
default: attribute.name.titleize,
78+
) %>
79+
</dt>
7980

80-
<dd class="attribute-data attribute-data--<%=attribute.html_class%>"
81-
><%= render_field attribute, page: page %></dd>
81+
<dd class="attribute-data attribute-data--<%=attribute.html_class%>"
82+
><%= render_field attribute, page: page %></dd>
83+
<% end %>
8284
<% end %>
8385
</dl>
8486
</section>

0 commit comments

Comments
 (0)