This commit is contained in:
BoHung Chiu 2022-07-07 17:27:52 +08:00
parent 4ccc1924bd
commit b876ba797c
2 changed files with 6 additions and 4 deletions

View File

@ -7,7 +7,7 @@
.layout-footer .layout-footer-inner{ .layout-footer .layout-footer-inner{
background: #ffffff; background: #ffffff;
} }
.layout-header{ .layout-header > .container{
background: #01538f; background: #01538f;
} }
body{ body{

View File

@ -8,9 +8,11 @@
<% if @drag%> <% if @drag%>
<th></th> <th></th>
<% end %> <% end %>
<% @field_name_translations.each_with_index do |trans,i|%> <%
<% next unless @display_field.include?(@field_names[i]) %> @field_name_translations = @field_name_translations.map.with_index{|trans,i| [@field_names[i], trans]}.to_h
<th class="span2" id="<%=@field_names[i]%>"><%= trans %></th> %>
<% @display_field.each do |field_name| %>
<th class="span2" id="<%= field_name %>"><%= @field_name_translations[field_name] %></th>
<% end %> <% end %>
</tr> </tr>
</thead> </thead>