update README and hardcode poll options to 20

This commit is contained in:
localhost_frssoft 2023-11-10 18:00:13 +03:00
parent 8dcd6cfdd7
commit 4c0c1c40a8
7 changed files with 76 additions and 2 deletions

View file

@ -51,6 +51,21 @@
<input id="lang-code" name="lang-code" placeholder="lang" title="Post language (ISO 639) [en, ru, etc..] Default: none" size="4" value="{{if .ReplyContext}}{{.ReplyContext.ReplyLanguage}}{{end}}">
<input type="number" id="expires-in" name="expires-in" title="Post autodeleted after hour(s)" min="0" value="0" size="4">
<input type="datetime-local" id="scheduled" name="scheduled" step=300 title="Schedule your status (timezone UTC+0)">
<details><summary>Poll</summary>
<div>
<input type="number" id="poll-expires-in" name="poll-expires-in" min="1" value="300">
<label for="poll-expires-in"> Expires in (secs) </label>
</div>
<div>
<input type="checkbox" id="poll-hide-totals" name="poll-hide-totals" value="true">
<label for="poll-hide-totals"> Hide vote counts? </label>
</div>
<div>
<input type="checkbox" id="poll-is-multiple" name="poll-is-multiple" value="true">
<label for="poll-is_multiple "> Allow multiple choice? </label>
</div>
<div>{{GeneratePollOptions | Raw}}</div>
</details>
</form>
{{end}}