<mt:setvartemplate name="filter_form_legacy">
<input type="text" disabled="disabled" class="prop-legacy <mt:var name="type">-label text med" value="" />
<input type="hidden" class="prop-legacy <mt:var name="type">-filter_key text med" value="" />
<input type="hidden" class="prop-legacy <mt:var name="type">-filter_val text med" value="" />
<input type="hidden" class="prop-legacy <mt:var name="type">-ds text med" value="" />
</mt:setvartemplate>

<mt:setvartemplate name="filter_form_string">
  <mt:setvarblock name="string_options">
  <select class="<mt:var name="type">-option">
    <option value="contains"><__trans phrase="contains" escape="js"></option>
    <option value="not_contains"><__trans phrase="does not contain" escape="js"></option>
    <option value="equal"><__trans phrase="__STRING_FILTER_EQUAL" escape="js"></option>
    <option value="beginning"><__trans phrase="starts with" escape="js"></option>
    <option value="end"><__trans phrase="ends with" escape="js"></option>
  </select>
  </mt:setvarblock>
  <__trans phrase="[_1] [_2] [_3]"
           params="<mt:var name="label" escape="js">%%<mt:var name="string_options">%%
                   <input type="text" class="prop-string <mt:var name="type">-string text med" value="" />">
</mt:setvartemplate>

<mt:setvartemplate name="filter_form_integer">
<__trans phrase="[_1] [_2] [_3]"
         params="<mt:var name="label" escape="js">%%
                 <select class="<mt:var name="type">-option">
                   <option value="equal"><__trans phrase="__INTEGER_FILTER_EQUAL" escape="js"></option>
                   <option value="not_equal"><__trans phrase="__INTEGER_FILTER_NOT_EQUAL" escape="js"></option>
                   <option value="greater_than"><__trans phrase="is greater than" escape="js"></option>
                   <option value="greater_equal"><__trans phrase="is greater than or equal to" escape="js"></option>
                   <option value="less_than"><__trans phrase="is less than" escape="js"></option>
                   <option value="less_equal"><__trans phrase="is less than or equal to" escape="js"></option>
                 </select>%%
                 <input type="text" class="prop-integer <mt:var name="type">-value text num required digit" value="" />">
</mt:setvartemplate>

<mt:setvartemplate name="filter_form_future_date">
  <mt:setvarblock name="future_date_filter_options">
  <select class="<mt:var name="type">-option filter-date">
    <option value="range"><__trans phrase="is between" escape="js"></option>
    <option value="days"><__trans phrase="is within the last" escape="js"></option>
    <option value="before"><__trans phrase="is before" escape="js"></option>
    <option value="after"><__trans phrase="is after" escape="js"></option>
    <option value="future"><__trans phrase="is after now" escape="js"></option>
    <option value="past"><__trans phrase="is before now" escape="js"></option>
  </select>
  </mt:setvarblock>

  <mt:setvarblock name="future_date_filter_contents">
  <span class="date-options">
    <mt:setvarblock name="date_input_from"><input type="text" class="<mt:var name="type">-from text required date" /></mt:setvarblock>
    <mt:setvarblock name="date_input_to"><input type="text" class="<mt:var name="type">-to text required date" /></mt:setvarblock>
    <mt:setvarblock name="date_input_origin"><input type="text" class="<mt:var name="type">-origin text required date" /></mt:setvarblock>
    <mt:setvarblock name="date_input_days"><input type="text" class="<mt:var name="type">-days text required digit days" /></mt:setvarblock>
    <span class="date-option date"><__trans phrase="__FILTER_DATE_ORIGIN" params="<mt:var name="date_input_origin">" escape="js"></span>
    <span class="date-option range"><__trans phrase="[_1] and [_2]" params="<mt:var name="date_input_from">%%<mt:var name="date_input_to">" escape="js"></span>
    <span class="date-option days"><__trans phrase="_FILTER_DATE_DAYS" params="<mt:var name="date_input_days">" escape="js"></span>
  </span>
  </mt:setvarblock>
</mt:setvartemplate>

<mt:setvartemplate name="filter_form_date">
  <mt:setvarblock name="date_filter_options">
  <select class="<mt:var name="type">-option filter-date">
    <option value="range"><__trans phrase="is between" escape="js"></option>
    <option value="days"><__trans phrase="is within the last" escape="js"></option>
    <option value="before"><__trans phrase="is before" escape="js"></option>
    <option value="after"><__trans phrase="is after" escape="js"></option>
  </select>
  </mt:setvarblock>

  <mt:setvarblock name="date_filter_contents">
  <span class="date-options">
    <mt:setvarblock name="date_input_from"><input type="text" class="<mt:var name="type">-from text required date" /></mt:setvarblock>
    <mt:setvarblock name="date_input_to"><input type="text" class="<mt:var name="type">-to text required date" /></mt:setvarblock>
    <mt:setvarblock name="date_input_origin"><input type="text" class="<mt:var name="type">-origin text required date" /></mt:setvarblock>
    <mt:setvarblock name="date_input_days"><input type="text" class="<mt:var name="type">-days text required digit days" /></mt:setvarblock>
    <span class="date-option date"><__trans phrase="__FILTER_DATE_ORIGIN" params="<mt:var name="date_input_origin">" escape="js"></span>
    <span class="date-option range"><__trans phrase="[_1] and [_2]" params="<mt:var name="date_input_from">%%<mt:var name="date_input_to">" escape="js"></span>
    <span class="date-option days"><__trans phrase="_FILTER_DATE_DAYS" params="<mt:var name="date_input_days">" escape="js"></span>
  </span>
  </mt:setvarblock>
</mt:setvartemplate>

<mt:setvartemplate name="filter_form_single_select">
<__trans phrase="[_1] [_3] [_2]"
         params="<mt:var name="label" escape="js">%%
                 <select class="<mt:var name="type">-value">
                 <mt:loop name="single_select_options">
                   <option value="<mt:var name="value">"><mt:var name="label" encode_html="1" encode_js="1" encode_html="1" ></option>
                 </mt:loop>
                 </select>%%<mt:var name="verb" escape="js">">
</mt:setvartemplate>

<mt:setvartemplate name="filter_form_hidden">
<input type="hidden" class="prop-hidden <mt:var name="type">-value" value="" />
<input type="hidden" class="prop-hidden <mt:var name="type">-label" value="" />
<mt:var name="label" escape="js">
</mt:setvartemplate>

