Improved email labels
This commit is contained in:
parent
9a8490d524
commit
fdeaec8dd4
@ -110,14 +110,15 @@ $newline never
|
|||||||
getRegisterR :: YesodAuthEmail master => GHandler Auth master RepHtml
|
getRegisterR :: YesodAuthEmail master => GHandler Auth master RepHtml
|
||||||
getRegisterR = do
|
getRegisterR = do
|
||||||
toMaster <- getRouteToMaster
|
toMaster <- getRouteToMaster
|
||||||
|
email <- newIdent
|
||||||
defaultLayout $ do
|
defaultLayout $ do
|
||||||
setTitleI Msg.RegisterLong
|
setTitleI Msg.RegisterLong
|
||||||
[whamlet|
|
[whamlet|
|
||||||
$newline never
|
$newline never
|
||||||
<p>_{Msg.EnterEmail}
|
<p>_{Msg.EnterEmail}
|
||||||
<form method="post" action="@{toMaster registerR}">
|
<form method="post" action="@{toMaster registerR}">
|
||||||
<label for="email">_{Msg.Email}
|
<label for=#{email}>_{Msg.Email}
|
||||||
<input type="email" name="email" width="150">
|
<input ##{email} type="email" name="email" width="150">
|
||||||
<input type="submit" value=_{Msg.Register}>
|
<input type="submit" value=_{Msg.Register}>
|
||||||
|]
|
|]
|
||||||
|
|
||||||
@ -200,6 +201,8 @@ getPasswordR :: YesodAuthEmail master => GHandler Auth master RepHtml
|
|||||||
getPasswordR = do
|
getPasswordR = do
|
||||||
toMaster <- getRouteToMaster
|
toMaster <- getRouteToMaster
|
||||||
maid <- maybeAuthId
|
maid <- maybeAuthId
|
||||||
|
pass1 <- newIdent
|
||||||
|
pass2 <- newIdent
|
||||||
case maid of
|
case maid of
|
||||||
Just _ -> return ()
|
Just _ -> return ()
|
||||||
Nothing -> do
|
Nothing -> do
|
||||||
@ -213,13 +216,15 @@ $newline never
|
|||||||
<form method="post" action="@{toMaster setpassR}">
|
<form method="post" action="@{toMaster setpassR}">
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<th>_{Msg.NewPass}
|
<th>
|
||||||
|
<label for=#{pass1}>_{Msg.NewPass}
|
||||||
<td>
|
<td>
|
||||||
<input type="password" name="new">
|
<input ##{pass1} type="password" name="new">
|
||||||
<tr>
|
<tr>
|
||||||
<th>_{Msg.ConfirmPass}
|
<th>
|
||||||
|
<label for=#{pass2}>_{Msg.ConfirmPass}
|
||||||
<td>
|
<td>
|
||||||
<input type="password" name="confirm">
|
<input ##{pass2} type="password" name="confirm">
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2">
|
<td colspan="2">
|
||||||
<input type="submit" value="_{Msg.SetPassTitle}">
|
<input type="submit" value="_{Msg.SetPassTitle}">
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
name: yesod-auth
|
name: yesod-auth
|
||||||
version: 1.1.2.1
|
version: 1.1.2.2
|
||||||
license: MIT
|
license: MIT
|
||||||
license-file: LICENSE
|
license-file: LICENSE
|
||||||
author: Michael Snoyman, Patrick Brisbin
|
author: Michael Snoyman, Patrick Brisbin
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user