Commit Graph

11096 Commits

Author SHA1 Message Date
Oliver
a1eeeab64c Build table now bootstrap-table'd 2018-05-04 01:39:20 +10:00
Oliver
3511ce29ee Added StockLocation API 2018-05-04 01:33:21 +10:00
Oliver
395bf23d6c Cleanup / formatting 2018-05-04 01:33:13 +10:00
Oliver
347a324589 Fix 2018-05-04 01:04:12 +10:00
Oliver
9ad20e85e3 Improve CSS for modal forms 2018-05-04 00:56:29 +10:00
Oliver
52cc7360b3 More betterer buttons for stock locationdetail 2018-05-04 00:48:36 +10:00
Oliver
1c5972e326 Cleaned up action buttons for StockLocation
- Merged edit/create/delete into a single drop-down button
2018-05-04 00:32:06 +10:00
Oliver
99fb466a6c Placeholder for ajax form 'complete' callback 2018-05-04 00:02:52 +10:00
Oliver
17e6147c47 Click on company image to edit it 2018-05-03 23:57:00 +10:00
Oliver
e9be3e9e06 Install django-cleanup
- Automatically removes orphaned ImageFIeld and FileField files
2018-05-03 23:56:39 +10:00
Oliver
bc716e25f7 Fixed bugs in Inventree/views.py
- Need to pass request.FILES to the form! (duh!) 
 - Prevent form data from being saved twice
2018-05-03 23:40:27 +10:00
Oliver
68cf6919a7 Updated part views
- Allocation table now uses bootstrap-table
- Added checkbox column to supplier table (no function yet)
2018-05-03 23:39:08 +10:00
Oliver
de176ecac9 Updated modal form code
- Modal form template now uses multipart-data (to allow file uploads)
- Cleaned modal_form.js code (split into separate functions)
2018-05-03 23:38:32 +10:00
Oliver
9311164825 Using jquery-forms plugin
- Allows AJAX file uploads
- Works!
- Provides upload progress (not yet tested)
2018-05-03 23:37:19 +10:00
Oliver
ffdcfdf51f Merge branch 'bootstrap-table' 2018-05-03 00:47:18 +10:00
Oliver
f995f54390 More API / JSON stuff
- SupplierPart JSON API
- Part supplier list
- Company part list
2018-05-03 00:47:03 +10:00
Oliver
49287c0c61 Part 'used-in' view now uses API
- Ajax calls to JSON API
- BootstrapTable
2018-05-03 00:25:01 +10:00
Oliver
0f3150c705 Part stock table now uses API / BootstrapTable 2018-05-02 23:54:28 +10:00
Oliver
1d63147380 Reload BOM table without refreshing enitre page 2018-05-02 23:46:08 +10:00
Oliver
7d21c4ef1c BOM now uses DRF / ajax 2018-05-02 23:42:57 +10:00
Oliver
be0797c6e6 Bootstrap table to company list 2018-05-02 23:17:24 +10:00
Oliver
1899d8f3e9 Stock location part list now uses bootstrap table
- Serializers within serializers!
2018-05-02 23:08:45 +10:00
Oliver
211edb23bb Removed footable
- Now using bootstrap-table
2018-05-02 22:22:43 +10:00
Oliver
024fe04e0e Implemented bootstrap-table for parts list 2018-05-02 22:18:58 +10:00
Oliver
fb9142c3fd Add static bootstrap-table files 2018-05-02 22:08:10 +10:00
Oliver
45510b1adc Add category info to part serializer 2018-05-02 20:57:04 +10:00
Oliver
89a1fc59bb Merge remote-tracking branch 'origin/master' 2018-05-02 18:09:05 +10:00
8cfbf2657e Removed unused maths tag 2018-05-01 10:03:20 +10:00
Oliver
f337291db8 Stock tables now searchable 2018-05-01 09:04:52 +10:00
Oliver
7c3b1f9bb4 Function to test if enough parts for a build 2018-05-01 09:00:09 +10:00
Oliver
dad594dc7a Tweaked build detail page 2018-05-01 08:55:51 +10:00
Oliver
a2ff1d16f3 Introspection of build allocation
Yay for dicts
2018-04-30 22:45:11 +10:00
Oliver
b24ddac0b8 Part stuff 2018-04-30 22:30:15 +10:00
Oliver
4a2b6a5674 Formatting fixes 2018-04-30 21:56:46 +10:00
Oliver
b2bb1ea1fe Pressing enter on a modal form now does the right thing 2018-04-30 21:56:36 +10:00
Oliver
37b109b8fc First pass of automated tracking data
- When stock item is moved
- When stocktake is performed
- Yes it is  bad - needs improvement!
2018-04-30 21:36:50 +10:00
Oliver
f9138f4997 Item stocktake form 2018-04-30 21:03:25 +10:00
Oliver
feff4f0ddd Add 'Contact' model to Company app 2018-04-30 17:20:01 +10:00
Oliver
f988c9af87 Tweaks for part page(s) 2018-04-30 01:16:57 +10:00
Oliver
d68b51e007 Add ability to move a stock item 2018-04-30 01:00:18 +10:00
Oliver
bee760d184 Deleted extraneous form code 2018-04-30 00:59:36 +10:00
Oliver
39530831d8 CSS fixes for .notification-area and .alert
Missed from previous commit
2018-04-30 00:30:04 +10:00
Oliver
5c902397e3 CSS fixes for .notificaiton-area and .alert 2018-04-30 00:29:39 +10:00
Oliver
5185173639 Updates for build app
- Added 'allocate' page (empty thus far)
- Added 'cancel' button and view
2018-04-30 00:23:44 +10:00
Oliver
a9c20f5d95 Added modal form success messages
- More to be done, just a start
- Create / edit / delete
2018-04-30 00:23:02 +10:00
Oliver
a2c1eda5c0 Added a form that only contains csrf tags
- e.g. blank form only required to validate POST data
2018-04-30 00:21:13 +10:00
Oliver
2d35116c79 Updated AjaxView
- Aded "AjaxMixin"
- Base mixin does NOT require a form (allowing more generic json views)
- Add in any other context data with get_data() function
2018-04-30 00:20:33 +10:00
Oliver
a6fdda1c1a Improved modal forms
- JSON POST response can include feedback messages
- Either displayed immediately or after page is reloaded
2018-04-30 00:01:20 +10:00
Oliver
e62bf92bd6 Notifications work through page-reload / page-redirect
- Uses session storage
2018-04-29 23:47:16 +10:00
Oliver
b6665ec2a7 Added dismissable notifications
- Bootstrap alert
- Can close manually
- Also set to disappear after configurable time
2018-04-29 23:29:38 +10:00