1.1 --- a/examples/Common/Candidate/Resources/candidate_template.xhtml Sat Nov 29 02:11:56 2008 +0100
1.2 +++ b/examples/Common/Candidate/Resources/candidate_template.xhtml Sat Mar 21 00:29:05 2009 +0100
1.3 @@ -7,7 +7,7 @@
1.4 <title>Candidate</title>
1.5 </head>
1.6 <body template:element="candidate">
1.7 -<form action="" method="POST">
1.8 +<form action="" method="POST" enctype="multipart/form-data">
1.9
1.10 <h1>Candidate Details</h1>
1.11
1.12 @@ -110,8 +110,22 @@
1.13 </td>
1.14 </tr>
1.15 <tr>
1.16 + <th width="30%">Picture</th>
1.17 + <td width="70%">
1.18 + <input template:attribute-field="new-picture" type="file" name="..." />
1.19 + <input template:attribute-field="picture" type="hidden" name="..." value="..." />
1.20 + </td>
1.21 + </tr>
1.22 + <tr>
1.23 <th width="30%"></th>
1.24 <td width="70%">
1.25 + <img template:if="@picture != ''" src="images/{@picture}" alt="{@picture}" />
1.26 + </td>
1.27 + </tr>
1.28 + <tr>
1.29 + <th width="30%"></th>
1.30 + <td width="70%">
1.31 + <input type="submit" name="update" value="Update" />
1.32 <input type="submit" name="show" value="Show..." />
1.33 <input type="submit" name="admin" value="Admin..." />
1.34 </td>