From b8939dacbbe9495321f0d7229eac88183f83f080 Mon Sep 17 00:00:00 2001 From: Aaron Raimist Date: Sat, 16 Mar 2019 19:50:21 -0500 Subject: [PATCH] Add placeholders to the username and password field on login form --- src/Scylla/Views.elm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Scylla/Views.elm b/src/Scylla/Views.elm index f936b02..898fca5 100644 --- a/src/Scylla/Views.elm +++ b/src/Scylla/Views.elm @@ -15,7 +15,7 @@ import Svg.Attributes import Url.Builder import Json.Decode as Decode import Html exposing (Html, Attribute, div, input, text, button, div, span, a, h2, h3, table, td, tr, img, textarea, video, source, p) -import Html.Attributes exposing (type_, value, href, class, style, src, id, rows, controls, src) +import Html.Attributes exposing (type_, placeholder, value, href, class, style, src, id, rows, controls, src) import Html.Events exposing (onInput, onClick, preventDefaultOn) import Dict exposing (Dict) import Tuple @@ -131,8 +131,8 @@ roomNotificationCountView ns = loginView : Model -> Html Msg loginView m = div [ class "login-wrapper" ] [ h2 [] [ text "Log In" ] - , input [ type_ "text", value m.loginUsername, onInput ChangeLoginUsername] [] - , input [ type_ "password", value m.loginPassword, onInput ChangeLoginPassword ] [] + , input [ type_ "text", placeholder "Username", value m.loginUsername, onInput ChangeLoginUsername] [] + , input [ type_ "password", placeholder "Password", value m.loginPassword, onInput ChangeLoginPassword ] [] , input [ type_ "text", value m.apiUrl, onInput ChangeApiUrl ] [] , button [ onClick AttemptLogin ] [ text "Log In" ] ]