from otree.api import Currency as c, currency_range from ._builtin import Page, WaitPage from .models import Constants from . import models # ******************************************************************************************************************** # # *** PAGE FINLIT *** # # ******************************************************************************************************************** # class FinLit(Page): form_model = models.Player form_fields = ['interest_compounding', 'real_interest', 'diversification', 'bond_pricing', 'credit_interest'] def vars_for_template(self): # specify info for task progress section = int(2) section_total = int(3) section_progress = int(section / section_total * 100) # specify info for progress bar total = int(2) page = int(1) progress = int(page / total * 100) return { 'section': section, 'section_total': section_total, 'section_progress': section_progress, 'page': page, 'total': total, 'progress': progress, } page_sequence = [FinLit]