mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-03 20:05:53 +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
|
* @return array
|
||||||
*/
|
*/
|
||||||
@@ -395,7 +405,6 @@ class Admin
|
|||||||
return Pages::modularTypes();
|
return Pages::modularTypes();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get all plugins.
|
* Get all plugins.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -237,7 +237,7 @@
|
|||||||
{% else %}
|
{% else %}
|
||||||
<form id="page-filtering">
|
<form id="page-filtering">
|
||||||
<div class="page-filters">
|
<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>
|
||||||
<div class="page-search">
|
<div class="page-search">
|
||||||
<input type="text" placeholder="{{ "PLUGIN_ADMIN.SEARCH_PAGES"|tu }}" name="page-search" />
|
<input type="text" placeholder="{{ "PLUGIN_ADMIN.SEARCH_PAGES"|tu }}" name="page-search" />
|
||||||
|
|||||||
Reference in New Issue
Block a user