"""Fitted section forms: stockroom name-filter marker (no container, no price rule)
+ per-listing manual price."""

from django import forms

from ...forms import AddStockroomForm


class FittedStockroomForm(AddStockroomForm):
    """Fitted stockroom: owner + station/division + an optional in-game name marker.
    Ships aren't containerizable, so `container_item_id` (inherited) is left unused."""

    name_filter = forms.CharField(max_length=100, required=False)
    strip_marker = forms.BooleanField(required=False, initial=True)


class EditFittedStockroomForm(forms.Form):
    """Edit a fitted stockroom's name marker + strip flag."""

    name_filter = forms.CharField(max_length=100, required=False)
    strip_marker = forms.BooleanField(required=False, initial=True)


class EditFittedForm(forms.Form):
    """Per-listing manual price (0 = Ask), keep-when-gone flag, and description."""

    price = forms.IntegerField(min_value=0, required=False)
    persist = forms.BooleanField(required=False)
    description = forms.CharField(required=False, widget=forms.Textarea)
