from .models import Video, Comment_Model, ReplyModel, Rating
from django import forms


class VideoUpload(forms.ModelForm):
    class Meta:
        model = Video
        fields = ['title', 'file', 'make_privet', ]
        widgets = {
            'title': forms.TextInput(attrs={'placeholder': 'Title length cannot exceed 100 characters'}),
            'file': forms.FileInput(attrs={'accept': 'video/*'}),
        }


class CommentForm(forms.ModelForm):
    class Meta:
        model = Comment_Model
        fields = ['comment', ]


class ReplyCommentForm(forms.ModelForm):
    class Meta:
        model = ReplyModel
        fields = ['reply', ]


class RatingForm(forms.ModelForm):
    class Meta:
        model = Rating
        fields = ['rating', ]
