mirror of https://gitlab.com/bashrc2/epicyon
Show number of votes
parent
fe3fb78801
commit
44e0e02d02
|
@ -1831,7 +1831,7 @@ def insertQuestion(baseDir: str,translate: {}, \
|
||||||
continue
|
continue
|
||||||
votes=int(questionOption['replies']['totalItems'])
|
votes=int(questionOption['replies']['totalItems'])
|
||||||
votesPercent=str(int(votes*100/maxVotes))
|
votesPercent=str(int(votes*100/maxVotes))
|
||||||
content+='<p><input type="text" placeholder="" title="'+str(votes)+'" name="skillName'+str(questionCtr)+'" value="'+questionOption['name']+'" style="width:40%">'
|
content+='<p><input type="text" placeholder="" title="'+str(votes)+'" name="skillName'+str(questionCtr)+'" value="'+questionOption['name']+' ('+str(votes)+')" style="width:40%">'
|
||||||
content+='<input type="range" min="1" max="100" class="slider" title="'+str(votes)+'" name="skillValue'+str(questionCtr)+'" value="'+votesPercent+'"></p>'
|
content+='<input type="range" min="1" max="100" class="slider" title="'+str(votes)+'" name="skillValue'+str(questionCtr)+'" value="'+votesPercent+'"></p>'
|
||||||
questionCtr+=1
|
questionCtr+=1
|
||||||
content+='</div>'
|
content+='</div>'
|
||||||
|
|
Loading…
Reference in New Issue