geochan/src/thread_page.eml.html

27 lines
1.2 KiB
HTML
Raw Normal View History

2021-12-29 21:07:17 +01:00
let f thread_view thread_id request =
<script type="text/javascript" src="/assets/js/js_thread.js" defer="defer"></script>
2021-12-29 21:07:17 +01:00
<%s! thread_view %>
% begin match Dream.session "nick" request with
% | None ->
% | Some _ ->
2022-01-24 08:38:18 +01:00
<div class="postForm">
2022-02-18 19:02:17 +01:00
<%s! Dream.form_tag ~action:( Format.sprintf "/%s" thread_id)
2021-12-29 21:07:17 +01:00
~enctype:`Multipart_form_data request %>
2022-01-24 08:38:18 +01:00
<label for="replyComment" id="replyCommentLabel" class="form-label">Comment:</label>
2021-12-29 21:07:17 +01:00
<textarea name="replyComment" type="text" class="form-control" id="replyComment" aria-labelledby="replyCommentLabel"></textarea>
2022-01-24 08:38:18 +01:00
<label for="tags" id="tagsLabel" class="form-label">Tags:</label>
2021-12-29 21:07:17 +01:00
<input name="tags" type="text" class="form-control" id="tags" aria-labelledby="tagsLabel"></input>
2022-01-24 08:38:18 +01:00
<label for="file" id="fileLabel" class="form-label">Picture:</label>
<input id="file" name="file" aria-describedby="fileLabel" type="file" accept="image/*">
2022-01-25 14:07:28 +01:00
<label for="alt" id="altLabel" class="form-label">Image description:</label>
<input name="alt" type="text" class="form-control" id="alt" aria-labelledby="altLabel"></input>
2021-12-29 21:07:17 +01:00
<button type="submit" class="btn btn-primary">Reply</button>
</div>
</form>
% end;