aboutsummaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorJoris Guyonvarch2015-07-30 09:24:32 +0200
committerJoris Guyonvarch2015-07-30 09:24:32 +0200
commit043d315c4b15608e04a07cd709e4caf5c3758c61 (patch)
tree368b3dc1f7cc3bd119057e65ccb1bac58998448b /src/client
parent2a53fe50c62d4b7aec0f422998c743f68aa523c1 (diff)
Amelioring the payment add design
Diffstat (limited to 'src/client')
-rw-r--r--src/client/View/Payments/Add.elm38
1 files changed, 25 insertions, 13 deletions
diff --git a/src/client/View/Payments/Add.elm b/src/client/View/Payments/Add.elm
index 32010ef..9d246ef 100644
--- a/src/client/View/Payments/Add.elm
+++ b/src/client/View/Payments/Add.elm
@@ -24,19 +24,31 @@ addPayment name cost =
Ok number -> SC.AddPayment name number
Err _ -> SC.NoCommunication
]
- [ text "Name"
- , input
- [ value name
- , on "input" targetValue (Signal.message actions.address << UpdatePayment << UpdateName)
+ [ div
+ [ class "name" ]
+ [ label
+ [ for "nameInput" ]
+ [ text "Name" ]
+ , input
+ [ id "nameInput"
+ , value name
+ , on "input" targetValue (Signal.message actions.address << UpdatePayment << UpdateName)
+ ]
+ []
]
- []
- , text "Cost"
- , input
- [ value cost
- , on "input" targetValue (Signal.message actions.address << UpdatePayment << UpdateCost)
+ , div
+ [ class "cost" ]
+ [ label
+ [ for "costInput" ]
+ [ text "Cost" ]
+ , input
+ [ id "costInput"
+ , value cost
+ , on "input" targetValue (Signal.message actions.address << UpdatePayment << UpdateCost)
+ ]
+ []
+ , button
+ [ type' "submit" ]
+ [ text "Add" ]
]
- []
- , button
- [ type' "submit" ]
- [ text "Add" ]
]