refactor plant section

This commit is contained in:
2025-10-13 11:02:17 +07:00
parent 577d8c8585
commit d9fb7c9fce
3 changed files with 29 additions and 64 deletions

View File

@@ -64,39 +64,7 @@ const DetailPlantSection = ({ visible, onCancel, onOk, form, editingKey, readOnl
rules={[{ required: true, message: 'Silakan masukkan nama sub section!' }]}
style={{ marginBottom: 0 }}
>
<Input readOnly={readOnly} placeholder="Masukkan Kode Plant" />
</Form.Item>
</div>
<div style={{ marginBottom: 12 }}>
<Text strong>Nama Plant</Text>
<Text style={{ color: 'red' }}> *</Text>
<Form.Item
name="nama_plant"
rules={[{ required: true, message: 'Silakan masukkan nama plant!' }]}
style={{ marginBottom: 0 }}
>
<Input readOnly={readOnly} placeholder="Masukkan Nama Plant" />
</Form.Item>
</div>
<div style={{ marginBottom: 12 }}>
<Text strong>Lokasi Plant</Text>
<Text style={{ color: 'red' }}> *</Text>
<Form.Item
name="lokasi_plant"
rules={[{ required: true, message: 'Silakan masukkan lokasi plant!' }]}
style={{ marginBottom: 0 }}
>
<Input readOnly={readOnly} placeholder="Masukkan Lokasi Plant" />
</Form.Item>
</div>
<div style={{ marginBottom: 12 }}>
<Text strong>Deskripsi</Text>
<Form.Item name="deskripsi" style={{ marginBottom: 0 }}>
<Input.TextArea
readOnly={readOnly}
placeholder="Masukkan Deskripsi (Opsional)"
rows={4}
/>
<Input readOnly={readOnly} placeholder="Masukkan Nama Sub Section" />
</Form.Item>
</div>
</Form>