Zertifizierung erforderlich ist weg
Dieser Commit ist enthalten in:
@ -13,8 +13,6 @@ type Skill = {
|
||||
intermediate: number
|
||||
expert: number
|
||||
}
|
||||
requires_certification?: boolean
|
||||
certification_months?: number
|
||||
typeKey?: string
|
||||
typeName?: string
|
||||
typeIcon?: string
|
||||
@ -69,9 +67,7 @@ export default function SkillManagement() {
|
||||
description: '',
|
||||
category: '',
|
||||
typeKey: '',
|
||||
tags: [] as string[],
|
||||
requires_certification: false,
|
||||
certification_months: 0
|
||||
tags: [] as string[]
|
||||
})
|
||||
|
||||
// Category icon and color mapping
|
||||
@ -408,9 +404,7 @@ export default function SkillManagement() {
|
||||
description: skill.description || '',
|
||||
category: categoryId,
|
||||
typeKey,
|
||||
tags: skill.tags || [],
|
||||
requires_certification: skill.requires_certification || false,
|
||||
certification_months: skill.certification_months || 0
|
||||
tags: skill.tags || []
|
||||
})
|
||||
} else {
|
||||
setEditingSkill(null)
|
||||
@ -419,9 +413,7 @@ export default function SkillManagement() {
|
||||
description: '',
|
||||
category: '',
|
||||
typeKey: '',
|
||||
tags: [],
|
||||
requires_certification: false,
|
||||
certification_months: 0
|
||||
tags: []
|
||||
})
|
||||
}
|
||||
setShowSkillModal(true)
|
||||
@ -970,30 +962,6 @@ export default function SkillManagement() {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="flex items-center gap-4">
|
||||
<label className="flex items-center">
|
||||
<input
|
||||
type="checkbox"
|
||||
checked={skillForm.requires_certification}
|
||||
onChange={(e) => setSkillForm(prev => ({ ...prev, requires_certification: e.target.checked }))}
|
||||
className="mr-2"
|
||||
/>
|
||||
Zertifizierung erforderlich
|
||||
</label>
|
||||
|
||||
{skillForm.requires_certification && (
|
||||
<div className="flex items-center gap-2">
|
||||
<label>Ablauf nach:</label>
|
||||
<input
|
||||
type="number"
|
||||
value={skillForm.certification_months}
|
||||
onChange={(e) => setSkillForm(prev => ({ ...prev, certification_months: parseInt(e.target.value) || 0 }))}
|
||||
className="w-20 px-2 py-1 border border-gray-300 rounded dark:bg-gray-700 dark:border-gray-600"
|
||||
/>
|
||||
<span>Monaten</span>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="flex justify-end gap-3 mt-6">
|
||||
|
||||
In neuem Issue referenzieren
Einen Benutzer sperren