from django     import forms
from .models    import Equipment

class EquipmentForm(forms.ModelForm):
    class Meta:
        model = Equipment
        fields = ["hostname", "ip", "is_active"]
        widgets = {
            "hostname": forms.TextInput(attrs={"class": "form-control"}),
            "ip": forms.TextInput(attrs={"class": "form-control"}),
            "is_active": forms.CheckboxInput(attrs={"class": "form-check-input"}),
        }
