from django import forms

from .models import Conference, Team, Player

class ConferenceForm(forms.ModelForm):
  class Meta:
    model = Conference
    fields = ['name']
    labels = {'name': 'Conference Name'}


class TeamForm(forms.ModelForm):
  class Meta:
    model = Team
    fields = ['name','conference']
    labels = {'name': 'Team Name','conference': 'Conference'}


class PlayerForm(forms.ModelForm):
  class Meta:
    model = Player
    fields = ['name','team','position']
    labels = {'name': 'Name','team': 'Team','position': 'Position'}