{% extends "global/Base.html" %} {% load staticfiles otree_tags %} {% block title %} Your role and decision {% endblock %} {% block content %}
You are the responder.
The other player has offered you {{ group.amount_offered }}.
{% comment %} We would usually use the default widget provided by the form with this snippet: {% formfield group.offer_accepted %} But that would display a dropdown widget with the options "yes" and "no" that the user needs to select and then press next. We want to provide a nicer experience by using only a "Yes" and "No" button. The code after that comment provides that custom widget. {% endcomment %}