<% var restrictedClass=''; if(IS_IP_RESTRICTED){ restrictedClass = RESTRICTED_CLASS} var columns = items.columns; var currentSortOption = items.sortOption; var currentSortOrder = items.sortOrder; var showCheckbox = !columns.hideCheckbox; for(var counter=startIndex;counter <% if(item.type==='header'){ %>
<% if(showCheckbox){ %>
<% } %>
<% for(var i = 0; i < columns.length; i++){ var labelName = columns[i].label; var className = columns[i].class; if(showDefaultColumn && columns[i].dynamicHeader){ className += columns[i].defaultHeader? '': ' hide'; }else if(columns[i].dynamicHeader){ className += columns[i].headerSortOption === currentSortOption? '': ' hide'; } var attr = ''; if(columns[i].headerSortOption){ order = 'Desc' attr += 'data-sortOption=' + columns[i].headerSortOption; className += ' sortField'; if(columns[i].headerSortOption === currentSortOption){ className += ' currentSortField'; } } %>
> <%= _.escape(labelName)%> <% if(columns[i].headerSortOption) { %> <%}%>
<% } %>
<%}%> <% if(item.type==='list'){ var model = item.model; var isSelected = model.isSelected; var url = model.attributes.thumbnail; var mediaType = model.attributes.uiMediaType; var defaultUrl = (model.attributes.uiMediaType === 'video') ? window.svgSrcHome["error_no_video"] : window.svgSrcHome["error_no_photo"]; %>
<% if(showCheckbox){ %>
checked <%}%>/>
<% } %>
<% for(var i = 0; i < columns.length; i++){ var label = model.attributes[columns[i].name]; var type= columns[i].type; var className = columns[i].class; var attribute=''; if(type&&type==='date'){ label = (new Date(label)).toDateString() } if(showDefaultColumn && columns[i].dynamicHeader){ className += columns[i].defaultHeader? '': ' hide'; }else if(columns[i].dynamicHeader){ className += columns[i].headerSortOption === currentSortOption? '': ' hide'; } if(columns[i].attribute){ attribute=columns[i].attribute } %>
><%=_.escape(label) %>
<%}%>
<%}%> <%}%>