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
d577b5bc
Commit
d577b5bc
authored
Jun 10, 2015
by
Sven Marnach
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Address further accessibility review notes.
parent
ae31e802
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
3 deletions
+10
-3
poll/public/handlebars/poll_studio.handlebars
+3
-0
poll/public/html/poll.html
+1
-1
poll/public/html/survey.html
+6
-2
No files found.
poll/public/handlebars/poll_studio.handlebars
View file @
d577b5bc
...
@@ -17,6 +17,9 @@
...
@@ -17,6 +17,9 @@
{{/if}}
{{/if}}
<
/div
>
<
/div
>
<
span
class
=
"tip setting-help"
>
<
span
class
=
"tip setting-help"
>
You
can
make
limited
use
of
Markdown
in
answer
texts
,
preferably
only
bold
and
italics
.
<
/span
>
<
span
class
=
"tip setting-help"
>
{{#if
image
}}
{{#if
image
}}
This
must
have
an
image
URL
or
text
,
and
can
have
both
.
If
you
add
an
image
,
an
alternate
text
that
describes
This
must
have
an
image
URL
or
text
,
and
can
have
both
.
If
you
add
an
image
,
an
alternate
text
that
describes
the
image
in
a
way
that
would
allow
someone
to
answer
the
poll
if
the
image
did
not
load
is
strongly
encouraged
.
the
image
in
a
way
that
would
allow
someone
to
answer
the
poll
if
the
image
did
not
load
is
strongly
encouraged
.
...
...
poll/public/html/poll.html
View file @
d577b5bc
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
{% if value.img %}
{% if value.img %}
<div
class=
"poll-image"
>
<div
class=
"poll-image"
>
<label
for=
"{{url_name}}-answer-{{key}}"
class=
"poll-image-label"
>
<label
for=
"{{url_name}}-answer-{{key}}"
class=
"poll-image-label"
>
<img
src=
"{{value.img}}"
alt=
"{{value.img_alt}}"
/>
<img
src=
"{{value.img}}"
alt=
"{{value.img_alt
|default_if_none:''
}}"
/>
</label>
</label>
</div>
</div>
{% endif %}
{% endif %}
...
...
poll/public/html/survey.html
View file @
d577b5bc
...
@@ -18,14 +18,18 @@
...
@@ -18,14 +18,18 @@
<td
class=
"survey-question"
>
<td
class=
"survey-question"
>
{% if question.img %}
{% if question.img %}
<div
class=
"poll-image-td"
>
<div
class=
"poll-image-td"
>
<img
src=
"{{question.img}}"
alt=
"
question.img_alt
"
/>
<img
src=
"{{question.img}}"
alt=
"
{{question.img_alt|default_if_none:''}}
"
/>
</div>
</div>
{% endif %}
{% endif %}
{{question.label|safe}}
{{question.label|safe}}
</td>
</td>
{% for answer,
answer_details
in answers %}
{% for answer,
label
in answers %}
<td
class=
"survey-option"
>
<td
class=
"survey-option"
>
<input
type=
"radio"
name=
"{{key}}"
value=
"{{answer}}"
{%
if
question
.
choice =
=
answer
%}
checked
{%
endif
%}
/>
<input
type=
"radio"
name=
"{{key}}"
value=
"{{answer}}"
{%
if
question
.
choice =
=
answer
%}
checked
{%
endif
%}
/>
<label>
<input
type=
"radio"
name=
"{{key}}"
value=
"{{answer}}"
{%
if
question
.
choice =
=
answer
%}
checked
{%
endif
%}
/>
<span
class=
"sr"
>
{{label}}
</span>
</label>
</td>
</td>
{% endfor %}
{% endfor %}
</tr>
</tr>
...
...
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