-
Notifications
You must be signed in to change notification settings - Fork 0
Administration
Tasks can be added be using the admin interface under myurl.de/admin/
.
Therefore the database and admin interface have to be created first. Use a terminal and navigate to the Wason_Selection_Task
folder (or your folder) and use
python manage.py syncdb
to create the database. When you're asked if you would like to create an admin user type yes
and create it.
To add a task, navigate to the task type (in my case abstract or concrete) in our admin interface at myurl.de/admin/
. By using the plus symbol you can simply add a new task. Every task has a description, a story and four cards. Please check the boxes next to the card, if the card has to be flipped for a correct answer.
If you enter one or two letters or numbers into the card field, then exactly those symbols will be displayed on the card. Otherwise a .svg file or colour (see below) can be used.
If the card field in the database is longer than two letters, nothing will be displayed on the card and a class with the same name entered in the card field in the database will be added to the card. Now it is possible to add styles to this class in the cards.css
like:
.sample {
background: url('/static/svg/sample.svg') no-repeat center;
background-size: 100%;
}
In this case sample
was written into the card field in the database. The sample snippet works for any quare .svg file
The cards.css
file already contains some colour classes, so if you type red
into the card field in the database, the card will be red.