mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-01 19:06:16 +01:00
added template types to filter input
This commit is contained in:
@@ -386,7 +386,17 @@ class Admin
|
||||
}
|
||||
|
||||
/**
|
||||
* Get All modular types
|
||||
* Get All template types
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function types()
|
||||
{
|
||||
return Pages::types();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get All modular template types
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
@@ -395,7 +405,6 @@ class Admin
|
||||
return Pages::modularTypes();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get all plugins.
|
||||
*
|
||||
|
||||
@@ -237,7 +237,7 @@
|
||||
{% else %}
|
||||
<form id="page-filtering">
|
||||
<div class="page-filters">
|
||||
<input type="text" placeholder="{{ "PLUGIN_ADMIN.ADD_FILTERS"|tu }}" class="page-filter" name="page-filter" />
|
||||
<input type="text" data-template-types=" {{ admin.types|merge(admin.modularTypes)|json_encode|e('html_attr') }}" placeholder="{{ "PLUGIN_ADMIN.ADD_FILTERS"|tu }}" class="page-filter" name="page-filter" />
|
||||
</div>
|
||||
<div class="page-search">
|
||||
<input type="text" placeholder="{{ "PLUGIN_ADMIN.SEARCH_PAGES"|tu }}" name="page-search" />
|
||||
|
||||
Reference in New Issue
Block a user