|
Revision 335, 1.6 kB
(checked in by sfuchs, 3 years ago)
|
Extended the Propel/Bookstore example
|
| Line | |
|---|
| 1 |
<patTemplate:tmpl name="page"> |
|---|
| 2 |
<html> |
|---|
| 3 |
<head> |
|---|
| 4 |
<title>patForms String Renderer Example</title> |
|---|
| 5 |
<style> |
|---|
| 6 |
TABLE.login{ |
|---|
| 7 |
border:solid 1px #000000; |
|---|
| 8 |
} |
|---|
| 9 |
TD.head{ |
|---|
| 10 |
background-color:#000000; |
|---|
| 11 |
color:#ffffff; |
|---|
| 12 |
font-weight:bold; |
|---|
| 13 |
padding-left:8px; |
|---|
| 14 |
} |
|---|
| 15 |
DIV.errorBox { |
|---|
| 16 |
border: 2px solid #990000; |
|---|
| 17 |
padding: 10px; |
|---|
| 18 |
margin-bottom: 20px; |
|---|
| 19 |
color: #990000; |
|---|
| 20 |
} |
|---|
| 21 |
</style> |
|---|
| 22 |
</head> |
|---|
| 23 |
<body> |
|---|
| 24 |
|
|---|
| 25 |
<patTemplate:tmpl name="errors" visibility="hidden"> |
|---|
| 26 |
<div class="errorBox"> |
|---|
| 27 |
<patTemplate:tmpl name="error" type="condition" conditionVar="ERROR_TYPE"> |
|---|
| 28 |
<patTemplate:sub condition="field"> |
|---|
| 29 |
<b>{FIELD_LABEL}:</b> {ERROR_MESSAGE}<br /> |
|---|
| 30 |
</patTemplate:sub> |
|---|
| 31 |
<patTemplate:sub condition="form"> |
|---|
| 32 |
{ERROR_MESSAGE}<br /> |
|---|
| 33 |
</patTemplate:sub> |
|---|
| 34 |
</patTemplate:tmpl> |
|---|
| 35 |
</div> |
|---|
| 36 |
</patTemplate:tmpl> |
|---|
| 37 |
|
|---|
| 38 |
|
|---|
| 39 |
<patTemplate:tmpl name="form"> |
|---|
| 40 |
{PATFORMS_FORM_BOOK_START} |
|---|
| 41 |
<input type="hidden" name="action" value="form"> |
|---|
| 42 |
<table border="0" cellpadding="3" cellspacing="0" class="login"> |
|---|
| 43 |
<tr> |
|---|
| 44 |
<td colspan="4" class="head"><b>Bookstore</b></td> |
|---|
| 45 |
</tr> |
|---|
| 46 |
<patTemplate:tmpl name="element" type="condition" conditionVar="PATFORMS_ELEMENT_DISPLAY"> |
|---|
| 47 |
<patTemplate:sub condition="no"> |
|---|
| 48 |
{PATFORMS_ELEMENT} |
|---|
| 49 |
</patTemplate:sub> |
|---|
| 50 |
<patTemplate:sub condition="__default"> |
|---|
| 51 |
<tr> |
|---|
| 52 |
<td>{PATFORMS_ELEMENT_TITLE}</td> |
|---|
| 53 |
<td> : </td> |
|---|
| 54 |
<td>{PATFORMS_ELEMENT}</td> |
|---|
| 55 |
<td><i>{PATFORMS_ELEMENT_DESCRIPTION}</i></td> |
|---|
| 56 |
</tr> |
|---|
| 57 |
</patTemplate:sub> |
|---|
| 58 |
</patTemplate:tmpl> |
|---|
| 59 |
</table><br> |
|---|
| 60 |
<input type="submit" name="save" value="Save form"/><br><br> |
|---|
| 61 |
{PATFORMS_FORM_BOOK_END} |
|---|
| 62 |
</patTemplate:tmpl> |
|---|
| 63 |
|
|---|
| 64 |
</body> |
|---|
| 65 |
</html> |
|---|
| 66 |
</patTemplate:tmpl> |
|---|