from django import forms
from ..models import Competitor


class AddCompetitorForm(forms.ModelForm):
    class Meta:
        model = Competitor
        fields = ['name',
                  'website',
                  'position',
                  'showreel']

        labels = {'name': "Competitor name",
                  'website': "Competitor website",
                  'position': 'Competitor position',
                  'showreel': "Competitor last showreel"}

    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)
        self.fields['name'].widget.attrs.update({'class': 'form-control'})
        self.fields['website'].widget.attrs.update({'class': 'form-control'})
        self.fields['position'].widget.attrs.update({'class': 'form-control'})
        self.fields['showreel'].widget.attrs.update({'class': 'form-control'})


class SearchCompetitorForm(forms.Form):
    name = forms.CharField(
        label="Competitor name",
        max_length=200,
        required=False,
        widget=forms.TextInput(attrs={'class': 'form-control'}))
    website = forms.URLField(
        label="Competitor name",
        max_length=200,
        required=False,
        widget=forms.TextInput(attrs={'class': 'form-control'}))
    position = forms.CharField(
        max_length=200,
        required=False,
        widget=forms.TextInput(attrs={'class': 'form-control'}))




64260582dd514e793583b2a1c48fd560a51a7b6e
<mask token>


class SearchCompetitorForm(forms.Form):
    <mask token>
    <mask token>
    <mask token>

<mask token>


class AddCompetitorForm(forms.ModelForm):


    class Meta:
        model = Competitor
        fields = ['name', 'website', 'position', 'showreel']
        labels = {'name': 'Competitor name', 'website':
            'Competitor website', 'position': 'Competitor position',
            'showreel': 'Competitor last showreel'}
    <mask token>


class SearchCompetitorForm(forms.Form):
    name = forms.CharField(label='Competitor name', max_length=200,
        required=False, widget=forms.TextInput(attrs={'class': 'form-control'})
        )
    website = forms.URLField(label='Competitor name', max_length=200,
        required=False, widget=forms.TextInput(attrs={'class': 'form-control'})
        )
    position = forms.CharField(max_length=200, required=False, widget=forms
        .TextInput(attrs={'class': 'form-control'}))

<mask token>


class AddCompetitorForm(forms.ModelForm):


    class Meta:
        model = Competitor
        fields = ['name', 'website', 'position', 'showreel']
        labels = {'name': 'Competitor name', 'website':
            'Competitor website', 'position': 'Competitor position',
            'showreel': 'Competitor last showreel'}

    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)
        self.fields['name'].widget.attrs.update({'class': 'form-control'})
        self.fields['website'].widget.attrs.update({'class': 'form-control'})
        self.fields['position'].widget.attrs.update({'class': 'form-control'})
        self.fields['showreel'].widget.attrs.update({'class': 'form-control'})


class SearchCompetitorForm(forms.Form):
    name = forms.CharField(label='Competitor name', max_length=200,
        required=False, widget=forms.TextInput(attrs={'class': 'form-control'})
        )
    website = forms.URLField(label='Competitor name', max_length=200,
        required=False, widget=forms.TextInput(attrs={'class': 'form-control'})
        )
    position = forms.CharField(max_length=200, required=False, widget=forms
        .TextInput(attrs={'class': 'form-control'}))

from django import forms
from ..models import Competitor


class AddCompetitorForm(forms.ModelForm):


    class Meta:
        model = Competitor
        fields = ['name', 'website', 'position', 'showreel']
        labels = {'name': 'Competitor name', 'website':
            'Competitor website', 'position': 'Competitor position',
            'showreel': 'Competitor last showreel'}

    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)
        self.fields['name'].widget.attrs.update({'class': 'form-control'})
        self.fields['website'].widget.attrs.update({'class': 'form-control'})
        self.fields['position'].widget.attrs.update({'class': 'form-control'})
        self.fields['showreel'].widget.attrs.update({'class': 'form-control'})


class SearchCompetitorForm(forms.Form):
    name = forms.CharField(label='Competitor name', max_length=200,
        required=False, widget=forms.TextInput(attrs={'class': 'form-control'})
        )
    website = forms.URLField(label='Competitor name', max_length=200,
        required=False, widget=forms.TextInput(attrs={'class': 'form-control'})
        )
    position = forms.CharField(max_length=200, required=False, widget=forms
        .TextInput(attrs={'class': 'form-control'}))

from django import forms
from ..models import Competitor


class AddCompetitorForm(forms.ModelForm):
    class Meta:
        model = Competitor
        fields = ['name',
                  'website',
                  'position',
                  'showreel']

        labels = {'name': "Competitor name",
                  'website': "Competitor website",
                  'position': 'Competitor position',
                  'showreel': "Competitor last showreel"}

    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)
        self.fields['name'].widget.attrs.update({'class': 'form-control'})
        self.fields['website'].widget.attrs.update({'class': 'form-control'})
        self.fields['position'].widget.attrs.update({'class': 'form-control'})
        self.fields['showreel'].widget.attrs.update({'class': 'form-control'})


class SearchCompetitorForm(forms.Form):
    name = forms.CharField(
        label="Competitor name",
        max_length=200,
        required=False,
        widget=forms.TextInput(attrs={'class': 'form-control'}))
    website = forms.URLField(
        label="Competitor name",
        max_length=200,
        required=False,
        widget=forms.TextInput(attrs={'class': 'form-control'}))
    position = forms.CharField(
        max_length=200,
        required=False,
        widget=forms.TextInput(attrs={'class': 'form-control'}))



