<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>{{$proj.name}}#{{$tick.code}} comment - {{$title}}</title>
<style>
.centered { text-align: center; }
% include view/menu.css
% include view/form.css
</style>
</head>
<body>
% include view/menu.html
<h1 class="centered">comment</h1>
% set action = "/p/" .. $proj.name .. "/t/" .. $tick.code .. "/c"
% if $comm == nil then
% set action = $action
% set comm = {text=""}
% set submit_value = "Create"
% else
% set action = $action .. "/" .. $comm.code .. "/put"
% set submit_value = "Save"
% end
<form action="{{$action}}" method="post">
<table class="field-list">
<tbody>
<tr>
<td>
<label for="desc">Text:</label>
</td>
<td>
<textarea
class="flat-field" id="text" name="text" autofocus required
cols="100" rows="20">{{$comm.text}}</textarea>
</td>
</tr>
</tbody>
</table>
<br>
<input type="submit" class="flat-button" value="{{$submit_value}}">
</form>
</body>
</html>