Skip to content

Commit

Permalink
Update form example for recent tyxml
Browse files Browse the repository at this point in the history
  • Loading branch information
balat committed Dec 2, 2024
1 parent 00c0378 commit 9d1616c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tutos/8.0/manual/basics-server.wiki
Original file line number Diff line number Diff line change
Expand Up @@ -568,8 +568,8 @@ Form.post_form
~service:connection_service
(fun (name, password) ->
[fieldset
[label ~a:[a_for name] [txt "Name: "];
Form.input ~input_type:`Text ~name:name Form.int;
[label ~a:[a_label_for "loginname"] [txt "Name: "];
Form.input ~a:[a_id "loginname"] ~input_type:`Text ~name Form.int;
br ();
Form.input
~a:[a_placeholder "Password"]
Expand Down
4 changes: 2 additions & 2 deletions tutos/dev/manual/basics-server.wiki
Original file line number Diff line number Diff line change
Expand Up @@ -568,8 +568,8 @@ Form.post_form
~service:connection_service
(fun (name, password) ->
[fieldset
[label ~a:[a_for name] [txt "Name: "];
Form.input ~input_type:`Text ~name:name Form.int;
[label ~a:[a_label_for "loginname"] [txt "Name: "];
Form.input ~a:[a_id "loginname"] ~input_type:`Text ~name Form.int;
br ();
Form.input
~a:[a_placeholder "Password"]
Expand Down

0 comments on commit 9d1616c

Please sign in to comment.