Преглед на файлове

Add persistent parameters to filter form as hidden inputs

Andrej Hudec преди 12 години
родител
ревизия
ca2de17005
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  1. 4 0
      Resources/views/CRUD/base_list.html.twig

+ 4 - 0
Resources/views/CRUD/base_list.html.twig

@@ -171,6 +171,10 @@ file that was distributed with this source code.
 
                     <a class="btn" href="{{ admin.generateUrl('list', {filters: 'reset'}) }}">{{ 'link_reset_filter'|trans({}, 'SonataAdminBundle') }}</a>
                 </div>
+
+                {% for paramKey, paramValue in admin.persistentParameters %}
+                    <input type="hidden" name="{{ paramKey }}" value="{{ paramValue }}" />
+                {% endfor %}
             </fieldset>
         </form>
     {% endif %}