Skip to content

Commit

Permalink
Small corrections to the choice preset
Browse files Browse the repository at this point in the history
  • Loading branch information
srobotta committed Jun 12, 2024
1 parent 46d5e1a commit 9f38916
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions choice/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ the entry has been added.
### Item list

The list of items is defined in the *Custom JavaScript* template along with
functions to display the information in the other templates, mainly adding,
displaying one entry and displaying the list of all entries.
functions to display the information in the other templates, mainly adding
and displaying one entry as well as displaying the list of all entries.

From the field list, the description is used as well. It is displayed in
the selection list in the *Add entry template*.
Expand All @@ -67,7 +67,8 @@ In this example, an item consists of two properties:
}
```

Remove or add items as you wish, unless you have no datasets (e.g. votes) yet.
Remove or add items as you wish, as long as you have no datasets (e.g. votes)
yet.

This list is used to build up a list consisting of the item information and
a selection for the preferred choice. This is done via the function
Expand All @@ -90,8 +91,8 @@ There are many of these entries, so the function needs to calculate the votes
for each item respectively and also display the items ranked by the votes and
not as they are defined in the list.

For some reason, the `[[choice_first#name]]` placeholders did not work in the
javascript template. Therefore the string is hard coded there. In case you change
For some reason, placeholders like `[[choice_first#name]]` are not substituted in the
javascript template. Therefore, the string is hard coded there. In case you change
the names in the field list, make sure to change these here as well. In all
other templates, the placeholders are used, so the terms update automatically.

Expand Down
Binary file modified choice/choice_votes.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9f38916

Please sign in to comment.