✅ Interfaz consistente entre crear y editar
✅ Etiquetas legibles en lugar de valores técnicos ✅ Más fácil e intuitivo para administradores ✅ Reutiliza el mismo componente configurable Frontend actualizado a v1.0.77
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "checklist-frontend",
|
||||
"private": true,
|
||||
"version": "1.0.76",
|
||||
"version": "1.0.77",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
|
||||
@@ -3273,15 +3273,14 @@ function InspectionDetailModal({ inspection, user, onClose, onUpdate }) {
|
||||
</select>
|
||||
</div>
|
||||
|
||||
{/* Answer Value (si aplica) */}
|
||||
{/* Answer Value - Usar el componente visual adecuado según tipo de pregunta */}
|
||||
{question.type !== 'pass_fail' && (
|
||||
<div>
|
||||
<label className="block text-sm font-medium text-gray-700 mb-1">Valor de Respuesta</label>
|
||||
<input
|
||||
type="text"
|
||||
<QuestionAnswerInput
|
||||
question={question}
|
||||
value={editFormData.answer_value}
|
||||
onChange={(e) => setEditFormData({...editFormData, answer_value: e.target.value})}
|
||||
className="w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500"
|
||||
onChange={(newValue) => setEditFormData({...editFormData, answer_value: newValue})}
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user