web: fix journal edit form
This commit is contained in:
parent
6142847dd2
commit
23200cdd87
@ -211,9 +211,8 @@ accountsReportAsHtml _ vd@VD{..} (items',total) =
|
|||||||
|
|
||||||
<a href=@{JournalEntriesR} title="Show journal entries">entries</a>
|
<a href=@{JournalEntriesR} title="Show journal entries">entries</a>
|
||||||
|
|
||||||
<a href=@{JournalEditR} title="Edit the journal">edit
|
<a#editformlink href="#" onclick="return editformToggle(event)" title="Edit the journal">
|
||||||
|
edit
|
||||||
(<a#editformlink href onclick="return editformToggle(event)" title="Edit the journal">edit</a>)
|
|
||||||
|
|
||||||
<tr
|
<tr
|
||||||
<td colspan=3
|
<td colspan=3
|
||||||
@ -439,15 +438,15 @@ mixedAmountAsHtml b = preEscapedString $ addclass $ intercalate "<br>" $ lines $
|
|||||||
postJournalR :: Handler RepPlain
|
postJournalR :: Handler RepPlain
|
||||||
postJournalR = handlePost
|
postJournalR = handlePost
|
||||||
|
|
||||||
|
postJournalEntriesR :: Handler RepPlain
|
||||||
|
postJournalEntriesR = handlePost
|
||||||
|
|
||||||
|
postJournalEditR :: Handler RepPlain
|
||||||
|
postJournalEditR = handlePost
|
||||||
|
|
||||||
postRegisterR :: Handler RepPlain
|
postRegisterR :: Handler RepPlain
|
||||||
postRegisterR = handlePost
|
postRegisterR = handlePost
|
||||||
|
|
||||||
postJournalOnlyR :: Handler RepPlain
|
|
||||||
postJournalOnlyR = handlePost
|
|
||||||
|
|
||||||
postRegisterOnlyR :: Handler RepPlain
|
|
||||||
postRegisterOnlyR = handlePost
|
|
||||||
|
|
||||||
-- | Handle a post from any of the edit forms.
|
-- | Handle a post from any of the edit forms.
|
||||||
handlePost :: Handler RepPlain
|
handlePost :: Handler RepPlain
|
||||||
handlePost = do
|
handlePost = do
|
||||||
|
|||||||
@ -3,8 +3,8 @@
|
|||||||
/robots.txt RobotsR GET
|
/robots.txt RobotsR GET
|
||||||
/ RootR GET
|
/ RootR GET
|
||||||
/journal JournalR GET POST
|
/journal JournalR GET POST
|
||||||
/journal/entries JournalEntriesR GET
|
/journal/entries JournalEntriesR GET POST
|
||||||
/journal/edit JournalEditR GET
|
/journal/edit JournalEditR GET POST
|
||||||
/register RegisterR GET
|
/register RegisterR GET POST
|
||||||
/accounts AccountsR GET
|
/accounts AccountsR GET
|
||||||
/api/accounts AccountsJsonR GET
|
/api/accounts AccountsJsonR GET
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user