[% INCLUDE start_html.tt %]
[% INCLUDE css.tt %]
<!-- This template is for pages which should not have the main  menu  -->
[%# $Id: main_nav_nologin.tt,v 1.5 2023/11/29 07:13:50 sqko Exp $ %]
[% INCLUDE loader.tt %]

<div class="sidebar" id=main_left_nav style="float: left;">

<div class=RFClogo>
<form method=post action="/" name=to_login>
<input type="image" src="/celltest/RFCcontrol.png" class="sidebar-logo" alt="Submit" value="Home" >
</form>
</div>


[% IF global_config.passwds.sso_url %]
<div>
<form method=post action="[% global_config.passwds.sso_url %]">
<input type=submit value="Login">
</form>
</div>
[% ELSE %]
<div>
<input type=button value="Login" onclick="open_login()">
</div>
[% END %]

</div>
<div id=rest_of_page class="rest_of_page">

<script>

function open_login()
{
    document.getElementById('login_form').style.display = 'inline-block';
}

</script>

<style>

.overlay {
    font-size:12px;
    vertical-align:top;
    text-align:left;
    display:none;
    z-index: 10;
    left:100px;
    top:100px;
    position: absolute;
    background: white;
    border-style:solid;
    padding:5px;
    border: 1px solid #8E2420;
    min-width:200px;
}

.login_f {
    margin:auto;
    padding:20px;
}

.login_f th, .login_f td {
    padding:10px;
}

</style>

<div style="overflow-y:auto" id=page_content> [%# Ensure that sidebar stays where it is supposed to be %]

<div class=overlay id=login_form>
[% INCLUDE close_btn.tt %]
<form name="myForm" action="/cgi-bin/celltest/login.cgi" method=post>
<input type=hidden name=action value=login>
<table class=login_f>
<tbody>
<tr><th> Username: </th>
<th> <input type="text" name="name" onchange="document.myForm.pass.focus()"></th>
</tr><tr>
<th> Password: </th>
<th> <input type="password" name="pass" onchange="document.myForm.login.focus()"></th>
</tr><tr><td></td><td>
<input type="submit" value="Login" class=rfcbutton style="float:right;">
</td></tr></tbody></table>
</form>
</div>
