summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a60df18)
raw | patch | inline | side by side (parent: a60df18)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 22 Mar 2010 08:37:17 +0000 (08:37 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 22 Mar 2010 08:37:17 +0000 (08:37 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@16975 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/ihtml/themes/modern/login.tpl | [new file with mode: 0644] | patch | blob |
gosa-core/ihtml/themes/modern/logout.tpl | [new file with mode: 0644] | patch | blob |
diff --git a/gosa-core/ihtml/themes/modern/login.tpl b/gosa-core/ihtml/themes/modern/login.tpl
--- /dev/null
@@ -0,0 +1,93 @@
+ <body>
+ {$php_errors}
+ <div class='title-bar'>
+ <ul>
+ <li>{$logo}</li>
+ <li class='right table-wrapper'>
+ <div class='logged-in-label'>{$version}</div>
+ </li>
+ </ul>
+ </div>
+
+ <form action='index.php' method='post' name='mainform' onSubmit='js_check(this);return true;'>
+ {image path="images/empty.png" align="top" action="focus"}
+ {$msg_dialogs}
+
+ {if $ssl}<div class='login-warning'>{$ssl}</div>{/if}
+ {if $lifetime}<div class='login-warning'>{$lifetime}</div>{/if}
+ <script language="JavaScript" type="text/javascript">
+ <!--
+ document.cookie = "gosatest=empty;path=/";
+ if (document.cookie.indexOf( "gosatest=") > -1 )
+ document.cookie = "gosatest=empty;path=/;expires=Thu, 01-Jan-1970 00:00:01 GMT";
+ else
+ document.write("<div class='login-warning'>{$cookies}</div>");
+ -->
+ </script>
+
+
+ <div class='login-box'>
+ <div class='login-box-header'>
+ {t}Sign in{/t}
+ </div>
+
+ <div class='login-box-container'>
+ <div class='login-element-container'>
+ <div style='background-color:green'>
+ <div class='login-label'><label for='username'>{t}Username{/t}</label></div>
+ <div class='login-input'>
+ <input type='text' name='username' maxlength='40' value='{$username}'
+ title='{t}Username{/t}' onFocus="nextfield= 'password';" />
+ </div>
+ </div>
+ <div class="clear"></div>
+ </div>
+
+ <div class='login-element-container'>
+ <div class='login-label'><label for='password'>{t}Password{/t}</label></div>
+ <div class='login-input'>
+ <input type='password' name='password' maxlength='40' value=''
+ title='{t}Password{/t}' onFocus="nextfield= 'login';" />
+ </div>
+ <div class="clear"></div>
+ </div>
+
+ </div>
+ {if $message}<hr><div class='login-inline-message'>{$message}</div>{/if}
+ {if $errors}<hr><div class='login-inline-message'>{$errors}</div>{/if}
+ <hr>
+
+ <div class='login-element-container'>
+ <div class='login-label'>
+ <select size='1' name='server' title='{t}Directory{/t}'>
+ {html_options options=$server_options selected=$server_id}
+ </select>
+ </div>
+ <div class='right'>
+ <button type='submit' name='login' title='{t}Click here to log in{/t}' onFocus="nextfield='login';">{t}Sign in{/t}</button>
+ <input type='hidden' name='login' value='{t}Sign in{/t}' />
+ </div>
+ <div class="clear"></div>
+ </div>
+
+
+ <input type='hidden' name='javascript' value='false' />
+
+ </div>
+
+ </form>
+
+ <div class="clear"></div>
+
+
+ <script language="JavaScript" type="text/javascript">
+ <!--
+ enable_keyPress = false;
+ nextfield= "{$nextfield}";
+ focus_field("{$nextfield}");
+ next_msg_dialog();
+ -->
+ </script>
+
+ </body>
+</html>
diff --git a/gosa-core/ihtml/themes/modern/logout.tpl b/gosa-core/ihtml/themes/modern/logout.tpl
--- /dev/null
@@ -0,0 +1,29 @@
+<body>
+
+<form action='index.php' method='post' name='mainform'>
+
+<div class='logout-box'>
+ <h3>{t}Your GOsa session has expired!{/t}</h3>
+
+ <p>
+ {t}The last interaction with the GOsa web interface has been some time ago in the past. For security reasons, the session has been closed. To continue with administrative tasks, please sign in again.{/t}
+ </p>
+
+ <hr>
+
+ <div class='plugin-actions'>
+ <button type="submit" name="dummy">{t}Sign in again{/t}</button>
+ </div>
+</div>
+
+</form>
+
+<!-- Place cursor -->
+<script language="JavaScript" type="text/javascript">
+ <!-- // First input field on page
+ focus_field('dummy');
+ -->
+</script>
+
+</body>
+</html>