{% for j in range(cols) %}
{% if i*cols+j < len(pagebar.searchs) %}
{% if pagebar.searchs[i*cols+j].find(':') >= 0 %}
{% set label = pagebar.searchs[i*cols+j].split(':')[0] %}
{% set field = pagebar.searchs[i*cols+j].split(':')[1] %}
{% else %}
{% set label = pagebar.searchs[i*cols+j] %}
{% set field = pagebar.searchs[i*cols+j] %}
{% end %}
{% else %}
{% break %}
{% end %}
{% end %}
{% if i == rows - 1 %}
{% if j == cols - 1 and i*cols+j < len(pagebar.searchs) %}