/usr/share/doc/ruby-innate/examples/app/todo/view/index.xhtml is in ruby-innate 2013.02.21-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | <form method="post" action="#{ r :create }">
<fieldset>
<legend>Create new task</legend>
<label for="form_title">Title:</label>
<input id="form_title" type="text" name="title" />
<input type="submit" value="Create" />
</fieldset>
</form>
<table>
<?r @list.each do |title, done| ?>
<tr>
<form method="post" action="#{ r :update }">
<input type="hidden" name="id" value="#{ h title }" />
<td>
<input type="text" name="title" value="#{ h title }" />
</td>
<td>
<?r if done ?>
<input type="checkbox" name="done" checked="checked" />
<?r else ?>
<input type="checkbox" name="done" />
<?r end ?>
</td>
<td>
<input type="submit" value="Update" />
</td>
</form>
<form method="post" action="#{ r :delete }">
<input type="hidden" name="id" value="#{ h title }" />
<td>
<input type="submit" value="Delete" />
</td>
</form>
</tr>
<?r end ?>
</table>
|