Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Improve displaying fulfillment quantity
Anna Siwik628ea65d9e7d
diff --git a/saleor/static/dashboard/scss/components/_data-table.scss b/saleor/static/dashboard/scss/components/_data-table.scssindex 1b6aa885a5..53dd870693 100644--- a/saleor/static/dashboard/scss/components/_data-table.scss+++ b/saleor/static/dashboard/scss/components/_data-table.scss@@ -190,6 +190,15 @@vertical-align: bottom;}}++ .fulfillment-quantity {+ display: flex;+ align-items: center;++ input {+ width: 64px;+ }+ }}th {diff --git a/templates/dashboard/order/fulfillment.html b/templates/dashboard/order/fulfillment.htmlindex f99e3ea7ec..11da61e4c8 100644--- a/templates/dashboard/order/fulfillment.html+++ b/templates/dashboard/order/fulfillment.html@@ -91,21 +91,23 @@</td><td class="right-align">{% get_formset_form formset forloop.counter0 as line_form %}- <input id="{{ line_form.order_line.auto_id }}"- type="hidden"- name="{{ line_form.order_line.html_name }}"- required="{{ line_form.order_line.field.required }}"- value="{{ line_form.order_line.value }}">- <input id="{{ line_form.quantity.auto_id }}"- max="{{ line.quantity_unfulfilled }}"- min="0"- name="{{ line_form.quantity.html_name }}"- required="{{ line_form.quantity.field.required }}"- type="number"- value="{{ line_form.quantity.value }}">- {% blocktrans trimmed with quantity_unfulfilled=line.quantity_unfulfilled context "Fulfill order table quantity unfulfilled" %}- of {{ quantity_unfulfilled }}- {% endblocktrans %}+ <div class="fulfillment-quantity">+ <input id="{{ line_form.order_line.auto_id }}"+ type="hidden"+ name="{{ line_form.order_line.html_name }}"+ required="{{ line_form.order_line.field.required }}"+ value="{{ line_form.order_line.value }}">+ <input id="{{ line_form.quantity.auto_id }}"+ max="{{ line.quantity_unfulfilled }}"+ min="0"+ name="{{ line_form.quantity.html_name }}"+ required="{{ line_form.quantity.field.required }}"+ type="number"+ value="{{ line_form.quantity.value }}">+ {% blocktrans trimmed with quantity_unfulfilled=line.quantity_unfulfilled context "Fulfill order table quantity unfulfilled" %}+ of {{ quantity_unfulfilled }}+ {% endblocktrans %}+ </div><label for="{{ line_form.quantity.auto_id }}">{% for error in line_form.quantity.errors %}<p class="help-block materialize-red-text">{{ error }}</p>