Add a new SDG component to make easier to create subnavigation menus. Co-Authored-By: Javi Martín <35156+javierm@users.noreply.github.com>
24 lines
572 B
Plaintext
24 lines
572 B
Plaintext
<%= header %>
|
|
|
|
<%= render SDGManagement::SubnavigationComponent.new(current: :goals) do %>
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th><%= attribute_name(:code) %></th>
|
|
<th><%= attribute_name(:title) %></th>
|
|
<th><%= attribute_name(:description) %></th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<% goals.each do |goal| %>
|
|
<tr id="<%= dom_id(goal) %>" class="goal">
|
|
<td><%= goal.code %></td>
|
|
<td><%= goal.title %></td>
|
|
<td><%= goal.description %></td>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|
|
<% end %>
|