<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
- <COPYRIGHT>
- Copyright 2005 Gerd Stolpmann
-
- <GPL>
- This file is part of UMLMON-Web.
-
- UMLMON-Web 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.
-
- UMLMON-Web 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 UMLMON-Web; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- </>
-->
<!-- $Id: startpage.ui 121 2005-06-12 13:56:40Z gerd $
- ======================================================================
-
-->
<!-- This file defines the dialog "startpage". -->
<ui:dialog name="startpage" start-page="home">
<ui:variable name="nav_prev" type="dialog"/>
<ui:variable name="nav_name">
<ui:string-value>VM-Auswahl</ui:string-value>
</ui:variable>
<ui:variable name="password"/>
<ui:variable name="runtime-error"/>
<ui:variable name="runtime-error-detail"/>
<ui:variable name="id"/>
<ui:variable name="vm_list_name" type="string" associative="yes" temporary="yes"/>
<ui:variable name="vm_list_host" type="string" associative="yes" temporary="yes"/>
<ui:variable name="vm_list_status" type="string" associative="yes" temporary="yes"/>
<ui:enumeration name="status">
<ui:enum internal="INACTIVE" external="inaktiv"/>
<ui:enum internal="STARTING" external="startet gerade"/>
<ui:enum internal="STOPPED" external="suspendiert"/>
<ui:enum internal="RUNNING" external="läuft"/>
<ui:enum internal="NA" external="nicht ermittelbar"/>
</ui:enumeration>
<ui:page name="home">
<t:grid>
<p:main-col>
<h2>VM-Auswahl</h2>
Folgende virtuelle Maschinen können per UMLMON gesteuert werden:
- <ui:a name="again">Aktualisieren</ui:a>
<p>
<table class="info">
<ui:iterate template="vm_list" variable="vm_list_name">
<ui:iter-empty>
<tr><td colspan="3"><i>keine</i></td></tr>
</ui:iter-empty>
<ui:iter-head>
<tr>
<th width="100">Name</th>
<th width="100">Host</th>
<th>Status</th>
</tr>
</ui:iter-head>
</ui:iterate>
</table>
</p>
</p:main-col>
</t:grid>
</ui:page>
<ui:page name="enter-password">
<t:grid>
<p:main-col>
<h2>Passwort-Abfrage</h2>
<p>Bitte geben Sie das Passwort, das den Zugang zur VM $[id] freischaltet, ein:
<ui:password variable="password"/>
</p>
<p><ui:button name="login" label="Einloggen"/></p>
</p:main-col>
</t:grid>
</ui:page>
<ui:page name="runtime-error">
<t:grid>
<p:main-col>
<q:error errid="$[runtime-error]" followup-page="home"/>
</p:main-col>
</t:grid>
</ui:page>
</ui:dialog>
<ui:template name="vm_list" from-caller="int">
<tr>
<td><ui:a name="vm" index="$int">$[assoc(vm_list_name,$int)]</ui:a></td>
<td>$[assoc(vm_list_host,$int)]</td>
<td>$[translate(enum(status),assoc(vm_list_status,$int))]</td>
</tr>
</ui:template>
<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:grid>
<p:main-col>
<div class="fatal-error">
<h1>Fatal error of UMLMON-Web!</h1>
<t:error errid="$[runtime-error]"/>
<!-- <ui:button name="cont-error" label="Continue"/> -->
</div>
</p:main-col>
</t:grid>
</ui:template>
<!-- ******************* For Emacs: ********************* -->
<!--
Local Variables:
mode: xml
sgml-parent-document: ("umlmon_web.ui" "ui:application" "ui:dialog")
End:
-->