Exemplo n.º 1
0
class ClassForm(forms.Form):
    teacher = ChoiceNoValidateField(label=u'授课教师', initial='')
    name = forms.CharField(label=u'班级名称',
                           max_length=20,
                           help_text='最多可输入12个字',
                           initial='')
    course_system = ChoiceNoValidateField(label=u'可调用课程体系', initial='')
Exemplo n.º 2
0
class QnydScoreForm(forms.Form):
    name = forms.CharField(label=u'名称', max_length=20)
    staff1_name = forms.CharField(label=u'名称', max_length=20)
    whole_score = ChoiceNoValidateField(label=u'选择总谱')
    staff1_score = ChoiceNoValidateField(label=u'选曲子')
    staff2_name = forms.CharField(label=u'名称', max_length=20, required=False)
    staff2_score = ChoiceNoValidateField(label=u'选曲子', required=False)
    staff3_name = forms.CharField(label=u'名称', max_length=20, required=False)
    staff3_score = ChoiceNoValidateField(label=u'选曲子', required=False)
    description = forms.CharField(label=u'乐曲描述', max_length=1000, initial='', required=False)
Exemplo n.º 3
0
class SectionSegmentForm(forms.Form):
    """
    segment
    """
    # institution = ChoiceNoValidateField(label=u'机构')
    video = ChoiceNoValidateField(label=u'视频', )
    video_segment = ChoiceNoValidateField(label=u'视频分段', required=False)
    score = ChoiceNoValidateField(label=u'曲子', )
    score_segment = ChoiceNoValidateField(label=u'曲子分段', )
    section_name = forms.CharField(label=u'名称', max_length=20)
    keyboard = forms.ChoiceField(label=u'琴键', choices=KEYBOARD_TYPE.choices)
    tempo = forms.IntegerField(label=u'tempo')
Exemplo n.º 4
0
class QnydScoreForm(forms.Form):
    name = forms.CharField(label=u'名称', max_length=20)
    staff1_name = forms.CharField(label=u'名称', max_length=20)
    staff1_score = ChoiceNoValidateField(label=u'选曲子')
    staff2_name = forms.CharField(label=u'名称', max_length=20, required=False)
    staff2_score = ChoiceNoValidateField(label=u'选曲子', required=False)
    staff3_name = forms.CharField(label=u'名称', max_length=20, required=False)
    staff3_score = ChoiceNoValidateField(label=u'选曲子', required=False)
    xml_name = forms.CharField(label=u'曲谱XML', max_length=200, initial='', )
    xml_path = forms.CharField(label=u'曲谱XML', max_length=200, initial='', )
    description = forms.CharField(label=u'乐曲描述', max_length=1000, initial='', required=False)
    status = forms.BooleanField(label=u'发布状态', initial=False, required=False)
Exemplo n.º 5
0
class SectionFullForm(forms.Form):
    """
    full
    """
    # institution = ChoiceNoValidateField(label=u'机构')
    score = ChoiceNoValidateField(label=u'曲子', )
    section_name = forms.CharField(label=u'名称', max_length=20)
Exemplo n.º 6
0
class SectionGameForm(forms.Form):
    """
    game
    """
    # institution = ChoiceNoValidateField(label=u'机构')
    level_id = ChoiceNoValidateField(label=u'关卡', )
    section_name = forms.CharField(label=u'名称', max_length=20)
    type = forms.ChoiceField(label=u'游戏类型', choices=GAME_TYPE.choices)
Exemplo n.º 7
0
class SectionVideoForm(forms.Form):
    """
    video
    """
    # institution = ChoiceNoValidateField(label=u'机构')
    video = ChoiceNoValidateField(label=u'视频',)
    video_segment = ChoiceNoValidateField(label=u'视频分段', required=False)
    section_name = forms.CharField(label=u'名称', max_length=50)
    poster_name = forms.CharField(label=u'前poster', initial='', max_length=200, required=False)
    poster_path = forms.CharField(label=u'前poster', initial='', max_length=100, required=False)
    back_poster_name = forms.CharField(label=u'后poster', initial='', max_length=200, required=False)
    back_poster_path = forms.CharField(label=u'后poster', initial='', max_length=100, required=False)
    play_type = forms.ChoiceField(label=u'播放形式', choices=PLAY_WAY.choices)
    is_auto_play = forms.BooleanField(label=u'是否自动播放', initial=False, required=False)
    b00_name = forms.CharField(label=u'注册记忆B00', max_length=200, initial='', required=False)
    b00_path = forms.CharField(label=u'注册记忆B00', max_length=200, initial='', required=False)
    program_change_midi_name = forms.CharField(label=u'音色变换midi', max_length=200, initial='', required=False)
    program_change_midi_path = forms.CharField(label=u'音色变换midi', max_length=200, initial='', required=False)
Exemplo n.º 8
0
class SimpleForm(forms.Form):
    """
    example
    """
    f1 = forms.CharField(label=u'字段一', max_length=20, help_text='最多可输入120个字', initial='')
    # f2 = forms.CharField(label=u'字段二', max_length=20, help_text='最多可输入120个字', initial='')
    f2 = ChoiceNoValidateField(label=u'医院', initial=None, required=False)
    f3 = forms.CharField(label=u'字段三', max_length=20, help_text='最多可输入120个字', initial='')
    f4 = forms.CharField(label=u'字段四', max_length=200, help_text='最多可输入120个字', initial='')
    f5 = forms.CharField(label=u'字段五', max_length=200, help_text='最多可输入120个字', initial='')
Exemplo n.º 9
0
class TeacherForm(forms.Form):
    """
    teacher
    """
    # institution = ChoiceNoValidateField(label=u'机构')
    city = ChoiceNoValidateField(label=u'城市')
    name = forms.CharField(label=u'名称', max_length=20)
    mobile = forms.CharField(label=u'电话', max_length=20)
    school_area = forms.CharField(label=u'学校区域', max_length=20)
    course_system = MultiChoiceNoValidateField(label=u'可调用课程体系', initial='')
Exemplo n.º 10
0
class InstitutionForm(forms.Form):
    """
    example
    """
    name = forms.CharField(label=u'机构名称', max_length=20, initial='')
    code = forms.CharField(label=u'简码', max_length=20, initial='')
    type = forms.ChoiceField(label=u'机构类型', choices=INSTITUTION_TYPE.choices)
    concurrent_num = forms.IntegerField(label=u'并发数')
    city = ChoiceNoValidateField(label=u'城市')
    experience_student_num = forms.IntegerField(label=u'体验学生数', min_value=0)
    course_system = MultiChoiceNoValidateField(label=u'可调用课程体系', initial='')