Commit Graph

6094 Commits

Author SHA1 Message Date
Oliver
2f1dea1123 Modals can now be created programatically
- INFINITE MODALS
- API forms now create a new modal as required
2021-07-02 10:52:56 +10:00
Oliver
74d2334f36 Merge remote-tracking branch 'inventree/master' into drf-api-forms 2021-07-01 22:08:10 +10:00
Oliver
a771d7732b Icon tweak 2021-07-01 21:58:05 +10:00
Oliver
e0f8310ca8 Adds the ability to "clear" a non-required field with an obvious button 2021-07-01 21:57:07 +10:00
Oliver
225162ab8e Add ability to delete multiple selected manufacturer part parameters 2021-07-01 17:20:06 +10:00
Oliver
8a29a3de0f PEP fixes 2021-07-01 17:01:52 +10:00
Oliver
9bd71c1184 Refactor deletion of multiple manufacturer part objects
- issues multiple DELETE requests via the API
2021-07-01 17:01:30 +10:00
Oliver
206d7bd96a Refactor edit and delete forms for ManufacturerPart 2021-07-01 16:28:46 +10:00
Oliver
96a2629fd2 Remove old URL endpoints 2021-07-01 16:07:42 +10:00
Oliver
870542e4c1 Refactor forms for ManufacturerPartParameter 2021-07-01 16:05:23 +10:00
Oliver
bfc5a7dcf8 Refactor forms for PartTestTemplate model:
- Remove old forms
- Remove old views
- Add detail endpoint for the API
2021-07-01 14:44:23 +10:00
Oliver
9d1c1b98df PEP fix 2021-07-01 14:33:16 +10:00
Oliver
bb0a72f235 Refactor forms for StockItemTestResult
- Add DETAIL endpoint for model
- Remove old views
- Remove old forms
2021-07-01 14:31:37 +10:00
Oliver
59b794f0e5 Cleanup old forms 2021-07-01 14:25:14 +10:00
Oliver
54731746d8 Render simple choice fields with select2 2021-06-30 23:18:50 +10:00
Oliver
770cd9a12d Fix for LocationSerializer 2021-06-30 22:10:15 +10:00
Oliver
30ac5dba55 Display attachment upload date 2021-06-30 17:44:23 +10:00
Oliver
9b4db43232 Refactoring "attachment" tables to use the API
- Part attachments
- StockItem attachments
- PurchaseOrder attachments
- SalesOrder attachments
- BuildOrder attachments
2021-06-30 17:40:44 +10:00
Oliver
682b2b4b2f Support rendering / updating of date inputs 2021-06-30 17:04:21 +10:00
Oliver
a92fc7cf2c PEP fixes 2021-06-30 14:15:18 +10:00
Oliver
2b394174bc Refactor update and delete forms for SupplierPriceBreak 2021-06-30 14:14:31 +10:00
Oliver
09fff5b644 Refactor PriceBreakCreate form
- Handle non_field_errors
2021-06-30 14:07:15 +10:00
Oliver
8f47035a7b Refactor delete view for PartAttachment and StockItemAttachment 2021-06-30 12:58:41 +10:00
Oliver
4e23dbd0af Refactor delete views for SalesOrderAttachment and PurchaseOrderAttachment 2021-06-30 12:54:38 +10:00
Oliver
4d8e88c779 BuildAttachmentDelete form 2021-06-30 12:48:14 +10:00
Oliver
653e3cd135 Starting work on a DELETE form 2021-06-30 12:03:32 +10:00
Oliver
537c15081b Fix for PK lookup in API test 2021-06-30 11:12:16 +10:00
Oliver
9ea3e511b9 Refactor BuildAttachment views 2021-06-30 11:05:35 +10:00
Oliver
a7d60cf5ad Exposes BuildOrderAttachment objects to the REST API 2021-06-30 10:49:33 +10:00
Oliver
f67779c816 Unit test fixes 2021-06-30 10:37:38 +10:00
Oliver
712c9598d1 Refactor SalesOrderAttachment forms 2021-06-30 10:09:05 +10:00
Oliver
60d599b476 Refactor PurchaseOrderAttachment views 2021-06-30 10:03:54 +10:00
Oliver
b946aedb5c Replace PartAttachmentEdit view 2021-06-30 09:49:30 +10:00
Oliver
238dccc071 Replace PartAttachmentCreate form 2021-06-30 09:45:36 +10:00
Oliver
8c439e52fd PEP fix 2021-06-30 09:41:13 +10:00
Oliver
54c9bd25a5 Add detail endpoint for StockItemAttachment 2021-06-30 09:40:54 +10:00
Oliver
87235b7e6f Replace StockItemAttachmentCreate form
- Also replace drag-and-drop
- Add 'hidden' option for form fields
- Adds renderer for StockItem model
2021-06-30 09:17:28 +10:00
Oliver
7d53bcb27c Convert StockItemEditStatus to use API forms 2021-06-30 08:52:53 +10:00
Oliver
43f26f2c65 Allow custom labels 2021-06-30 01:07:57 +10:00
Oliver
1f75530910 Specify custom help text for fields on the client side 2021-06-30 01:07:36 +10:00
Oliver
621f47e46c Replace "edit part category" form 2021-06-30 01:04:39 +10:00
Oliver
c425f36a35 Remove dead class 2021-06-30 00:24:27 +10:00
Oliver
26eafe242c Replace PartImageUpload form 2021-06-30 00:18:25 +10:00
Oliver
293b5d4c07 Allow file and image fields
- Use FormData class
- Replace existing Company image upload form
2021-06-30 00:13:53 +10:00
Oliver
33ec91acc7 Add "default" from serializer field (if present)
- Overrides model default
- Set choices for currency serializer field
- Adds some unit testing
2021-06-29 23:14:39 +10:00
Oliver
8b3a497554 Remove unused Form 2021-06-29 23:05:37 +10:00
Oliver
6156fffd1d Remove broken URLs 2021-06-29 21:25:20 +10:00
Oliver
8ee12abb50
Merge pull request #1734 from matmair/hide-related
option to hide related parts
2021-06-29 21:24:21 +10:00
Oliver
170ed37d03 Delete CompanyCreate AJAX view 2021-06-29 21:20:53 +10:00
Oliver
c25967eff6 Replace CompanyCreate and CompanyEdit forms with AJAX form
- Adds the ability to specify an "icon" for each field
2021-06-29 21:17:48 +10:00