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>
|
||||
|
||||
{/* Price & Quantity */}
|
||||
{/* Price, Currency & Quantity */}
|
||||
<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">
|
||||
Price
|
||||
Preço
|
||||
</label>
|
||||
<input
|
||||
type="number"
|
||||
@@ -178,7 +178,7 @@ export default function ItemForm({ initialData, onSubmit, onCancel, isEditing =
|
||||
</div>
|
||||
<div>
|
||||
<label className="block text-sm font-medium text-gray-700 mb-1">
|
||||
Currency
|
||||
Moeda
|
||||
</label>
|
||||
<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"
|
||||
@@ -187,17 +187,15 @@ export default function ItemForm({ initialData, onSubmit, onCancel, isEditing =
|
||||
setFormData((prev) => ({ ...prev, currency: e.target.value }))
|
||||
}
|
||||
>
|
||||
<option value="BRL">BRL</option>
|
||||
<option value="USD">USD</option>
|
||||
<option value="EUR">EUR</option>
|
||||
<option value="GBP">GBP</option>
|
||||
<option value="CAD">CAD</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label className="block text-sm font-medium text-gray-700 mb-1">
|
||||
Quantity
|
||||
Quantidade
|
||||
</label>
|
||||
<input
|
||||
type="number"
|
||||
@@ -209,6 +207,7 @@ export default function ItemForm({ initialData, onSubmit, onCancel, isEditing =
|
||||
}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Image Upload/URL */}
|
||||
<ImageUpload
|
||||
|
||||
Reference in New Issue
Block a user