mirror of
https://github.com/adrigongv23/G26---Telemetry-Software.git
synced 2026-08-25 11:33:17 +02:00
Gestión de temporadas añadida
This commit is contained in:
parent
97d38a086c
commit
408d4d006e
6 changed files with 398 additions and 158 deletions
13
Plataform_Web/temporadas/forms.py
Normal file
13
Plataform_Web/temporadas/forms.py
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
from django import forms
|
||||
from .models import Temporada
|
||||
|
||||
|
||||
class TemporadaForm(forms.ModelForm):
|
||||
class Meta:
|
||||
model = Temporada
|
||||
fields = ['nombre', 'fecha_inicio', 'fecha_fin', 'presupuesto', 'actual', 'miembros']
|
||||
widgets = {
|
||||
'fecha_inicio': forms.DateInput(attrs={'type': 'date', 'class': 'form-control'}),
|
||||
'fecha_fin': forms.DateInput(attrs={'type': 'date', 'class': 'form-control'}),
|
||||
'miembros': forms.CheckboxSelectMultiple(),
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue