b
This commit is contained in:
commit
6fd066773f
37 changed files with 1537 additions and 0 deletions
7
src/tyx_util.ml
Normal file
7
src/tyx_util.ml
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
open Tyxml.Html
|
||||
|
||||
let make_input_text id = input ~a:[ a_id id; a_name id; a_input_type `Text ] ()
|
||||
|
||||
let make_form request ~action ~items =
|
||||
(* TODO labels ...? *)
|
||||
form ~a:[ a_action action; a_method `Post ] (Util.csrf_tag request :: items)
|
||||
Loading…
Add table
Add a link
Reference in a new issue