inline HTML, result viewer

This commit is contained in:
Ville Rantanen
2018-12-04 20:58:24 +02:00
parent 1a8cc70914
commit 2910cc2186
10 changed files with 185 additions and 101 deletions

View File

@@ -1,17 +1,30 @@
# expiry format: YYYY-MM-DD HH:MM +z
# z is the difference to UTC in HHMM, +0000, -0700, etc..
expires: 2028-12-12 21:20 +0200
# if "draft: true" voting is not possible. you can preview the form with address /preview/example
# if "draft: true" voting is not possible. you can preview the form with address "/preview/example"
draft: false
# "open" vote style is open for anyone without tokens. "closed" requires tokens to be generated
# Create tokens with `./manager token multi_question`
vote_style: closed
# By default voters can not see the results
show_results: false
# HTML can be added inline. The line needs to begin with "<"
# HTML added like this is technically a question without answer choices
<H1>Title of vote page</H1>
<img src="https://upload.wikimedia.org/wikipedia/en/thumb/7/7d/Lenna_%28test_image%29.png/220px-Lenna_%28test_image%29.png"/>
# - character is single choice question
It works?
- yes
- no
# If a question is in HTML tags, it's not formatted
<p>Fruits</p>
# + character is multi choice question
Fruits
+ banana
+ orange
+ tomato

View File

@@ -1,8 +1,14 @@
# if "true" voting is not possible. you can preview the form in address /preview/example
draft: false
# "open" vote style is open for anyone without tokens. "closed" requires tokens to be generated
vote_style: open
# By default voters can not see the results
show_results: true
# Questions are any line that doesnt match configuration commands
It works?
# single choice answers are denoted with dashes
- yes
- no