source: trunk/grails-app/views/login/auth.gsp @ 201

Last change on this file since 201 was 194, checked in by gav, 15 years ago

Remove the auto inserted login credentials and message in production mode.

File size: 2.8 KB
RevLine 
[59]1<head>
2<meta name='layout' content='main' />
3<title>Login</title>
4<style type='text/css' media='screen'>
5#login {
[193]6    margin:15px 0px; padding:0px;
7    text-align:center;
[59]8}
9#login .inner {
[193]10    width:260px;
11    margin:0px auto;
12    text-align:left;
13    padding:10px;
[59]14/*      border-top:1px dashed #499ede;
[193]15    border-bottom:1px dashed #499ede;*/
[59]16/*      background-color:#EEF;*/
17}
18#login .inner .fheader {
[193]19    padding:4px;margin:3px 0px 3px 0;color:#2e3741;font-size:14px;font-weight:bold;
[59]20}
21#login .inner .cssform p {
[193]22    clear: left;
23    margin: 0;
24    padding: 5px 0 0 0;
25    padding-left: 105px;
[59]26/*      border-top: 1px dashed gray;*/
[193]27    margin-bottom: 10px;
28    height: 1%;
[59]29}
30#login .inner .cssform input[type='text'] {
[193]31    width: 120px;
[59]32}
[139]33#login .inner .cssform input[type='submit']:link {
34}
35#login .inner .cssform input[type='submit']:visited {
36}
37#login .inner .cssform input[type='submit']:hover {
38    background:#bfdaff;
39}
[59]40#login .inner .cssform label {
[193]41    font-weight: bold;
42    float: left;
43    margin-left: -105px;
44    width: 100px;
45    padding: 5px 0 0 0;
[59]46}
47#login .inner .login_message {color:red;}
48#login .inner .text_ {width:120px;}
49#login .inner .chk {height:12px;}
50</style>
51</head>
52
53<body>
[193]54    <div id='login'>
[59]55        <h1>Welcome to gnuMims please log in</h1>
[194]56
57        <g:if env="development">
[124]58        The demo users are <b>user</b>, <b>manager</b> and  <b>admin</b> all having the password: <b>pass</b>
[194]59        </g:if>
[59]60
[193]61        <div class='inner'>
62            <g:if test='${flash.message}'>
63            <div class='login_message'>${flash.message}</div>
64            </g:if>
65            <div class='fheader'></div>
66            <form action='${postUrl}' method='POST' id='loginForm' class='cssform'>
67                <p>
68                    <label for='j_username'>Login ID</label>
[194]69
70                    <g:if env="production">
71                        <input type='text' class='text_' name='j_username' id='j_username'/>
72                    </g:if>
73                    <g:else >
74                        <input type='text' class='text_' name='j_username' id='j_username' value='manager'  />
75                    </g:else >
76
[193]77                </p>
78                <p>
79                    <label for='j_password'>Password</label>
[194]80
81                    <g:if env="production">
82                        <input type='password' class='text_' name='j_password' id='j_password' />
83                    </g:if>
84                    <g:else >
85                        <input type='password' class='text_' name='j_password' id='j_password' value="pass" />
86                    </g:else >
[193]87                </p>
[106]88
[193]89                <p>
90                    <input type='submit' value='Login' />
91                </p>
92            </form>
93        </div>
94    </div>
[59]95<script type='text/javascript'>
96<!--
97(function(){
[193]98    document.forms['loginForm'].elements['j_username'].focus();
[59]99})();
100// -->
101</script>
102</body>
Note: See TracBrowser for help on using the repository browser.