You are viewing a plain text version of this content. The canonical link for it is here.
Posted to tdk-dev@turbine.apache.org by jv...@apache.org on 2001/05/22 23:01:15 UTC
cvs commit: jakarta-turbine-tdk/src/share/velocity/peer/templates/app/screens Error.vm Form.vm Index.vm Insert.vm Login.vm Upload.vm UploadComplete.vm
jvanzyl 01/05/22 14:01:14
Added: src/share/velocity/peer/templates/app GlobalMacros.vm
src/share/velocity/peer/templates/app/layouts Default.vm
Login.vm
src/share/velocity/peer/templates/app/navigations
DefaultBottom.vm DefaultTop.vm Menu.vm
src/share/velocity/peer/templates/app/screens Error.vm
Form.vm Index.vm Insert.vm Login.vm Upload.vm
UploadComplete.vm
Log:
- move the vel templates into app, and make a directory for
jsp templates.
Revision Changes Path
1.1 jakarta-turbine-tdk/src/share/velocity/peer/templates/app/GlobalMacros.vm
Index: GlobalMacros.vm
===================================================================
#* ------------------------------------------------------------------
#
# Macros that are used for displaying input forms.
#
*# ------------------------------------------------------------------
#macro (text $text)
<font face="$ui.sansSerifFonts">
$text
</font>
#end
#macro (formLabel $label)
<td bgcolor="$ui.formLabelColor">
<b>
<font face="$ui.sansSerifFonts">
$label
</font>
</b>
</td>
#end
#macro (formTextField $name $value)
<td bgcolor="$ui.formFieldColor">
<font face="$ui.sansSerifFonts">
<input type="text" size="30" name="$name" value="$value">
</font>
</td>
#end
#macro (textField $name $value $size)
<font face="$ui.sansSerifFonts">
<input type="text" size="30" name="$name" value="$value">
</font>
#end
#macro (listBox $list)
<font face="$ui.sansSerifFonts">
$list
</font>
#end
#macro (formPasswordCell $label $name $value)
<td bgcolor="$ui.formLabelColor">
<b>
<font face="$ui.sansSerifFonts">
$label
</font>
</b>
</td>
<td bgcolor="$ui.formFieldColor">
<font face="$ui.sansSerifFonts">
<input type="password" size="30" name="$name" value="$value">
</font>
</td>
#end
#macro (formCell $label $name $value)
#formLabel($label)
#formTextField($name $value)
#end
#macro (fileUploadField $name)
<td bgcolor="$ui.formFieldColor">
<font face="$ui.sansSerifFonts">
<input type="file" size="30" name="$name">
</font>
</td>
#end
#macro (fileUpload $label $name)
#formLabel($label)
#fileUploadField($name)
#end
#macro (formCheckBox $label $name $checked)
<td bgcolor="$ui.formLabelColor">
<b>
<font face="$ui.sansSerifFonts">
$label
</font>
</b>
</td>
<td bgcolor="$ui.formFieldColor">
<input type="checkbox" name="$name" #if($checked)checked=1#end/>
</td>
#end
#macro (formListBox $label $list)
<td bgcolor="$ui.formLabelColor">
<b>
<font face="$ui.sansSerifFonts">
$label
</font>
</b>
</td>
<td bgcolor="$ui.formFieldColor">
$list
</td>
#end
#* ------------------------------------------------------------------
#
# Macros that are used for displaying information in tables.
#
*# ------------------------------------------------------------------
#macro (headerCell $body)
<td bgcolor="$ui.formLabelColor">
<b>
<font face="$ui.sansSerifFonts">
$body
</font>
</b>
</td>
#end
#macro (entryCell $body)
<td bgcolor="$ui.formFieldColor">
<font face="$ui.sansSerifFonts">
$body
</font>
</td>
#end
1.1 jakarta-turbine-tdk/src/share/velocity/peer/templates/app/layouts/Default.vm
Index: Default.vm
===================================================================
<table width="100%">
<tr>
<td colspan="2">
$navigation.setTemplate("/DefaultTop.vm")
</td>
</tr>
<tr>
<td width="20" align="left" valign="top">
$navigation.setTemplate("/Menu.vm")
</td>
<td align="left" valign="top">
$screen_placeholder
</td>
</tr>
<tr>
<td colspan="2">
$navigation.setTemplate("/DefaultBottom.vm")
</td>
</tr>
</table>
1.1 jakarta-turbine-tdk/src/share/velocity/peer/templates/app/layouts/Login.vm
Index: Login.vm
===================================================================
<table width="100%">
<tr>
<td colspan="2">
$navigation.setTemplate("/DefaultTop.vm")
</td>
</tr>
<tr>
<td align="left">
$screen_placeholder
</td>
</tr>
<tr>
<td colspan="2">
$navigation.setTemplate("/DefaultBottom.vm")
</td>
</tr>
</table>
1.1 jakarta-turbine-tdk/src/share/velocity/peer/templates/app/navigations/DefaultBottom.vm
Index: DefaultBottom.vm
===================================================================
<font face="verdana,geneva,helvetica">
<hr>
</font>
1.1 jakarta-turbine-tdk/src/share/velocity/peer/templates/app/navigations/DefaultTop.vm
Index: DefaultTop.vm
===================================================================
$page.setBgColor("#ffffff")
<img src="$content.getURI("images/tdm.jpg")">
<hr>
1.1 jakarta-turbine-tdk/src/share/velocity/peer/templates/app/navigations/Menu.vm
Index: Menu.vm
===================================================================
<font face="$ui.sansSerifFonts">
<a href="$link.setPage("Insert.vm")">Insert Entry</a>
<p>
<b>Flux</b>
<br>
<a href="$link.setPage("user,FluxUserList.vm")">Users</a>
<br>
<a href="$link.setPage("group,FluxGroupList.vm")">Groups</a>
<br>
<a href="$link.setPage("role,FluxRoleList.vm")">Roles</a>
<br>
<a href="$link.setPage("permission,FluxPermissionList.vm")">Permissions</a>
<p>
<b>Services</b>
##<br>
##<a href="">Intake Service</a>
##<br>
##<a href="">Localization Service</a>
##<br>
##<a href="">Pull Service</a>
##<br>
##<a href="">Scheduler Service</a>
<br>
<a href="$link.setPage("Upload.vm")">Upload Service</a>
<br>
##<a href="">Servlet Service</a>
##<br>
##<a href="">Unique Id Service</a>
##<br>
##<a href="">XML-RPC Service</a>
##<br>
##<a href="">XSLT Service</a>
<p>
<b>Common Tasks</b>
<br>
<a href="">User Downloads</a>
<p>
<a href="$link.setPage("Index.vm")">Home</a>
<p>
<a href="$link.setAction("LogoutUser")">Logout</a>
</font>
1.1 jakarta-turbine-tdk/src/share/velocity/peer/templates/app/screens/Error.vm
Index: Error.vm
===================================================================
$page.setTitle("Error")
$page.setBgColor("#ffffff")
<font face="verdana,geneva,helvetica">
<h2>Error</h2>
#if($data.getMessage())
Message: $data.getMessage()
#end
</font>
<br>
1.1 jakarta-turbine-tdk/src/share/velocity/peer/templates/app/screens/Form.vm
Index: Form.vm
===================================================================
$page.setTitle("Insert")
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#ffffff" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<form method="post" action="$link.setPage("Index.vm").setAction("SQL")">
<div align="left">
<table bgcolor="#ffffff" cellpadding="5">
<tr>
#formCell ("Title" "title" $entry.Title)
</tr>
<tr>
#formCell ("Author" "author" $entry.Author)
</tr>
<tr>
#formCell ("Department" "dept" $entry.Dept)
</tr>
<tr>
#formCell ("Url" "url" $entry.Url)
</tr>
<tr>
#formCell ("Body" "body" $entry.Body)
</tr>
</table>
<input type="hidden" name="rdfid" value="$entry.RdfId"/>
<input type="submit" name="eventSubmit_doInsert" value="Insert"/>
<input type="submit" name="eventSubmit_doUpdate" value="Update"/>
<input type="submit" name="eventSubmit_doDelete" value="Delete"/>
</div>
</form>
</body>
1.1 jakarta-turbine-tdk/src/share/velocity/peer/templates/app/screens/Index.vm
Index: Index.vm
===================================================================
$page.setTitle("Index")
$page.setBgColor("#ffffff")
#set ( $headings = ["Title", "Dept", "Author", "Url","Body"," "] )
#if ($entries)
<table>
<tr>
<td>
<table cellspacing="1" cellpadding="1">
<tr>
#foreach ($heading in $headings)
#headerCell ($heading)
#end
</tr>
#foreach ($entry in $entries)
<tr>
#entryCell ($entry.Title)
#entryCell ($entry.Dept)
#entryCell ($entry.Author)
#entryCell ($entry.Url)
#entryCell ($entry.Body)
<td><a href="$link.setPage("Form.vm").addPathInfo("rdfid", $entry.RdfId)">Edit</a></td>
</tr>
#end
</table>
</td>
</tr>
</table>
#end
1.1 jakarta-turbine-tdk/src/share/velocity/peer/templates/app/screens/Insert.vm
Index: Insert.vm
===================================================================
$page.setTitle("Insert")
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#ffffff" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<form method="post" action="$link.setPage("Index.vm").setAction("SQL")">
<div align="left">
<table bgcolor="#ffffff" cellpadding="5">
<tr>
#formCell ("Title" "title" "")
</tr>
<tr>
#formCell ("Author" "author" "")
</tr>
<tr>
#formCell ("Department" "dept" "")
</tr>
<tr>
#formCell ("Url" "url" "")
</tr>
<tr>
#formCell ("Body" "body" "")
</tr>
</table>
<input type="submit" name="eventSubmit_doInsert" value="Insert"/>
</div>
</form>
1.1 jakarta-turbine-tdk/src/share/velocity/peer/templates/app/screens/Login.vm
Index: Login.vm
===================================================================
#**
@author <a href="mailto:jvanzyl@periapt.com">Jason van Zyl</a>
@version $Id: Login.vm,v 1.1 2001/05/22 21:01:13 jvanzyl Exp $
*#
$page.setTitle("Please Login")
$page.setBgColor($ui.bgcolor)
<form method="post" action="$link.setAction("LoginUser")">
<table>
<tr>
#formCell ("User" "username" "")
</tr>
<tr>
#formPasswordCell ("Password" "password" "")
</tr>
<tr>
<td>
<font face="$ui.sansSerifFonts">
<input type="submit" value="Login">
</font>
</td>
</tr>
</table>
</form>
1.1 jakarta-turbine-tdk/src/share/velocity/peer/templates/app/screens/Upload.vm
Index: Upload.vm
===================================================================
$page.setBgColor($ui.bgcolor)
$page.setTitle("File Upload")
<form method="post" enctype="multipart/form-data" action="$link.setPage("UploadComplete.vm").setAction("Upload")">
<div align="left">
<table bgcolor="#ffffff" cellpadding="5">
#if ($errorTemplate)
<tr>
<td colspan="4">
<table bgcolor="#ffffff">
<tr>
<td>
<img src="$ui.image($ui.alertImage,$data)">
</td>
<td>
#parse ($errorTemplate)
</td>
</tr>
</table>
</td>
</tr>
#end
<tr>
#fileUpload ("File" "file")
</tr>
<tr>
<td align="$ui.buttonAlignment" bgcolor="$ui.buttonColor">
#*
Check for a mode, the update and delete buttons
shouldn't appear when inserting a new user.
*#
<font face="$ui.sansSerifFonts">
<input type="submit" name="eventSubmit_doUpload" value="Upload"/>
</font>
</td>
</tr>
</table>
</div>
</form>
1.1 jakarta-turbine-tdk/src/share/velocity/peer/templates/app/screens/UploadComplete.vm
Index: UploadComplete.vm
===================================================================
$page.setBgColor($ui.bgcolor)
$page.setTitle("File Upload")
Your file has been successfully uploaded!
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-tdk-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-tdk-dev-help@jakarta.apache.org