2015-03-17 19:03:51 +01:00
|
|
|
from django import forms
|
|
|
|
|
2021-04-29 00:27:33 +02:00
|
|
|
from .models import PartitionSet
|
|
|
|
|
2016-07-14 01:58:52 +02:00
|
|
|
|
2015-03-17 19:03:51 +01:00
|
|
|
class UploadFileForm(forms.Form):
|
|
|
|
title = forms.CharField(max_length=50)
|
|
|
|
file = forms.FileField()
|
|
|
|
|
2016-07-14 01:58:52 +02:00
|
|
|
|
2015-03-17 19:03:51 +01:00
|
|
|
class UploadMorceauForm(forms.Form):
|
|
|
|
titre = forms.CharField(max_length=100)
|
|
|
|
auteur = forms.CharField(max_length=100)
|
2021-04-29 00:27:33 +02:00
|
|
|
|
|
|
|
|
|
|
|
class ChefEditMorceauForm(forms.ModelForm):
|
|
|
|
class Meta:
|
|
|
|
model = PartitionSet
|
|
|
|
fields = ("category", "download_unlogged", "infos", "url", "infos_en")
|