Oliver Walters
|
3b838d29ec
|
Small fixes
- Hide some tabs that aren't functional yet
- Hide fields instead of marking them as disabled
- Default behaviour is to allow all hosts
|
2019-04-29 18:35:16 +10:00 |
|
Oliver Walters
|
05333e7e7d
|
PEP fixes
|
2019-04-28 23:58:14 +10:00 |
|
Oliver Walters
|
87411293cf
|
docstring improvements
|
2019-04-28 23:57:29 +10:00 |
|
Oliver Walters
|
bc12af5994
|
Remove the 'supplier_part' field when first creating a Part object
- As the Part does not yet exist, there are no matching SupplierPart objects
|
2019-04-28 23:55:21 +10:00 |
|
Oliver Walters
|
4e3702384b
|
Limit SupplierPart option in Part edit form
- Only allow selection of SupplierPart that match the Part being edited
|
2019-04-28 23:50:35 +10:00 |
|
Oliver Walters
|
1171953e65
|
Limit SupplierPart options in CreateBomItem form
- If Part is selected, limit the options in supplier_part field
- Only allow supplier_parts which map back to the same part
|
2019-04-28 11:24:26 +10:00 |
|
Oliver Walters
|
a9fbbc3a37
|
Remove references to get_object_or_404
- Properly handle DoesNotExist errors
|
2019-04-28 11:09:19 +10:00 |
|
Oliver Walters
|
624c5094c5
|
Prevent editing of SupplierPart fields if initial values are provided
|
2019-04-28 10:57:32 +10:00 |
|
Oliver Walters
|
cd438f0569
|
Add generic method for retriving GET or POST params
|
2019-04-28 09:53:42 +10:00 |
|
Oliver Walters
|
e5fc43a00f
|
Fix improper references to template_name for ajax forms
- Should be ajax_template_name
|
2019-04-28 09:00:54 +10:00 |
|
Oliver Walters
|
ed3ae30248
|
Documentation for Part app
|
2019-04-27 22:18:07 +10:00 |
|
Oliver Walters
|
456164f1d9
|
PEP fixes
|
2019-04-18 23:47:04 +10:00 |
|
Oliver Walters
|
8040ad8a6a
|
Add function to duplicate stock item
|
2019-04-18 23:28:46 +10:00 |
|
Oliver Walters
|
05beb26c82
|
Change form title if part is being copied
|
2019-04-18 23:22:58 +10:00 |
|
Oliver Walters
|
deaaa48b7d
|
Add ability to 'copy' a part
- Launch a PartCreate form
- initialize form data with the existing part (if it exists!)
- use model_to_dict to pass data around
|
2019-04-18 23:12:29 +10:00 |
|
Oliver Walters
|
19a11eac1a
|
PEP fixes
|
2019-04-17 07:49:46 +10:00 |
|
Oliver Walters
|
a3b544e2a4
|
typo fix
|
2019-04-17 00:21:11 +10:00 |
|
Oliver Walters
|
01bdf2f19b
|
PEP fixes
|
2019-04-16 22:32:43 +10:00 |
|
Oliver Walters
|
7eea9d1a20
|
Launch a modal to select BOM download format
- This will have to change! A client-side hack for now..
- Work out a better way to do this!
|
2019-04-16 21:46:12 +10:00 |
|
Oliver Walters
|
be60fbcc25
|
More cleanup for modal forms
- Require 'ajax_template_name' to be set or weird things happen!
|
2019-04-16 21:25:20 +10:00 |
|
Oliver Walters
|
ca96c8e22b
|
Better query param parsing
|
2019-04-15 23:30:17 +10:00 |
|
Oliver Walters
|
7e78f0aa67
|
Changed query param from '1' to 'True'
|
2019-04-15 22:36:50 +10:00 |
|
Oliver Walters
|
b522ca5b29
|
Don't render editable items when ont in editing mode
|
2019-04-15 18:41:48 +10:00 |
|
Oliver Walters
|
ec98f7829e
|
Add context flag to enable editing mode
- pass ?edit=1 to the BOM
- Display page differently if in editing mode
-
|
2019-04-15 18:32:15 +10:00 |
|
Oliver Walters
|
9e5eed5d5e
|
Move the export_bom function to the part model
|
2019-04-14 12:34:14 +10:00 |
|
Oliver Walters
|
b8e28c003d
|
Provide download link to export BOM file
- Helper function for generating temporary file (in memory) for exporting
|
2019-04-14 12:34:14 +10:00 |
|
Oliver Walters
|
b58c49e066
|
Create BOM export form
- Select output format
|
2019-04-14 12:34:13 +10:00 |
|
Oliver Walters
|
14de111130
|
Allow better passthrough of context variables for non-form views
|
2019-04-14 12:34:13 +10:00 |
|
Oliver Walters
|
0cc59540ef
|
Generate modal form to export BOM
- Doesn't do anything yet
- Extends AjaxView
|
2019-04-14 12:34:13 +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
|
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
|
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
|
aca0d236ee
|
Javascript consolidation
|
2018-04-29 12:25:07 +10:00 |
|
Oliver
|
7ebb723d15
|
Revert "Set initial value fields to disabled for some forms"
This reverts commit c1271367bd047c4e8ea5f80297a8a204bdb7eff6.
|
2018-04-28 12:19:50 +10:00 |
|
Oliver
|
c1271367bd
|
Set initial value fields to disabled for some forms
- Prevent user from changing certain fields
- Only when a form is launched from a particular view
|
2018-04-28 12:14:18 +10:00 |
|
Oliver
|
bc597d7c21
|
Style fixes
|
2018-04-28 01:16:47 +10:00 |
|
Oliver
|
e1e3cc71e6
|
More modal forms
- supplier-part-edit
- supplier-part-delete
|
2018-04-27 21:32:48 +10:00 |
|
Oliver
|
bc3dca3aba
|
Modal for edit and delete part category
|
2018-04-27 20:42:12 +10:00 |
|
Oliver
|
5162c1d11f
|
Inline deletion for BOM items
|
2018-04-27 00:54:01 +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
|
9fd275ed3e
|
Part Edit view now ajaxified
|
2018-04-26 23:28:27 +10:00 |
|
Oliver
|
280f2c36cb
|
Modal form for part creation
|
2018-04-26 18:22:41 +10:00 |
|
Oliver
|
e395d89a7f
|
Fix issues for AjaxUdpateView
- Works properly now!
- Can edit BOM item inline
- Can add BOM item inline too
|
2018-04-26 09:26:43 +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
|
25fcd3e9f1
|
Simple search filtering for part list
- Needs to be 'generecised'
- Working well for now
|
2018-04-24 09:06:30 +10:00 |
|
Oliver
|
ac3de4ce3d
|
Add part detail page for company / supplier
|
2018-04-22 23:07:23 +10:00 |
|
Oliver
|
4bedf0ed4c
|
Finally got migrations working together
|
2018-04-22 21:54:12 +10:00 |
|
Oliver
|
fa23767150
|
Added skeleton for 'build' app
|
2018-04-17 00:32:02 +10:00 |
|