added template types to filter input

This commit is contained in:
Andy Miller
2015-09-08 11:31:39 -06:00
parent dd7417b889
commit 1e91e22c19
2 changed files with 12 additions and 3 deletions

View File

@@ -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.
* *

View File

@@ -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" />