from otree.api import (
models, BaseConstants, BaseSubsession, BaseGroup, BasePlayer,
Currency as c, currency_range, Page, WaitPage
)
author = "rajib"
doc = """
Your app description
"""
class Constants(BaseConstants):
name_in_url = 'group_contest_app'
players_per_group = 3
num_rounds = 1
class Subsession(BaseSubsession):
pass
class Group(BaseGroup):
pass
class Player(BasePlayer):
Name_Initials_Consent = models.StringField
Email_Consent = models.StringField(blank=True)
# Contribution = models.IntegerField
# PAGES
class Introduction(Page):
form_model = 'player'
form_fields = ['Name_Initials_Consent', 'Email_Consent']
class ResultsWaitPage(WaitPage):
pass
class Results(Page):
pass
page_sequence = [Introduction]