26 lines
559 B
Python
26 lines
559 B
Python
from wagtail.core import blocks
|
|
|
|
DEFAULT_RICH_TEXT_FEATURES = ['bold', 'italic', 'link', 'ol', 'ul']
|
|
|
|
|
|
# 'text_block' 'task'
|
|
class TextBlock(blocks.StructBlock):
|
|
text = blocks.RichTextBlock()
|
|
|
|
|
|
# 'modal_text'
|
|
class ModalTextBlock(blocks.StructBlock):
|
|
description = blocks.RichTextBlock()
|
|
url = blocks.URLBlock()
|
|
|
|
|
|
# 'student_entry'
|
|
class StudentEntryBlock(blocks.StructBlock):
|
|
task_text = blocks.RichTextBlock()
|
|
|
|
|
|
# 'text_block' 'task' 'modal_text' 'student_entry' 'image_block'
|
|
#
|
|
# url = blocks.URLBlock()
|
|
# document = DocumentChooserBlock()
|