Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
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
edx-platform
Commits
d804f637
Commit
d804f637
authored
Jan 14, 2015
by
Jonathan Piacenti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add wrapper to discussion topic dropdown.
parent
e28dde32
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
35 deletions
+39
-35
common/static/coffee/spec/discussion/discussion_spec_helper.coffee
+20
-18
common/templates/discussion/_underscore_templates.html
+19
-17
No files found.
common/static/coffee/spec/discussion/discussion_spec_helper.coffee
View file @
d804f637
...
...
@@ -405,24 +405,26 @@ browser and pasting the output. When that file changes, this one should be rege
</script>
<script aria-hidden="true" type="text/template" id="topic-template">
<div class="field-label">
<span class="field-label-text">Topic Area:</span><div class="field-input post-topic">
<a href="#" class="post-topic-button">
<span class="sr">Discussion topics; current selection is: </span>
<span class="js-selected-topic"></span>
<span class="drop-arrow" aria-hidden="true">▾</span>
</a>
<div class="topic-menu-wrapper">
<label class="topic-filter-label">
<span class="sr">Filter topics</span>
<input type="text" class="topic-filter-input" placeholder="Filter topics">
</label>
<ul class="topic-menu" role="menu"><%= topics_html %></ul>
</div>
</div>
</div><span class="field-help">
Add your post to a relevant topic to help others find it.
</span>
<div class="topic-wrapper">
<div class="field-label">
<span class="field-label-text">Topic Area:</span><div class="field-input post-topic">
<a href="#" class="post-topic-button">
<span class="sr">Discussion topics; current selection is: </span>
<span class="js-selected-topic"></span>
<span class="drop-arrow" aria-hidden="true">▾</span>
</a>
<div class="topic-menu-wrapper">
<label class="topic-filter-label">
<span class="sr">Filter topics</span>
<input type="text" class="topic-filter-input" placeholder="Filter topics">
</label>
<ul class="topic-menu" role="menu"><%= topics_html %></ul>
</div>
</div>
</div><span class="field-help">
Add your post to a relevant topic to help others find it.
</span>
</div>
</script>
...
...
common/templates/discussion/_underscore_templates.html
View file @
d804f637
...
...
@@ -486,24 +486,26 @@ from django_comment_client.permissions import has_permission
<script
aria-hidden=
"true"
type=
"text/template"
id=
"topic-template"
>
##
Using
div
here
instead
of
label
because
we
are
using
a
non
-
native
control
<
div
class
=
"field-label"
>
<
span
class
=
"field-label-text"
>
$
{
_
(
"Topic Area:"
)}
<
/span><div class="field-input post-topic"
>
<
a
href
=
"#"
class
=
"post-topic-button"
>
<
span
class
=
"sr"
>
$
{
_
(
"Discussion topics; current selection is: "
)}
<
/span
>
<
span
class
=
"js-selected-topic"
><
/span
>
<
span
class
=
"drop-arrow"
aria
-
hidden
=
"true"
>
▾
<
/span
>
<
/a
>
<
div
class
=
"topic-menu-wrapper"
>
<
label
class
=
"topic-filter-label"
>
<
span
class
=
"sr"
>
$
{
_
(
"Filter topics"
)}
<
/span
>
<
input
aria
-
describedby
=
"field_help_topic_area"
type
=
"text"
class
=
"topic-filter-input"
placeholder
=
"${_('Filter topics')}"
>
<
/label
>
<
ul
class
=
"topic-menu"
role
=
"menu"
>
$
{
'<%= topics_html %>'
}
<
/ul
>
<
div
class
=
"topic-wrapper"
>
<
div
class
=
"field-label"
>
<
span
class
=
"field-label-text"
>
$
{
_
(
"Topic Area:"
)}
<
/span><div class="field-input post-topic"
>
<
a
href
=
"#"
class
=
"post-topic-button"
>
<
span
class
=
"sr"
>
$
{
_
(
"Discussion topics; current selection is: "
)}
<
/span
>
<
span
class
=
"js-selected-topic"
><
/span
>
<
span
class
=
"drop-arrow"
aria
-
hidden
=
"true"
>
▾
<
/span
>
<
/a
>
<
div
class
=
"topic-menu-wrapper"
>
<
label
class
=
"topic-filter-label"
>
<
span
class
=
"sr"
>
$
{
_
(
"Filter topics"
)}
<
/span
>
<
input
aria
-
describedby
=
"field_help_topic_area"
type
=
"text"
class
=
"topic-filter-input"
placeholder
=
"${_('Filter topics')}"
>
<
/label
>
<
ul
class
=
"topic-menu"
role
=
"menu"
>
$
{
'<%= topics_html %>'
}
<
/ul
>
<
/div
>
<
/div
>
<
/div
>
<
/div><span class="field-help" id="field_help_topic_area"
>
$
{
_
(
"Add your post to a relevant topic to help others find it."
)}
<
/
span
>
<
/div><span class="field-help" id="field_help_topic_area"
>
$
{
_
(
"Add your post to a relevant topic to help others find it."
)}
<
/span
>
<
/
div
>
</script>
<
%
def
name=
"primaryAction(action_class, icon, sr_label, unchecked_label, checked_label)"
>
...
...
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