mirror of
				https://github.com/TheAnachronism/docspell.git
				synced 2025-10-31 09:30:12 +00:00 
			
		
		
		
	Disable autocomplete on some input fields
This commit is contained in:
		| @@ -762,7 +762,10 @@ renderEditForm model = | ||||
|                  ] | ||||
|              ,div [class "field"] | ||||
|                   [div [class "ui action input"] | ||||
|                        [textarea [rows 7, onInput SetNotes][Maybe.withDefault "" model.notesModel |> text] | ||||
|                        [textarea [ rows 6 | ||||
|                                  , autocomplete False | ||||
|                                  , onInput SetNotes | ||||
|                                  ][Maybe.withDefault "" model.notesModel |> text] | ||||
|                        ,button [class "ui icon button", onClick SaveNotes] | ||||
|                            [i [class "save outline icon"][] | ||||
|                            ] | ||||
|   | ||||
| @@ -21,11 +21,15 @@ view flags model = | ||||
|                                  [text "Sign in to Docspell" | ||||
|                                  ] | ||||
|                             ] | ||||
|                        ,Html.form [class "ui large error raised form segment", onSubmit Authenticate] | ||||
|                        ,Html.form [ class "ui large error raised form segment" | ||||
|                                   , onSubmit Authenticate | ||||
|                                   , autocomplete False | ||||
|                                   ] | ||||
|                            [div [class "field"] | ||||
|                                 [label [][text "Username"] | ||||
|                                 ,div [class "ui left icon input"] | ||||
|                                      [input [type_ "text" | ||||
|                                             ,autocomplete False | ||||
|                                             ,onInput SetUsername | ||||
|                                             ,value model.username | ||||
|                                             ,placeholder "Collective / Login" | ||||
| @@ -38,6 +42,7 @@ view flags model = | ||||
|                                [label [][text "Password"] | ||||
|                                ,div [class "ui left icon input"] | ||||
|                                     [input [type_ "password" | ||||
|                                            ,autocomplete False | ||||
|                                            ,onInput SetPassword | ||||
|                                            ,value model.password | ||||
|                                            ,placeholder "Password" | ||||
|   | ||||
| @@ -20,11 +20,15 @@ view flags model = | ||||
|                                 [text "Sign up @ Docspell" | ||||
|                                 ] | ||||
|                            ] | ||||
|                        ,Html.form [class "ui large error form raised segment", onSubmit RegisterSubmit] | ||||
|                        ,Html.form [ class "ui large error form raised segment" | ||||
|                                   , onSubmit RegisterSubmit | ||||
|                                   , autocomplete False | ||||
|                                   ] | ||||
|                            [div [class "required field"] | ||||
|                                 [label [][text "Collective ID"] | ||||
|                                 ,div [class "ui left icon input"] | ||||
|                                      [input [type_ "text" | ||||
|                                             ,autocomplete False | ||||
|                                             ,onInput SetCollId | ||||
|                                             ,value model.collId | ||||
|                                             ,autofocus True | ||||
| @@ -36,6 +40,7 @@ view flags model = | ||||
|                                 [label [][text "User Login"] | ||||
|                                 ,div [class "ui left icon input"] | ||||
|                                      [input [type_ "text" | ||||
|                                             ,autocomplete False | ||||
|                                             ,onInput SetLogin | ||||
|                                             ,value model.login | ||||
|                                             ][] | ||||
| @@ -47,6 +52,7 @@ view flags model = | ||||
|                                 [label [][text "Password"] | ||||
|                                 ,div [class "ui left icon action input"] | ||||
|                                     [input [type_ <| if model.showPass1 then "text" else "password" | ||||
|                                            ,autocomplete False | ||||
|                                            ,onInput SetPass1 | ||||
|                                            ,value model.pass1 | ||||
|                                            ][] | ||||
| @@ -61,6 +67,7 @@ view flags model = | ||||
|                                 [label [][text "Password (repeat)"] | ||||
|                                 ,div [class "ui left icon action input"] | ||||
|                                     [input [type_ <| if model.showPass2 then "text" else "password" | ||||
|                                            ,autocomplete False | ||||
|                                            ,onInput SetPass2 | ||||
|                                            ,value model.pass2 | ||||
|                                            ][] | ||||
| @@ -76,6 +83,7 @@ view flags model = | ||||
|                                [label [][text "Invitation Key"] | ||||
|                                ,div [class "ui left icon input"] | ||||
|                                     [input [type_ "text" | ||||
|                                            ,autocomplete False | ||||
|                                            ,onInput SetInvite | ||||
|                                            ,model.invite |> Maybe.withDefault "" |> value | ||||
|                                            ][] | ||||
|   | ||||
		Reference in New Issue
	
	Block a user