diff --git a/symposion/schedule/forms.py b/symposion/schedule/forms.py index 4e6dfed8..04e7b196 100644 --- a/symposion/schedule/forms.py +++ b/symposion/schedule/forms.py @@ -1,6 +1,8 @@ from django import forms from django.db.models import Q +from markitup.widgets import MarkItUpWidget + from symposion.schedule.models import Presentation @@ -32,7 +34,7 @@ class SlotEditForm(forms.Form): def build_content_override_field(self): kwargs = { "label": "Content", - "widget": forms.Textarea(attrs={"class": "span6"}), + "widget": MarkItUpWidget(), "required": False, "initial": self.slot.content_override, } diff --git a/symposion/schedule/models.py b/symposion/schedule/models.py index 657c0e8d..c01a4b7e 100644 --- a/symposion/schedule/models.py +++ b/symposion/schedule/models.py @@ -48,7 +48,7 @@ class Slot(models.Model): kind = models.ForeignKey(SlotKind) start = models.TimeField() end = models.TimeField() - content_override = models.TextField(blank=True) + content_override = MarkupField() def assign(self, content): """ diff --git a/symposion/templates/schedule/_edit_grid.html b/symposion/templates/schedule/_edit_grid.html index eb39ec7d..d59285dc 100644 --- a/symposion/templates/schedule/_edit_grid.html +++ b/symposion/templates/schedule/_edit_grid.html @@ -18,8 +18,8 @@