File diff 529cb3e7db9b → c5b0177debb4
conntrackt/forms.py
Show inline comments
 
@@ -2,7 +2,7 @@
 
from django.forms import ModelForm
 

	
 
# Application imports.
 
from .models import Entity, Interface, Communication
 
from .models import Project, Entity, Interface, Communication
 

	
 

	
 
class WidgetCSSClassFormMixin(object):
 
@@ -107,3 +107,17 @@ class CommunicationForm(WidgetCSSClassFo
 
                           "description": "Communication description"}
 

	
 
    widget_css_classes = {"ALL": "span6"}
 

	
 

	
 
class ProjectForm(WidgetCSSClassFormMixin, PlaceholderFormMixin, ModelForm):
 
    """
 
    Implements a custom model form for projects with some styling changes.
 
    """
 

	
 
    class Meta:
 
        model = Project
 

	
 
    widget_placeholders = {"name": "Project name",
 
                           "description": "Project description"}
 

	
 
    widget_css_classes = {"ALL": "span6"}