We were using the same code in two places, so we're extracting the code into a component in order to share it.
19 lines
686 B
Plaintext
19 lines
686 B
Plaintext
<% provide :title do %>
|
|
<%= t("admin.header.title") %> - <%= t("admin.menu.site_customization.pages") %> - <%= @page.title %>
|
|
<% end %>
|
|
<%= back_link_to admin_site_customization_pages_path %>
|
|
<div id="cards">
|
|
<h2 class="inline-block">
|
|
<%= @page.title %> <%= t("admin.site_customization.pages.cards.cards_title") %></h2>
|
|
|
|
<div class="float-right">
|
|
<%= link_to t("admin.site_customization.pages.cards.create_card"),
|
|
new_admin_site_customization_page_widget_card_path(@page), class: "button" %>
|
|
</div>
|
|
|
|
<%= render Admin::Widget::Cards::TableComponent.new(
|
|
@cards,
|
|
no_cards_message: t("admin.site_customization.pages.cards.no_cards")
|
|
) %>
|
|
</div>
|