Merge pull request #3030 from mervekaraman/master
Error message pushing Quantity input
This commit is contained in:
		| @@ -20,9 +20,9 @@ | |||||||
|                     <tr> |                     <tr> | ||||||
|                         @stack('move_td_start') |                         @stack('move_td_start') | ||||||
|  |  | ||||||
|                         <td class="align-middle border-b-0 flex items-center justify-center" style="width:24px; height:100px; color: #8898aa;"> |                         <td class="align-top" style="width:24px; height:100px; color: #8898aa;"> | ||||||
|                             <div class="handle mt-2 hidden lg:block cursor-move"> |                             <div class="handle mt-2 hidden lg:block cursor-move"> | ||||||
|                                 <span class="w-6 material-icons">list</span> |                                 <span class="w-6 material-icons mt-0.5">list</span> | ||||||
|                             </div> |                             </div> | ||||||
|                         </td> |                         </td> | ||||||
|  |  | ||||||
| @@ -33,7 +33,7 @@ | |||||||
|                         @if (! $hideItems || (! $hideItemName && ! $hideItemDescription)) |                         @if (! $hideItems || (! $hideItemName && ! $hideItemDescription)) | ||||||
|                             @stack('name_td_start') |                             @stack('name_td_start') | ||||||
|  |  | ||||||
|                             <td class="px-3 py-3 ltr:pl-2 rtl:pr-2 ltr:text-left rtl:text-right align-middle border-b-0 name"> |                             <td class="px-3 py-3 ltr:pl-2 rtl:pr-2 ltr:text-left rtl:text-right align-top border-b-0 name"> | ||||||
|                                 @if (! $hideItemName) |                                 @if (! $hideItemName) | ||||||
|                                     <span class="flex items-center text-sm" tabindex="0" v-if="row.item_id"> |                                     <span class="flex items-center text-sm" tabindex="0" v-if="row.item_id"> | ||||||
|                                         <div v-html="row.name"></div> |                                         <div v-html="row.name"></div> | ||||||
| @@ -45,7 +45,7 @@ | |||||||
|                                         <input |                                         <input | ||||||
|                                             type="text" |                                             type="text" | ||||||
|                                             :ref="'items-' + index + '-name'" |                                             :ref="'items-' + index + '-name'" | ||||||
|                                             class="w-full text-sm px-3 py-2.5 mt-0 rounded-lg border border-light-gray text-black placeholder-light-gray bg-white disabled:bg-gray-200 focus:outline-none focus:ring-transparent focus:border-purple mt-0" |                                             class="w-full text-sm px-3 py-2.5 rounded-lg border border-light-gray text-black placeholder-light-gray bg-white disabled:bg-gray-200 focus:outline-none focus:ring-transparent focus:border-purple mt-0" | ||||||
|                                             :name="'items.' + index + '.name'" |                                             :name="'items.' + index + '.name'" | ||||||
|                                             autocomplete="off" |                                             autocomplete="off" | ||||||
|                                             required="required" |                                             required="required" | ||||||
| @@ -55,7 +55,7 @@ | |||||||
|                                             @change="form.errors.clear('items.' + index + '.name')" |                                             @change="form.errors.clear('items.' + index + '.name')" | ||||||
|                                         /> |                                         /> | ||||||
|  |  | ||||||
|                                         <div class="text-red text-sm mt-1 block" |                                         <div class="text-red text-sm mt-1 mb-3 block" | ||||||
|                                             v-if="form.errors.has('items.' + index + '.name')" |                                             v-if="form.errors.has('items.' + index + '.name')" | ||||||
|                                             v-html="form.errors.get('items.' + index + '.name')" |                                             v-html="form.errors.get('items.' + index + '.name')" | ||||||
|                                         ></div> |                                         ></div> | ||||||
| @@ -69,10 +69,10 @@ | |||||||
|  |  | ||||||
|                             @stack('description_td_start') |                             @stack('description_td_start') | ||||||
|  |  | ||||||
|                             <td class="px-3 py-3 border-b-0 description"> |                             <td class="px-3 py-3 border-b-0 align-top description"> | ||||||
|                                 @if (! $hideItemDescription) |                                 @if (! $hideItemDescription) | ||||||
|                                     <textarea |                                     <textarea | ||||||
|                                         class="w-full text-sm px-3 py-2.5 mt-1.5 rounded-lg border border-light-gray text-black placeholder-light-gray bg-white disabled:bg-gray-200 focus:outline-none focus:ring-transparent focus:border-purple" |                                         class="w-full text-sm px-3 py-2.5 rounded-lg border border-light-gray text-black placeholder-light-gray bg-white disabled:bg-gray-200 focus:outline-none focus:ring-transparent focus:border-purple" | ||||||
|                                         style="height:42px;" |                                         style="height:42px;" | ||||||
|                                         :ref="'items-' + index + '-description'" |                                         :ref="'items-' + index + '-description'" | ||||||
|                                         placeholder="{{ trans('items.enter_item_description') }}" |                                         placeholder="{{ trans('items.enter_item_description') }}" | ||||||
| @@ -92,7 +92,7 @@ | |||||||
|  |  | ||||||
|                         @stack('quantity_td_start') |                         @stack('quantity_td_start') | ||||||
|  |  | ||||||
|                         <td class="px-3 py-3 border-b-0 quantity"> |                         <td class="px-3 py-3 border-b-0 align-top quantity"> | ||||||
|                             @if (! $hideItemQuantity) |                             @if (! $hideItemQuantity) | ||||||
|                                 <div> |                                 <div> | ||||||
|                                     @stack('quantity_input_start') |                                     @stack('quantity_input_start') | ||||||
| @@ -111,8 +111,8 @@ | |||||||
|                                         @change="form.errors.clear('items.' + index + '.quantity')" |                                         @change="form.errors.clear('items.' + index + '.quantity')" | ||||||
|                                     /> |                                     /> | ||||||
|  |  | ||||||
|                                     <div class="text-red text-sm mt-1 block" |                                     <div class="text-red text-sm mt-1 mb-3 block" | ||||||
|                                         v-if="form.errors.has('items.' + index + '.quantity')" |                                         v-if="!form.errors.has('items.' + index + '.quantity')" | ||||||
|                                         v-html="form.errors.get('items.' + index + '.quantity')"> |                                         v-html="form.errors.get('items.' + index + '.quantity')"> | ||||||
|                                     </div> |                                     </div> | ||||||
|  |  | ||||||
| @@ -125,7 +125,7 @@ | |||||||
|  |  | ||||||
|                         @stack('price_td_start') |                         @stack('price_td_start') | ||||||
|  |  | ||||||
|                         <td class="px-3 py-3 pr-1 border-b-0 price"> |                         <td class="px-3 py-3 pr-1 border-b-0 align-top price"> | ||||||
|                             <div> |                             <div> | ||||||
|                                 @stack('price_input_start') |                                 @stack('price_input_start') | ||||||
|  |  | ||||||
| @@ -152,7 +152,7 @@ | |||||||
|  |  | ||||||
|                         @stack('total_td_start') |                         @stack('total_td_start') | ||||||
|  |  | ||||||
|                         <td class="px-3 py-3 text-right border-b-0 total"> |                         <td class="px-3 py-3 text-right border-b-0 align-top total"> | ||||||
|                             @if (! $hideItemAmount) |                             @if (! $hideItemAmount) | ||||||
|                                 <div> |                                 <div> | ||||||
|                                     <x-form.input.money |                                     <x-form.input.money | ||||||
| @@ -175,8 +175,8 @@ | |||||||
|  |  | ||||||
|                         @stack('delete_td_start') |                         @stack('delete_td_start') | ||||||
|  |  | ||||||
|                         <td class="text-right group"> |                         <td class="text-right align-top group"> | ||||||
|                             <button type="button" @click="onDeleteItem(index)" class="w-6 h-7 flex items-center rounded-lg p-0 group-hover:bg-gray-100"> |                             <button type="button" @click="onDeleteItem(index)" class="w-6 h-7 flex items-center rounded-lg p-0 group-hover:bg-gray-100 mt-4"> | ||||||
|                                 <span class="w-full material-icons-outlined text-lg text-gray-300 group-hover:text-gray-500">delete</span> |                                 <span class="w-full material-icons-outlined text-lg text-gray-300 group-hover:text-gray-500">delete</span> | ||||||
|                             </button> |                             </button> | ||||||
|                         </td> |                         </td> | ||||||
| @@ -248,7 +248,7 @@ | |||||||
|                                             @change="form.errors.clear('items.' + index + '.discount')" |                                             @change="form.errors.clear('items.' + index + '.discount')" | ||||||
|                                         /> |                                         /> | ||||||
|  |  | ||||||
|                                         <div class="text-red text-sm mt-1 block" |                                         <div class="text-red text-sm mt-1 mb-3 block" | ||||||
|                                             v-if="form.errors.has('items.' + index + '.discount')" |                                             v-if="form.errors.has('items.' + index + '.discount')" | ||||||
|                                             v-html="form.errors.get('items.' + index + '.discount')"> |                                             v-html="form.errors.get('items.' + index + '.discount')"> | ||||||
|                                         </div> |                                         </div> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user