forked from indymedia/epicyon
Increase maximum question options
parent
7823206528
commit
4a2e671149
|
@ -3573,7 +3573,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
return -1
|
||||
questionStr=fields['message']
|
||||
qOptions=[]
|
||||
for questionCtr in range(6):
|
||||
for questionCtr in range(8):
|
||||
if fields.get('questionOption'+str(questionCtr)):
|
||||
qOptions.append(fields['questionOption'+str(questionCtr)])
|
||||
if not qOptions:
|
||||
|
|
|
@ -980,8 +980,8 @@ def htmlNewPost(translate: {},baseDir: str, \
|
|||
placeholderMessage=translate['Enter your question']+'...'
|
||||
endpoint='newquestion'
|
||||
extraFields='<div class="container">'
|
||||
for questionCtr in range(6):
|
||||
extraFields+=' <input type="text" class="questionOption" placeholder="'+str(questionCtr)+'" name="questionOption'+str(questionCtr)+'">'
|
||||
for questionCtr in range(8):
|
||||
extraFields+=' <input type="text" class="questionOption" placeholder="'+str(questionCtr+1)+'" name="questionOption'+str(questionCtr)+'">'
|
||||
extraFields+=' <label class="labels">'+translate['Duration of listing in days']+':</label> <input type="number" name="duration" min="1" max="365" step="1" value="14">'
|
||||
extraFields+='</div>'
|
||||
if path.endswith('/newshare'):
|
||||
|
|
Loading…
Reference in New Issue