Add brand device field to DetailDevice component and ListDevice table

This commit is contained in:
2025-10-24 11:07:06 +07:00
parent f2b652abe3
commit dd874cbe9c
2 changed files with 25 additions and 0 deletions

View File

@@ -14,6 +14,7 @@ const DetailDevice = (props) => {
device_id: '',
device_code: '',
device_name: '',
brand_device: '',
is_active: true,
device_location: '',
device_description: '',
@@ -228,6 +229,7 @@ const DetailDevice = (props) => {
}}
/>
</div>
<div style={{ marginBottom: 12 }}>
<Text strong>Device Name</Text>
<Text style={{ color: 'red' }}> *</Text>
@@ -239,6 +241,23 @@ const DetailDevice = (props) => {
readOnly={props.readOnly}
/>
</div>
<div style={{ marginBottom: 12 }}>
<Text strong>Brand Device</Text>
<Text style={{ color: 'red' }}> *</Text>
<Input
name="brand_device"
value={formData.brand_device}
onChange={handleInputChange}
placeholder="Enter Brand Device"
readOnly={props.readOnly}
disabled
style={{
backgroundColor: '#f5f5f5',
cursor: 'not-allowed',
color: formData.brand_device ? '#000000' : '#bfbfbf',
}}
/>
</div>
<div style={{ marginBottom: 12 }}>
<Text strong>Device Location</Text>
<Input