%
row = cell(:elements, :row).new
block = cell(:elements, :block).new(class: 'xs-12 sm-12 md-12')
code = cell(:elements, :code).new
table = cell(:elements, :table, :container).new
%>
<%=raw row.open %>
<%=raw block.open %>
<%=raw cell(:elements, :title).new(label: 'Cells Elements: Table head') %>
This cell is a partial element of a table and render the thead tag with columns.
<%=raw block.close %>
<%=raw row.close %>
<%=raw cell(:elements, :title).new(label: 'Normal Table head', size: 3) %>
<%=raw row.open %>
<%=raw block.open %>
<%=raw table.open %>
<%=raw cell(:elements, :table, :head).new(labels: ['Name', 'Last login']) %>
<% table_body = cell(:elements, :table, :body).new %>
<%=raw table_body.open %>
<%=raw cell(:elements, :table, :row).new(labels: ['Pippo baudo', 'Two days ago']) %>
<%=raw cell(:elements, :table, :row).new(labels: ['Mario Rossi', 'Last week']) %>
<%=raw table_body.close %>
<%=raw table.close %>
<%=raw block.close %>
<%=raw row.close %>
<%=raw row.open %>
<%=raw block.open %>
<%=raw cell(:elements, :title).new(label: 'Code', size: 6) %>
<%=raw code.open %>
<%= erb_open_tag %>=raw cell(:elements, :table, :head).new(labels: ['Name', 'Last login']) <%= erb_close_tag %>
<%=raw code.close %>
<%=raw block.close %>
<%=raw row.close %>
<%=raw cell(:elements, :title).new(label: 'Table head with color', size: 3) %>
<%=raw row.open %>
<%=raw block.open %>
<%=raw table.open %>
<%=raw cell(:elements, :table, :head).new(labels: ['Name', 'Last login'], color: true) %>
<% table_body = cell(:elements, :table, :body).new %>
<%=raw table_body.open %>
<%=raw cell(:elements, :table, :row).new(labels: ['Pippo baudo', 'Two days ago']) %>
<%=raw cell(:elements, :table, :row).new(labels: ['Mario Rossi', 'Last week']) %>
<%=raw table_body.close %>
<%=raw table.close %>
<%=raw block.close %>
<%=raw row.close %>
<%=raw row.open %>
<%=raw block.open %>
<%=raw cell(:elements, :title).new(label: 'Code', size: 6) %>
<%=raw code.open %>
<%= erb_open_tag %>=raw cell(:elements, :table, :head).new(labels: ['Name', 'Last login'], color: true) <%= erb_close_tag %>
<%=raw code.close %>
<%=raw block.close %>
<%=raw row.close %>