Fixing an issue with output parameters that are of type IntPtr
[castle.git] / Samples / MonoRail / MoviesDemo / Views / Movies / Edit.vm
blobfaa9b34383589da21735decf0421e4cdde00495d
1 <h3>#if ( $movie.Id > 0 ) Edit a movie #else Add a movie #end</h3>
3 $Form.FormTag("%{action='Save'}")
4 <input type="hidden" name="movie.id" value="$movie.Id" />
5 <table>
6     <tr><td><strong>$text.title</strong></td><td><input type="text" name="movie.title" value="$!movie.Title" /></td></tr>
7     <tr><td><strong>$text.description</strong></td><td><textarea name="movie.description" cols="50" rows="5">$!movie.Description</textarea></td></tr>
8     <tr><td><strong>$text.dateAddedLong</strong></td><td><input name="movie.added" type="text" size="7" value="$movie.Added.ToString( "d" )" /></td></tr>
9     <tr><td><strong>$text.scoreLong</strong></td><td><input name="movie.score" size="2" type="text" value="$movie.Score" /></td></tr>
10     <tr>
11         <td colspan="2" align="center">
12             <br />
13             $Form.Submit("Save")
14         </td>
15     </tr>
16 </table>
17 $Form.EndFormTag()
18 <a href="$siteRoot/Movies/List.castle">Cancel</a>