similar to a hybrid of the random facts (but defined more simply) and the dice rolling (but not picking from dice), this allows for definition of "choice sets" (only in the admin for the moment) and then getting a random pull from that set (only in the web interface for the moment)
10 lines
310 B
HTML
10 lines
310 B
HTML
{% extends 'base.html' %}
|
|
|
|
{% block title %}choice set: {{ choiceset.name }}{% endblock %}
|
|
|
|
{% block content %}
|
|
<h3>{{ choiceset.name }}</h3>
|
|
<p><strong>Choices:</strong> {{ choiceset.choices_list|join:", " }}</p>
|
|
<p><strong>Random Choice:</strong> {{ choiceset.choices_list|random }}</p>
|
|
{% endblock %}
|