#main_div
  = render :partial => "layouts/flash_msg"
  %div{:style => "padding-top:10px"}
    - if @timeprofiles.empty?
      = render :partial => 'layouts/info_msg', :locals => {:message => _("No Records Found.")}
    - else
      %table.table.table-striped.table-bordered.table-hover
        %thead
          %tr
            %th
            - [_('Description'), _('Type'), _('Username'), _('Days'), _('Hours'), _('Timezone'), _('Roll Up Performance')].each do |title|
              %th
                = title
        %tbody
          - @timeprofiles.each do |row|
            %tr
              %td.narrow
                = check_box_tag("check_#{row['id']}", "1", false, :class => "listcheckbox", :onclick => "miqUpdateButtons(this, 'center_tb');")
              - title = row["description"] == "UTC" ? _("Click to view Time Profile") : _("Click to view/edit Time Profile")
              - [row["description"], row["profile_type"], row["profile_key"],
                  @timeprofile_details[row.description][:days].join(", "),
                  @timeprofile_details[row.description][:hours].join(", "),
                  @timeprofile_details[row.description][:tz],
                  row["rollup_daily_metrics"].to_s.capitalize].each do |column|
                %td{:onclick => "DoNav('/configuration/timeprofile_edit/#{row["id"]}');", :title => title}
                  = h(column)

= render :partial => "layouts/flash_msg"

#tab_div
  %div{:style => "padding-top:10px"}
    - if @timeprofiles.empty?
      = render :partial => 'layouts/info_msg', :locals => {:message => _("No Records Found.")}
    - else
      %table.table.table-striped.table-bordered.table-hover
        %thead
          %tr
            %th
            - [_('Description'), _('Type'), _('Username'), _('Days'), _('Hours'), _('Timezone'), _('Roll Up Performance')].each do |title|
              %th
                = title
        %tbody
          - @timeprofiles.each do |row|
            %tr
              %td.narrow
                = check_box_tag("check_#{row['id']}", "1", false, :class => "listcheckbox", :onclick => "miqUpdateButtons(this, 'center_tb');")
              - title = row["description"] == "UTC" ? _("Click to view Time Profile") : _("Click to view/edit Time Profile")
              - [row["description"], row["profile_type"], row["profile_key"],
                  @timeprofile_details[row.description][:days].join(", "),
                  @timeprofile_details[row.description][:hours].join(", "),
                  @timeprofile_details[row.description][:tz],
                  row["rollup_daily_metrics"].to_s.capitalize].each do |column|
                %td{:onclick => "DoNav('/configuration/timeprofile_edit/#{row["id"]}');", :title => title}
                  = h(column)

Remove duplicate main_div from ui_4
Remove duplicate main_div from ui_4
