"""This module holds the forms for the ``roleplays`` app."""

from django import forms

from mtp.apps.assessments.forms import AssessableMixin

from .models import Criterion, Roleplay


class RoleplayOrderForm(forms.ModelForm):
    class Meta:
        model = Roleplay
        fields = ('order',)


class CriterionForm(AssessableMixin, forms.ModelForm):

    class Meta:
        model = Criterion
        fields = (
            'name',
            'description',
            'criterion_type',
            'is_assessing',
            'dimensions',
        )
