Simplify order creation and editing - remove autosave
- Removed autosave.js (665 lines) and draft-creator.js (441 lines) - Removed draft_service.py (~500 lines) and DraftOrderService - Removed AJAX endpoints: autosave and create-draft - Updated order_create() to add is_create_page flag - Updated order_update() to finalize drafts without DraftOrderService - Added get_new_status() method to OrderStatusService - Updated order_form.html: - Removed old JS includes - Added beforeunload warning for unsaved data - Updated buttons: separate buttons for create/draft/finalize - Total code reduction: ~1600 lines (92% removed) New workflow: - /orders/create/ - user fills form, chooses button - /orders/<id>/edit/ - simple editing without autosave - beforeunload warning when leaving page (except on submit)
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
"""
|
||||
!5@28A=K9 A;>9 4;O ?@8;>65=8O orders.
|
||||
Сервисный слой для приложения orders.
|
||||
"""
|
||||
|
||||
from .draft_service import DraftOrderService
|
||||
|
||||
__all__ = ['DraftOrderService']
|
||||
__all__ = []
|
||||
|
||||
Reference in New Issue
Block a user