web: fix journal edit form

This commit is contained in:
Simon Michael 2011-09-10 20:03:59 +00:00
parent 6142847dd2
commit 23200cdd87
2 changed files with 11 additions and 12 deletions

View File

@ -211,9 +211,8 @@ accountsReportAsHtml _ vd@VD{..} (items',total) =
 
<a href=@{JournalEntriesR} title="Show journal entries">entries</a>
&nbsp;
<a href=@{JournalEditR} title="Edit the journal">edit
&nbsp;
(<a#editformlink href onclick="return editformToggle(event)" title="Edit the journal">edit</a>)
<a#editformlink href="#" onclick="return editformToggle(event)" title="Edit the journal">
edit
<tr
<td colspan=3
@ -439,15 +438,15 @@ mixedAmountAsHtml b = preEscapedString $ addclass $ intercalate "<br>" $ lines $
postJournalR :: Handler RepPlain
postJournalR = handlePost
postJournalEntriesR :: Handler RepPlain
postJournalEntriesR = handlePost
postJournalEditR :: Handler RepPlain
postJournalEditR = handlePost
postRegisterR :: Handler RepPlain
postRegisterR = handlePost
postJournalOnlyR :: Handler RepPlain
postJournalOnlyR = handlePost
postRegisterOnlyR :: Handler RepPlain
postRegisterOnlyR = handlePost
-- | Handle a post from any of the edit forms.
handlePost :: Handler RepPlain
handlePost = do

View File

@ -3,8 +3,8 @@
/robots.txt RobotsR GET
/ RootR GET
/journal JournalR GET POST
/journal/entries JournalEntriesR GET
/journal/edit JournalEditR GET
/register RegisterR GET
/journal/entries JournalEntriesR GET POST
/journal/edit JournalEditR GET POST
/register RegisterR GET POST
/accounts AccountsR GET
/api/accounts AccountsJsonR GET