div do
  if @session[:login]
    div do
      span @session[:login]
      span " (" + _("owner_flag") + ")"
      out logout_link _("logout_link")
    end
  else
    out login_form
    
    table do
      tr do
        th do
          label(:for => "login[owner_login]") { _("owner_login_label") + ":" }
        end
        td do
          input :type => "text", :name => "login[owner_login]",
                :size => 8, :autocomplete => "off"
        end
      end
      tr do
        th do
          label(:for => "login[owner_login]") { _("owner_password_label") + ":" }
        end
        td do
          input :type => "password", :name => "login[owner_password]",
                :size => 8
        end
      end
    end  # table
    
    div.login_submit do
      a(:href => "javascript:;", :onclick => "$('login_submit').click()") { _("login_submit") }
      input :type => "submit", :id => "login_submit", :value => _("login_submit"), :style => "display: none"
    end
    
    div do
      img :src => "/images/spinner.gif", :alt => "...", :style => "display: none;"
    end
    
    out end_login_form
  end  # !@sessin[:login]
end
