feat(admin): merge quantity into price/currency row, add BRL, PT-BR labels
Some checks failed
Build and Push Docker Image / build-and-push (push) Has been cancelled
Some checks failed
Build and Push Docker Image / build-and-push (push) Has been cancelled
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -155,11 +155,11 @@ export default function ItemForm({ initialData, onSubmit, onCancel, isEditing =
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Price & Quantity */}
|
{/* Price, Currency & Quantity */}
|
||||||
<div className="grid grid-cols-3 gap-4">
|
<div className="grid grid-cols-3 gap-4">
|
||||||
<div className="col-span-2">
|
<div>
|
||||||
<label className="block text-sm font-medium text-gray-700 mb-1">
|
<label className="block text-sm font-medium text-gray-700 mb-1">
|
||||||
Price
|
Preço
|
||||||
</label>
|
</label>
|
||||||
<input
|
<input
|
||||||
type="number"
|
type="number"
|
||||||
@@ -178,7 +178,7 @@ export default function ItemForm({ initialData, onSubmit, onCancel, isEditing =
|
|||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label className="block text-sm font-medium text-gray-700 mb-1">
|
<label className="block text-sm font-medium text-gray-700 mb-1">
|
||||||
Currency
|
Moeda
|
||||||
</label>
|
</label>
|
||||||
<select
|
<select
|
||||||
className="w-full px-3 py-2 border-2 border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 text-gray-900"
|
className="w-full px-3 py-2 border-2 border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 text-gray-900"
|
||||||
@@ -187,27 +187,26 @@ export default function ItemForm({ initialData, onSubmit, onCancel, isEditing =
|
|||||||
setFormData((prev) => ({ ...prev, currency: e.target.value }))
|
setFormData((prev) => ({ ...prev, currency: e.target.value }))
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
|
<option value="BRL">BRL</option>
|
||||||
<option value="USD">USD</option>
|
<option value="USD">USD</option>
|
||||||
<option value="EUR">EUR</option>
|
<option value="EUR">EUR</option>
|
||||||
<option value="GBP">GBP</option>
|
<option value="GBP">GBP</option>
|
||||||
<option value="CAD">CAD</option>
|
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div>
|
||||||
|
<label className="block text-sm font-medium text-gray-700 mb-1">
|
||||||
<div>
|
Quantidade
|
||||||
<label className="block text-sm font-medium text-gray-700 mb-1">
|
</label>
|
||||||
Quantity
|
<input
|
||||||
</label>
|
type="number"
|
||||||
<input
|
min="1"
|
||||||
type="number"
|
className="w-full px-3 py-2 border-2 border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 text-gray-900"
|
||||||
min="1"
|
value={formData.quantity}
|
||||||
className="w-full px-3 py-2 border-2 border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 text-gray-900"
|
onChange={(e) =>
|
||||||
value={formData.quantity}
|
setFormData((prev) => ({ ...prev, quantity: e.target.value }))
|
||||||
onChange={(e) =>
|
}
|
||||||
setFormData((prev) => ({ ...prev, quantity: e.target.value }))
|
/>
|
||||||
}
|
</div>
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Image Upload/URL */}
|
{/* Image Upload/URL */}
|
||||||
|
|||||||
Reference in New Issue
Block a user