% from app.data.filter import get_query_param
<form id="filter" method="{{ method }}" action="{{ action }}">
  % include('button-style')
  % include('button-nav', action=action)
  <details style="padding: 1em 0">
    <summary>Click to expand filter...</summary>
    % include('button-action')
    <div class="pure-g">
      <%
      include('filter-set',
        product=product, category=category, group=group,
        tags=tags, units=units)
      %>
    </div>
  </details>
</form>
% params = [{
%   'name': k,
%   'value': get_query_param(inc, ex),
% } for k, (inc, ex) in params.items()]
% include('form-clear', params=params)
% include('form-reload', params=params)