Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xblock-poll
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
xblock-poll
Commits
370d79ca
Commit
370d79ca
authored
Nov 02, 2015
by
Jonathan Piacenti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reformat HTML
parent
204d1477
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
50 additions
and
40 deletions
+50
-40
poll/public/html/poll.html
+50
-40
No files found.
poll/public/html/poll.html
View file @
370d79ca
{{ js_template|safe }}
<div
class=
"poll-block themed-xblock"
data-private=
"{% if private_results %}1{% endif %}"
data-can-vote=
"{% if can_vote %}1{% endif %}"
>
<div
class=
"poll-block-form-wrapper"
>
<h3
class=
"poll-header"
>
{{display_name}}
</h3>
<form>
<div
class=
"poll-question-container"
>
{{question|safe}}
</div>
<ul
class=
"poll-answers"
>
{% for key, value in answers %}
<li
class=
"poll-answer"
>
<div
class=
"poll-input-container"
>
<input
type=
"radio"
name=
"choice"
id=
"{{url_name}}-answer-{{key}}"
value=
"{{key}}"
{%
if
choice =
=
key
%}
checked
{%
endif
%}
/>
</div>
{% if any_img %}
<div
class=
"poll-image"
>
<label
for=
"{{url_name}}-answer-{{key}}"
class=
"poll-image-label"
>
{% if value.img %}
<img
src=
"{{value.img}}"
/>
{% endif %}
</label>
</div>
{% endif %}
<label
class=
"poll-answer-text"
for=
"{{url_name}}-answer-{{key}}"
>
{{value.label|safe}}
</label>
</li>
{% endfor %}
</ul>
<input
class=
"input-main"
type=
"button"
name=
"poll-submit"
value=
"{% if choice %}Resubmit{% else %}Submit{% endif %}"
disabled
/>
</form>
<div
class=
"poll-voting-thanks{% if not choice or can_vote %} poll-hidden{% endif %}"
><span>
Thank you for your submission!
</span></div>
<div
class=
"poll-submissions-count poll-hidden"
>
You have used
<span
class=
"poll-current-count"
>
{{ submissions_count }}
</span>
out of
<span
class=
"poll-max-submissions"
>
{{ max_submissions }}
</span>
submissions.
<div
class=
"poll-block themed-xblock"
data-private=
"{% if private_results %}1{% endif %}"
data-can-vote=
"{% if can_vote %}1{% endif %}"
>
<div
class=
"poll-block-form-wrapper"
>
<h3
class=
"poll-header"
>
{{ display_name }}
</h3>
<form>
<div
class=
"poll-question-container"
>
{{ question|safe }}
</div>
{% if feedback %}
<ul
class=
"poll-answers"
>
{% for key, value in answers %}
<li
class=
"poll-answer"
>
<div
class=
"poll-input-container"
>
<input
type=
"radio"
name=
"choice"
id=
"{{ url_name }}-answer-{{ key }}"
value=
"{{ key }}"
{%
if
choice =
=
key
%}
checked
{%
endif
%}
/>
</div>
{% if any_img %}
<div
class=
"poll-image"
>
<label
for=
"{{ url_name }}-answer-{{ key }}"
class=
"poll-image-label"
>
{% if value.img %}
<img
src=
"{{ value.img }}"
/>
{% endif %}
</label>
</div>
{% endif %}
<label
class=
"poll-answer-text"
for=
"{{ url_name }}-answer-{{ key }}"
>
{{ value.label|safe }}
</label>
</li>
{% endfor %}
</ul>
<input
class=
"input-main"
type=
"button"
name=
"poll-submit"
value=
"{% if choice %}Resubmit{% else %}Submit{% endif %}"
disabled
/>
</form>
<div
class=
"poll-voting-thanks
{% if not choice or can_vote %}poll-hidden{% endif %}"
>
<span>
Thank you for your submission!
</span>
</div>
<div
class=
"poll-submissions-count poll-hidden"
>
You have used
<span
class=
"poll-current-count"
>
{{ submissions_count }}
</span>
out of
<span
class=
"poll-max-submissions"
>
{{ max_submissions }}
</span>
submissions.
</div>
{% if feedback %}
<div
class=
"poll-feedback-container{% if not choice %} poll-hidden{% endif %}"
>
<hr
/>
<h3
class=
"poll-header"
>
Feedback
</h3>
<div
class=
"poll-feedback"
>
{{feedback|safe}}
</div>
<hr/>
<h3
class=
"poll-header"
>
Feedback
</h3>
<div
class=
"poll-feedback"
>
{{ feedback|safe }}
</div>
</div>
{% endif %}
{% endif %}
{% if can_view_private_results %}
<div
class=
"view-results-button-wrapper"
><button
class=
"view-results-button"
>
View results
</button></div>
<div
class=
"view-results-button-wrapper"
>
<button
class=
"view-results-button"
>
View results
</button>
</div>
{% endif %}
</div>
</div>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment