from otree.api import Currency as c, currency_range
from ._builtin import Page, WaitPage
from .models import Constants

import random
import time

class Bienvenue(Page):
    form_model = 'player'
    form_fields = []


class Questionnaire0(Page):
    form_model = 'player'
    form_fields = ['q_1', 'q_2_a', 'q_2_b', 'q_2_c',  'q_2_e', 'q_2_f', 'q_2_g', 'q_2_h',
                       'q_3', 'q_4', 'q_6',  'q_8', 'q_9', 'q_10', 'q_11', 'q_12'

                       ]

class Questionnaire1(Page):
    form_model = 'player'
    form_fields = [
                   'q_13', 'q_14', 'q_15', 'q_16', 'q_17', 'q_18', 'q_19', 'q_20', 'q_20_a','q_20_b', 'q_21',
                   'q_22', 'q_23', 'q_24'
                   ]


class Questionnaire2(Page):
    form_model = 'player'
    form_fields = [ 'q_25', 'q_26', 'q_27', 'q_28', 'q_28_a', 'q_29', 'q_30_a', 'q_30_b',
                       'q_30_c', 'q_30_d', 'q_31', 'q_32',
                       'q_33_a', 'q_33_b', 'q_33_c', 'q_33_d', 'q_33_e', 'q_33_f', 'q_34', 'q_35'

                       ]

class Questionnaire3(Page):
    form_model = 'player'
    form_fields = [  'q_37', 'q_38_a', 'q_38_b', 'q_38_c']

class QuestionnaireEnd(Page):
    pass


page_sequence = [
    Bienvenue,
    Questionnaire0,
    Questionnaire1,
    Questionnaire2,
    Questionnaire3,
    QuestionnaireEnd,


]
