-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
27a9cfc
commit ec72151
Showing
9 changed files
with
53 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,50 @@ | ||
<form class="form" id="pollCreator"> | ||
<div id="pollErrorBox" class="alert alert-danger hidden"></div> | ||
|
||
<div class="form-group"> | ||
<label for="pollInputTitle">[[poll:poll_title]]</label> | ||
<div class="mb-3"> | ||
<label class="form-label" for="pollInputTitle">[[poll:poll_title]]</label> | ||
<input type="text" name="settings.title" id="pollInputTitle" value="{poll.settings.title}" placeholder="[[poll:poll_title_placeholder]]" class="form-control"> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<label for="pollInputOptions">[[poll:options_title]]</label> | ||
<div class="mb-3"> | ||
<label class="form-label" for="pollInputOptions">[[poll:options_title]]</label> | ||
<!-- IF poll.options.length --> | ||
<!-- BEGIN poll.options --> | ||
<input type="text" name="options" id="pollInputOptions" value="{@value}" class="form-control"/> | ||
<input type="text" name="options" id="pollInputOptions" value="{@value}" class="form-control mb-2"/> | ||
<!-- END poll.options --> | ||
<!-- ELSE --> | ||
<input type="text" name="options" id="pollInputOptions" class="form-control"/> | ||
<input type="text" name="options" id="pollInputOptions" class="form-control mb-2"/> | ||
<!-- ENDIF poll.options.length --> | ||
<button type="button" id="pollAddOption" class="btn btn-primary btn-sm btn-block">[[poll:options_add]]</button> | ||
</div> | ||
|
||
<hr> | ||
|
||
<div class="form-group"> | ||
<label for="pollInputAmount">[[poll:max_votes]]</label> | ||
<div class="mb-3"> | ||
<label class="form-label" for="pollInputAmount">[[poll:max_votes]]</label> | ||
<input type="number" name="settings.maxvotes" id="pollInputAmount" value="{poll.settings.maxvotes}" | ||
min="1" max="10" step="1" placeholder="[[poll:max_votes_placeholder]]" class="form-control"> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<label for="pollDisallowVoteUpdate"> | ||
<input type="checkbox" name="settings.disallowVoteUpdate" id="pollDisallowVoteUpdate" {{{if poll.settings.disallowVoteUpdate}}}checked{{{end}}}> | ||
[[poll:disallow_vote_update]] | ||
</label> | ||
<div class="mb-3"> | ||
<div class="form-check"> | ||
<label class="form-check-label" for="pollDisallowVoteUpdate">[[poll:disallow_vote_update]]</label> | ||
<input class="form-check-input" type="checkbox" name="settings.disallowVoteUpdate" id="pollDisallowVoteUpdate" {{{if poll.settings.disallowVoteUpdate}}}checked{{{end}}}> | ||
</div> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<label for="pollInputEnd">[[poll:auto_end_title]]</label> | ||
|
||
<div class="mb-3"> | ||
<label class="form-label" for="pollInputEnd">[[poll:auto_end_title]]</label> | ||
<div class="input-group date flatpickr"> | ||
<input id="pollInputEnd" placeholder="[[poll:auto_end_placeholder]]" name="settings.end" class="form-control" value="{poll.settings.end}" data-input> | ||
<a class="input-group-addon" data-toggle><i class="fa fa-calendar"></i></a> | ||
<a class="input-group-text" data-toggle><i class="fa fa-calendar"></i></a> | ||
</div> | ||
<p class="help-block">[[poll:auto_end_help]]</p> | ||
<p class="form-text">[[poll:auto_end_help]]</p> | ||
</div> | ||
|
||
<!-- IF isRedactor --> | ||
{{{ if isRedactor }}} | ||
<div class="alert alert-warning" role="alert"> | ||
[[poll:warning.redactor]] | ||
</div> | ||
<!-- ENDIF isRedactor --> | ||
{{{ end }}} | ||
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,6 @@ | ||
<h2>{voteCount} [[poll:vote_count]]</h2> | ||
<!-- BEGIN votes --> | ||
<a href="{config.relative_path}/user/{votes.userslug}" class="poll-result-details"> | ||
<!-- IF votes.picture --> | ||
<img class="poll-result-avatar" title="{votes.username}" src="{votes.picture}"> | ||
<!-- ELSE --> | ||
<div class="poll-result-avatar user-icon" title="{votes.username}" style="background-color: {votes.icon:bgColor};">{votes.icon:text}</div> | ||
<!-- ENDIF votes.picture --> | ||
{buildAvatar(votes, "24px", true)} | ||
</a> | ||
<!-- END votes --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters