<% var containerId = m.lib.containerId, tuix = m.tuix, lib = m.lib; zenario.sendSignal("eventListPreDisplay", {containerId: containerId, microTemplate: "fea_list_blocks", tuix: tuix, lib: lib}); %> {{m.lib.displayDevTools()}}
{{m.tuix.header_html}} <% if (m.tuix.title !== undefined) { %> <% if (m.tuix.title_tags) { %> <{{m.tuix.title_tags|e}}>{{m.tuix.title|e}} <% } else { %>

{{m.tuix.title|e}}

<% } %> <% } %>
<% if (zenarioT.find(m.thus.sortedCollectionButtons, "back")) { %> {{m.lib.pMicroTemplate("button", m.thus.sortedCollectionButtons, "back")}} <% } %>
<% if (zenarioT.find(m.thus.sortedCollectionButtons, "top")) { %> {{m.lib.pMicroTemplate("button", m.thus.sortedCollectionButtons, "top")}} <% } %>
<% var ci, col, chi, child, bi, button, oi, log, logName, gi, lg, lgName, ii, item, tag, showParent, headerId = false, firstItem = true; %> {{m.lib.pMicroTemplate("list_search_and_sort", m)}} <% if (m.tuix.item_count_message && m.tuix.__item_count__ > 1) { %>

{{m.tuix.item_count_message.replace("[[count]]", m.tuix.__item_count__)|e}}

<% } %> <% if (m.tuix.subtitle !== undefined) { %>

{{m.tuix.subtitle|e}}

<% } %> <% if (m.thus.sortedCollectionButtons.length) { %> <% if (zenarioT.find(m.thus.sortedCollectionButtons, ["above_list", "column_header", undefined]) && !_.isEmpty(m.tuix.columns)) { %>
{{m.lib.pMicroTemplate("button", m.thus.sortedCollectionButtons, ["above_list", "column_header", undefined])}}
<% } %> <% } %> <% if (!_.isEmpty(m.tuix.columns)) { %> <% foreach (m.thus.sortedListOuterGroupings as oi => logName) { %> <% log = m.tuix.list_outer_groupings && m.tuix.list_outer_groupings[logName]; %> <% if (log) { %> {{m.lib.pMicroTemplate("list_block_outer_grouping", log)}} <% } %> <% foreach (m.thus.sortedListGroupings as gi => lgName) { %> <% lg = m.tuix.list_groupings && m.tuix.list_groupings[lgName]; %> <% if (lg) { %> <% if (log && logName != lg.list_outer_grouping) { %> <% continue; %> <% } %> {{m.lib.pMicroTemplate("list_block_grouping", lg)}} <% } %>
<% foreach (m.thus.sortedItems as ii => item) { %> <% if (lg && lgName != item.list_grouping) { %> <% continue; %> <% } %> <% if (m.tuix.has_headers) { %> <% if (item.header_id != headerId) { %> <% if (headerId !== false) { %>
<% } %> <% headerId = item.header_id; %>

{{item.header_name|e}}

<% } %> <% } %>
<% if (item.thumbnail) { %>
width="{{item.thumbnail.width|e}}" <% } %> <% if (item.thumbnail.height) { %> height="{{item.thumbnail.height|e}}" <% } %> />
<% } %> <% if (item.__sortedItemButtons.length && zenarioT.find(item.__sortedItemButtons, "top")) { %>
{{m.lib.pMicroTemplate("button", item.__sortedItemButtons, "top")}}
<% } %> <% var sameRow = false; %> <% foreach (m.thus.sortedColumns as ci => col) { %> <% if (!(showParent = m.lib.columnVisibleForItem(col.id, item.id))) { %> <% var blockInvis = true; %> <% if (col.children) { %> <% foreach (col.children as chi => child) { %> <% if (m.lib.columnVisibleForItem(child.id, item.id)) { %> <% blockInvis = false; %> <% } %> <% } %> <% } %> <% if (blockInvis) { %> <% continue; %> <% } %> <% } %> <% if (m.thus.sortedColumns[+ci + 1] && m.thus.sortedColumns[+ci + 1].same_row && !sameRow) { %> <% sameRow = true; %>
<% } %> <% tag = col.tag ? col.tag : "p"; %>
<% if (col.show_title_in_block_view && col.title) { %>
{{col.title|e}}
<% } %> <% if (zenario.defined(col.previous_label) && zenario.defined(item["prev__" + col.id])) { %>
{{col.current_label|e}}
{{item[col.id]|e}}
{{col.previous_label|e}}
{{item["prev__" + col.id]|e}}
<% } else if (col.children) { %>
<% if (showParent && zenario.defined(item[col.id])) { %>
{{m.lib.pMicroTemplate("list_cell", {col: col, item: item})}}
<% } %> <% foreach (col.children as chi => child) { %> <% if (m.lib.columnVisibleForItem(child.id, item.id)) { %>
{{m.lib.pMicroTemplate('list_cell', {col: child, item: item})}}
<% } %> <% } %>
<% } else { %>
{{m.lib.pMicroTemplate("list_cell", {col: col, item: item})}}
<% } %> <% if (col.cell_tooltip) { %> <% } %>
<% if (col.same_row && sameRow && (!m.thus.sortedColumns[+ci + 1] || !m.thus.sortedColumns[+ci + 1].same_row)) { %> <% sameRow = false; %>
<% } %> <% } %> <% if (item.__sortedItemButtons.length && zenarioT.find(item.__sortedItemButtons, ["bottom", undefined])) { %>
{{m.lib.pMicroTemplate("button", item.__sortedItemButtons, ["bottom", undefined])}}
<% } %> <% if (item.thumbnail) { %>
<% } %>
<% } %> <% if (!zenarioL.mobile && m.lib.mode != "view_data_pool_block") { m.lib.after(function() { var maxHeight = 0; $("#" + m.lib.containerId + " .zfea_block_list_wrap .zfea_block") .each(function() { maxHeight = Math.max(maxHeight, $(this).height()); }) .height(maxHeight); }); } %> <% if (m.thus.sortedItems.length == 0) { %> <% var msg; %> <% if (lib.request.search && (msg = m.tuix.no_items_in_search_message)) { %>
{{msg}}
<% } else if (msg = m.tuix.no_items_message) { %>
{{msg}}
<% } %> <% } %>
<% if (lg) { %> {{m.lib.pMicroTemplate("list_block_grouping_end", lg)}} <% } %> <% } %> <% if (log) { %> {{m.lib.pMicroTemplate("list_block_outer_grouping_end", log)}} <% } %> <% } %> <% } %> {{m.lib.pMicroTemplate("list_pagination", m)}} {{m.tuix.footer_html}}
<% m.lib.after(function() { zenario.sendSignal("eventListPostDisplay", {containerId: containerId, microTemplate: "fea_list_blocks", tuix: tuix, lib: lib}); }); %>