from otreeutils.surveys import generate_likert_field, generate_likert_table # define a Likert 5-point scale with its labels likert_7_labels = ( '1', '2', '3', '4', '5', '6', '7', ) state_boredom_after = { 'page_title': 'Survey Questions', 'survey_fields': [ # create a table of Likert scale choices # we use the same 5-point scale a before and specify four rows for the table, # each with a tuple (field name, label) generate_likert_table(likert_7_labels, [ ('state_boredom_after_01', 'Time is passing by slower than usual.'), ('state_boredom_after_02', 'I am stuck in a situation that I feel is irrelevant.'), ('state_boredom_after_03', 'I am easily distracted.'), ('state_boredom_after_04', 'I am lonely'), ('state_boredom_after_05', 'Everything seems to be irritating me right now.'), ('state_boredom_after_06', 'I wish time would go by faster.'), ('state_boredom_after_07', 'Everything seems repetitive and routine to me.'), ('state_boredom_after_08', 'I feel down.'), ('state_boredom_after_09', 'I seem to be forced to do things that have no value to me.'), ('state_boredom_after_10', 'I feel bored.'), ('state_boredom_after_11', 'Time is dragging on.'), ('state_boredom_after_12', 'I am more moody than usual.'), ('state_boredom_after_13', 'I am indecisive or unsure of what to do next.'), ('state_boredom_after_14', 'I feel agitated.'), ('state_boredom_after_15', 'I feel empty.'), ('state_boredom_after_16', 'It is difficult to focus my attention.'), ('state_boredom_after_17', 'I want to do something fun, but nothing appeals to me.'), ('state_boredom_after_18', 'Time is moving very slowly.'), ('state_boredom_after_19', 'I wish I was doing something more exciting.'), ('state_boredom_after_20', 'My attention span is shorter than usual.'), ('state_boredom_after_21', 'I am impatient right now.'), ('state_boredom_after_22', 'I am wasting time that would be better spent on something else.'), ('state_boredom_after_23', 'My mind is wandering.'), ('state_boredom_after_24', 'I want something to happen but I’m not sure what.'), ('state_boredom_after_25', 'I feel cut off from the rest of the world.'), ('state_boredom_after_26', 'Right now it seems like time is passing slowly.'), ('state_boredom_after_27', 'I am annoyed with the people around me.'), ('state_boredom_after_28', 'I feel like I’m sitting around waiting for something to happen.'), ('state_boredom_after_29', 'It seems like there’s no one around for me to talk to.'), ], form_help_initial='
Please respond to each question indicating how you feel right now about yourself and your life, even if it is different from how you usually feel. Use the following choices: 1 = Strongly Disagree; 2 = Disagree; 3 = Somewhat Disagree; 4 = Neutral; 5 = Somewhat Agree; 6 = Agree; and 7 = Strongly Agree.
', # HTML to be placed on top of form form_help_final='', # HTML to be placed below form table_row_header_width_pct=15, # width of row header (first column) in percent. default: 25 table_rows_randomize=True, # randomize order of displayed rows table_cols_equal_width=False, # adjust form columns so that they have equal width table_cells_highlight= True, # highlight form cells on mouse-over table_rows_highlight= False, # highlight form rows on mouse-over ) ] }