mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-14 19:15:41 +00:00
Simplified custom button text for modal forms
- Now only configured from the javascript end - No server-side configuration of button text
This commit is contained in:
@ -135,7 +135,8 @@
|
||||
launchModalForm(
|
||||
"{% url 'stock-item-edit' item.id %}",
|
||||
{
|
||||
reload: true
|
||||
reload: true,
|
||||
submit_text: "Save",
|
||||
});
|
||||
});
|
||||
|
||||
@ -145,6 +146,7 @@
|
||||
"{% url 'stock-item-move' item.id %}",
|
||||
{
|
||||
reload: true,
|
||||
submit_text: "Move"
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -134,7 +134,6 @@ class StockItemMove(AjaxUpdateView):
|
||||
template_name = 'modal_form.html'
|
||||
context_object_name = 'item'
|
||||
ajax_form_title = 'Move Stock Item'
|
||||
ajax_submit_text = 'Move'
|
||||
form_class = MoveStockItemForm
|
||||
|
||||
def post(self, request, *args, **kwargs):
|
||||
|
Reference in New Issue
Block a user