Commit Graph

43 Commits

Author SHA1 Message Date
Simon Michael
473082f782 imp: web: add form: highlight today in date picker 2022-08-27 12:12:14 +01:00
Simon Michael
2f00211554 fix: web: add form: pre-fill date again; focus description 2022-08-26 11:58:16 +01:00
charukiewicz
00ffd3ec13 web: fix a bug with keypress listener on the final amount input in AddForm not getting initialized correctly 2021-05-03 07:17:09 -10:00
Arnout Engelen
fe6e9a79fe Allow selecting the date range from the chart
By dragging a region with the mouse
2021-02-17 09:05:13 -08:00
Simon Michael
23a79af16c web: add form: always start with four rows when opened
And set the last amount's key handler more robustly.
2020-04-06 18:33:58 -07:00
Simon Michael
ca4fc4a421 web: add form: drop unneeded C-minus/C-plus keys & related help text 2020-04-06 18:18:01 -07:00
Simon Michael
ef5db595f9 web: fix a 2016 regression adding too many add form rows (#422, #1059)
And try to clarify a bit. 67af073c was the relevant commit.
2020-04-06 17:41:54 -07:00
Timofey ZAKREVSKIY
6b5026c240 Weeks in date picker start from Mondays (fix for #1109) 2019-11-04 11:35:45 -08:00
Jakub Zárybnický
930b38a345 web: Simplify HTML and CSS 2018-06-24 14:13:04 +02:00
Jakub Zárybnický
df425802d4 web: Add 'hide empty accounts' option (bound to 'e' key) 2018-06-24 14:13:04 +02:00
Jakub Zárybnický
5f6da96baa web: UI cleanup 2018-06-24 14:13:04 +02:00
Jakub Zárybnický
cc1241fa20 web: Add yesod-form-generated AddForm, add GET & POST /add 2018-06-24 14:13:04 +02:00
Eli Flanagan
e922a4aac5 fix datepicker not closing, linting
Added defacto JavaScript linting with eslint. I also included an editor
config file to aid common style. (http://editorconfig.org/#example-file)
2017-12-30 13:44:40 -05:00
Eli Flanagan
d12d7e2228 use bootstrap-datepicker
This also validates transaction date and description upon form submission. As noted in
the issue, this removes hledger-web's "smart date" functionality. This
functionality can be restored giving the demand but should be tracked in
another issue.
Previous iterations used input[type=date], but it isn't easily
crossbrowser and the polyfill I found had some quirks.
2017-12-29 13:01:26 -08:00
Dominik Süß
9dab7c4148 Title now moves with sidebar 2016-10-26 10:05:50 -07:00
Dominik Süß
5d677fc174 Persistent sidebar state 2016-10-26 10:05:50 -07:00
Dominik Süß
e9feee098b Responsive sidebar 2016-10-26 10:05:50 -07:00
Dominik Süß
ab2ebbbcad Sidebar now works again 2016-10-26 10:05:50 -07:00
Dominik Süß
b29efba09d Improved add-modal 2016-10-26 10:05:50 -07:00
Simon Michael
7b1b1f5f8d web: focus field after clicking add txn (fixes #338) 2016-04-28 20:53:08 -07:00
Simon Michael
3739f0e364 web: leave date field blank, avoid problems (#322) 2016-04-28 18:27:00 -07:00
Thomas R. Koll
71f4dc53b1 web: in registerCharClick set the window.location.hash and listen to that event to highlight the new row 2015-12-18 10:14:09 +01:00
Thomas R. Koll
b6c3ba1caf web: highlight whatever is in the url hash, i.e. transactions 2015-12-18 09:21:14 +01:00
Thomas R. Koll
8a725e7e61 web: cleanup commented code 2015-12-18 08:57:19 +01:00
Thomas R. Koll
5fbdae005b web: use transaction indexes instead of the date for html tag ids #308 2015-12-18 08:35:37 +01:00
Simon Michael
a06e612095 Merge pull request #263 from kmels/pr-251-fix-broken-shortcut
hledger-web: Fixes keyboard shortcut for adding a transaction.
2015-07-28 14:16:34 -07:00
Simon Michael
d156173647 web: make j keybinding respect --base-url (fixes #271) 2015-06-25 07:33:55 -07:00
Carlos Lopez-Camey
d14941ab4d hledger-web: Fixes keyboard shortcut for adding a transaction. 'addformShow' and 'addformReset' were broken. 2015-05-25 20:44:50 -06:00
Carlos Lopez-Camey
2d1f33cb06 Set default javascript parameter values in the functions addformReset, addFormShow 2015-05-02 15:42:08 -06:00
Simon Michael
abe47e81c2 web: keep the add button right-aligned on ctrl - 2015-02-23 23:26:49 +00:00
Simon Michael
e76cc6ee47 web: stay in add form when there are errors 2015-02-23 23:22:02 +00:00
Simon Michael
cf6da3af5d web: tweak some keys 2014-07-21 18:16:46 -07:00
Simon Michael
059c8dfc97 web: also handle keys when journal select focussed 2014-07-21 08:54:37 -07:00
Simon Michael
43eee83c33 web: fix js error on journal select field 2014-07-21 08:54:17 -07:00
Simon Michael
f2d9c6e9c1 web: more register chart improvements
- show a background color for future and less-than-zero regions
- show points for transactions, not all line corners
- hovering over point shows balance, date, posted amount and transaction
- clicking a point scrolls towards that date
2014-07-18 16:45:46 -07:00
Simon Michael
470835adc2 web: show points and zero/today lines on chart 2014-07-18 07:55:23 -07:00
Simon Michael
b0d74b1466 web: support more than 2 postings in the add form
- ctrl plus/ctrl minus adds/removes posting fields
- clicking the more link or pressing tab in the last field also works
- the focus is adjusted sensibly
- the add form is reset if closed and reopened, except the number of postings
- keyboard shortcuts should be less dependent on focus now
- tested in recent firefox, chrome, safari
- things should be robust with typeahead, with one notable exception:
  typeahead is not enabled in the new account fields when you add
  postings. I tried hard, help welcome.
2014-07-14 14:30:30 -07:00
Simon Michael
009df13baf web: make the add form a modal dialog
The add form has become a modal dialog, and been moved into the default
template. This simplifies some things, for now. Eg it's easily
accessible from any page.
2014-07-09 00:04:50 -07:00
Simon Michael
ed3fd58fb9 web: rename help modal 2014-07-09 00:00:23 -07:00
Simon Michael
ec51d28839 web: a bunch of ui cleanup & improvement
- the web UI has been streamlined; edit form, raw & entries views dropped
- we now remember whether sidebar is open or closed
- better help dialog
- keyboard shortcuts are now available
- better add form
- more bootstrap styling
- static file cleanups
- report filtering fixes
- upgrade jquery to 2.1.1, bootstrap to 3.1.1, drop select2, add typeahead, cookie, hotkeys
- clarify debug helpers a little
- refactoring
2014-06-13 00:19:00 +01:00
Simon Michael
3ee0b5f29b web: fix account "only" hover links 2014-05-23 08:39:22 -07:00
Simon Michael
3f3a526e8a web: move sidebar links out of balanceReportAsHtml 2014-05-22 20:36:49 -07:00
Simon Michael
4c52dd5b76 web: production build now has all web content embedded, dev build uses ./static (#63) 2011-09-12 23:30:29 +00:00