mirror of
https://github.com/danbee/danbarberphoto
synced 2025-03-04 08:49:07 +00:00
We've added some custom field types for dragonfly images, text fields and markdown fields.
33 lines
802 B
Plaintext
33 lines
802 B
Plaintext
<% content_for(:title) { @page.resource_name.pluralize.titleize } %>
|
|
|
|
<% content_for(:search) do %>
|
|
<form class="search">
|
|
<span class="search__icon">
|
|
<%= inline_svg "administrate/search.svg" %>
|
|
</span>
|
|
<input
|
|
type="text"
|
|
name="search"
|
|
class="search__input"
|
|
placeholder="Search"
|
|
value="<%= @search_term %>"
|
|
/>
|
|
<span class="search__hint">
|
|
Press enter to search
|
|
</span>
|
|
</form>
|
|
<% end %>
|
|
|
|
<header class="header">
|
|
<h1 class="header-heading"><%= content_for(:title) %></h1>
|
|
<%= link_to(
|
|
"New #{@page.resource_name.titleize.downcase}",
|
|
[:new, Administrate::NAMESPACE, @page.resource_name],
|
|
class: "button",
|
|
) %>
|
|
</header>
|
|
|
|
<%= render "table", table_presenter: @page, resources: @resources %>
|
|
|
|
<%= paginate @resources %>
|