#main_div
  %h3
    = _('Basic Information')
  .form-horizontal.static
    .form-group
      %label.control-label.col-md-2
        = _('Name')
      .col-md-8
        %p.form-control-static
          = h(widget.name)
    .form-group
      %label.control-label.col-md-2
        = _('Tab Title')
      .col-md-8
        %p.form-control-static
          = h(widget.description)
    .form-group
      %label.control-label.col-md-2
        = _('Locked')
      .col-md-8
        %p.form-control-static
          = h(widget.set_data[:locked])
  %hr
  = render :partial => 'db_widgets', :locals => {:widget => widget}

%h3
  = _('Basic Information')
.form-horizontal.static
  .form-group
    %label.control-label.col-md-2
      = _('Name')
    .col-md-8
      %p.form-control-static
        = h(widget.name)
  .form-group
    %label.control-label.col-md-2
      = _('Tab Title')
    .col-md-8
      %p.form-control-static
        = h(widget.description)
  .form-group
    %label.control-label.col-md-2
      = _('Locked')
    .col-md-8
      %p.form-control-static
        = h(widget.set_data[:locked])
%hr
= render :partial => 'db_widgets', :locals => {:widget => widget}

Fix duplicated DOM id 'main_div' in Dashboard editing.
Fix duplicated DOM id 'main_div' in Dashboard editing.

The content of the partial is places inside #main_div. So it should not
contain a #main_div.
