<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
- <COPYRIGHT>
- Copyright 2003 Gerd Stolpmann
-
- <GPL>
- This file is part of WTimer.
-
- WTimer is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- WTimer is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with WDialog; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- </>
-->
<!-- $Id: startpage.ui,v 1.6 2003/03/23 20:03:50 gerd Exp $
- ======================================================================
-
-->
<!-- This file defines the dialog "startpage". -->
<ui:dialog name="startpage" start-page="home">
<ui:variable name="entered-user"/>
<ui:variable name="entered-password"/>
<ui:variable name="session" type="dialog"/>
<ui:variable name="bad-password">
<ui:string-value>no</ui:string-value>
</ui:variable>
<ui:variable name="version"/>
<ui:page name="home" from-caller="url-suffix">
<ui:default name="url-suffix"
><ui:if value1="&login-dialog;" value2="no">/auth</ui:if></ui:default>
<t:start-grid>
<p:main-col>
<ui:form action-suffix="${url-suffix}">
<div class="app-title-pos">
<t:vspacer size="50"/>
<div class="app-title-text">WTimer</div>
<t:vspacer size="20"/>
<div class="app-author-text">Version $[version], Copyright 2003 by Gerd Stolpmann</div>
<t:vspacer size="20"/>
<div>
WTimer comes with <i>absolutely <a
href="&static-url-prefix;gpl.html#nowarranty">no
warranty</a></i>. This is free software,<br/>and you are
welcome to redistribute it under certain <a
href="&static-url-prefix;gpl.html#distribute">conditions</a>.
</div>
<t:vspacer size="50"/>
<table>
<tr>
<td> </td>
<td>
<ui:cond>
<ui:if value1="&login-dialog;" value2="yes">
<table class="app-login-text">
<ui:if value1="$[bad-password]" value2="yes">
<tr>
<td class="app-error">Error:</td>
<td class="app-error">No such user/Bad password</td>
<td> </td>
</tr>
</ui:if>
<tr>
<td>User name:</td>
<td><ui:text variable="entered-user" tabindex="1"/>
</td>
<td rowspan="2">
>
<ui:button name="login" label="Login" tabindex="3"/>
</td>
</tr>
<tr>
<td>Password:</td>
<td><ui:password variable="entered-password" tabindex="2"/>
</td>
</tr>
</table>
</ui:if>
<ui:true><!-- else: -->
<div class="app-login-text">
>>> <ui:button name="start" label="Start"/>
</div>
</ui:true>
</ui:cond>
</td>
</tr>
<tr><td><t:vspacer size="20"/></td></tr>
<tr>
<td> </td>
<td>Browser capabilities</td>
</tr>
<tr>
<td align="right">Grid style:</td>
<td><ui:select variable="session.grid"/></td>
</tr>
<tr>
<td align="right">Remember style:</td>
<td><ui:checkbox variable="session.grid-cookie" value="yes"/>
(Selected style is stored in a cookie)</td>
</tr>
</table>
</div>
<input type="hidden" name="var_session.js-enabled" value="no"/>
</ui:form>
</p:main-col>
<p:html-foot>
<script language="javascript">
<ui:special>
document.uiform.elements["var_session.js-enabled"].value = "yes";
</ui:special>
</script>
</p:html-foot>
</t:start-grid>
</ui:page>
<ui:variable name="runtime-error"/>
</ui:dialog>
<ui:template name="fatal-error">
<!-- This template is used when a fatal error occurs. -->
<!-- Note: Because this template is instantiated outside the normal
- wdialog processing environment, most of the form-based features
- are not available.
-->
<t:start-grid>
<p:main-col>
<div class="fatal-error">
<h1>Fatal error of the WTimer application</h1>
<t:error errid="$[runtime-error]"/>
<!-- <ui:button name="cont-error" label="Continue"/> -->
</div>
</p:main-col>
</t:start-grid>
</ui:template>
<!-- ******************* For Emacs: ********************* -->
<!--
Local Variables:
mode: xml
sgml-parent-document: ("main.ui" "ui:application" "ui:dialog")
End:
-->