Commit Graph

597 Commits

Author SHA1 Message Date
Oliver Walters
fbf764e2ef Send search query text to template 2019-04-17 07:53:31 +10:00
Oliver Walters
a4467fee21 Remove bootstrap-editable
- Revert to using modal django forms
2019-04-16 07:53:30 +10:00
Oliver Walters
bad46f85f4 Edit / delete / add BOM items
- Remove x-editable inline editing
- Uses only bootstrap-table and modal forms
- Hide the 'part' field in the bom item edit
2019-04-16 01:41:01 +10:00
Oliver Walters
264f189917 Add function to wrap a value in an in-line editable field
- Requires bootstrap-editable
2019-04-15 00:11:14 +10:00
Oliver Walters
e6e03963c4 Simplified custom button text for modal forms
- Now only configured from the javascript end
- No server-side configuration of button text
2019-04-13 23:02:23 +10:00
Oliver
dcf74292b6 Changed tracking into to datetime field
- Added moment.js for formatting dates
-
2018-05-10 21:13:36 +10:00
Oliver
7b478fed4e Redirect if not authed
If user not logged in, redirect any requests to login page
2018-05-10 20:40:08 +10:00
Oliver
517569f510 Clicking on logo returns user to index page 2018-05-09 00:19:34 +10:00
Oliver
8000affeee Basic Index and Search endpoints
Index at /index/
Search at /search/
Search view accepts POST requests with search data
2018-05-08 23:44:51 +10:00
Oliver
c821d22b87 Skeleton for 'index' and 'search' pages 2018-05-08 23:26:32 +10:00
Oliver
552953a1f8 Added bootstrap font files
Also added 'search' button
2018-05-08 23:26:09 +10:00
Oliver
84efaba920 Add link to admin page
- Only if user is admin!
2018-05-08 23:14:07 +10:00
Oliver
3cf45f5ed3 Added Login and Logout buttons to NavBar 2018-05-08 23:09:52 +10:00
Oliver
47aa3c8a45 Login / Logout views
Information found here - https://simpleisbetterthancomplex.com/tutorial/2016/06/27/how-to-use-djangos-built-in-login-system.html
2018-05-08 23:00:27 +10:00
Oliver
c5155d5ac7 Move modal JS file
- Loaded by base.
2018-05-08 19:40:29 +10:00
Oliver
4f63d12837 Consolidated 'Part' app views
- Improved templating
- Part tree open/close status stored to session
2018-05-04 18:55:55 +10:00
Oliver
389908c67a Moved sidenav into block 2018-05-04 17:51:55 +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
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
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
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
Oliver
9cc0780367 Sidenav toggles 2018-04-29 20:30:34 +10:00
Oliver
8d0789c37c Implemented tree view
Using library bootstrap-treeview
- part category tree
- stock location tree
- Currenly is functional but looks terrible
2018-04-28 23:22:12 +10:00
Oliver
095492203f Simplified javascript templating
- Load js modules in block js_load
- Write $(document).ready script in block js_ready
- Write any other js in block_js
2018-04-28 12:45:12 +10:00
Oliver
2e7253ebc4 Tweak javascript for category detail pages 2018-04-28 11:43:26 +10:00
Oliver
c4e305bde6 Loaded both modals into single include 2018-04-27 21:35:36 +10:00
Oliver
784b0dec02 Added AjaxDeleteView
- AjaxDeleteView handles ajaxified delete GET and POST events
- Added modal deletion window
- Added launchDeleteForm jQuery function
2018-04-27 00:06:44 +10:00
Oliver
c0902626f4 footable working with BOM items
- Event delegation to capture 'edit' button
2018-04-26 23:05:35 +10:00
Oliver
b4ff8f79f0 Fixed position header + footer for modals
- Fun with CSS!
- Header title provided by AJAX data
- Footer static
- Submit button text can be customized via JSON dat
2018-04-26 22:38:48 +10:00
Oliver
8c9442193b Enable escape-key dismiss for modal 2018-04-26 18:27:28 +10:00
Oliver
280f2c36cb Modal form for part creation 2018-04-26 18:22:41 +10:00
Oliver
5f19b37c6e Added 'select2' to modal foms
- Drop down lists are now text filterable
- Yay for libraries
2018-04-26 17:37:23 +10:00
Oliver
d88da28871 Generic AjaxCreateView
- Allows for same form to be posted
2018-04-25 14:10:56 +10:00
Oliver
8bc4050d05 Modal form is working for 'create new category'
- Had to set form.helper.form_tag to False (so we could control form tags manually)
- Created a 'json' model view
2018-04-25 12:46:58 +10:00
Oliver
9004086632 Add button to launch modal form 2018-04-25 00:09:25 +10:00
Oliver
db49e98f37 Load bootstrap.min.js 2018-04-24 23:41:01 +10:00
Oliver
50fcf5363c Download bootstrap and jquery to static dir
- Allow to run offline
2018-04-24 22:50:56 +10:00
Oliver
f1a5b3c1ca Add AJAX filtering of company list
- Search across NAME and DESCRIPTION fields
- TODO - Implement pagination (how?)
2018-04-23 20:37:36 +10:00
Oliver
ee2f262e19 Company index / detail / edit pages working 2018-04-22 22:21:50 +10:00
Oliver
4bedf0ed4c Finally got migrations working together 2018-04-22 21:54:12 +10:00
Oliver
cef3c664f9 Moving 'supplier' to 'company' 2018-04-19 09:01:25 +10:00
Oliver
d00f9f74e4 Added details page for SupplierOrder 2018-04-18 01:13:42 +10:00
Oliver
7045443d7b Add tab view for supplier page
- "Parts" tab
- "Orders" tab
2018-04-18 00:42:44 +10:00
Oliver
34d240c6e8 Moved top-level templates to a top-level dir
It just seems fitting is all
2018-04-17 23:42:25 +10:00