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
3244fc0d
Commit
3244fc0d
authored
Nov 20, 2017
by
Sofiya Semenova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Educator 1560 - Clean up labelling in the Discussion Add Post form
parent
139fa895
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
38 deletions
+35
-38
common/static/common/templates/discussion/thread-type.underscore
+25
-27
common/static/common/templates/discussion/topic.underscore
+9
-9
lms/static/sass/discussion/views/_create-edit-post.scss
+1
-2
No files found.
common/static/common/templates/discussion/thread-type.underscore
View file @
3244fc0d
<div class="post-field">
<label class="field-label">
<fieldset>
<legend class="field-label">
<span class="field-label-text">
<% // Translators: This is the label for a control to select a forum post type %>
<%- gettext("Post type") %>
</span>
<div class="field-help" id="field_help_post_type">
<%- gettext("Questions raise issues that need answers. Discussions share ideas and start conversations. (Required)") %>
</div>
<div class="field-label">
<fieldset class="field-input">
<legend class="sr"><%- gettext("Post type") %></legend>
<label for="<%= form_id %>-post-type-question" class="post-type-label">
<input aria-describedby="field_help_post_type" type="radio" name="<%= form_id %>-post-type" class="field-input input-radio" id="<%= form_id %>-post-type-question" value="question">
<span class="field-input-label">
<span class="icon fa fa-question" aria-hidden="true"></span>
<% // Translators: This is a forum post type %>
<%- gettext("Question") %>
</span>
</label>
<label for="<%= form_id %>-post-type-discussion" class="post-type-label">
<input aria-describedby="field_help_post_type" type="radio" name="<%= form_id %>-post-type" class="field-input input-radio" id="<%= form_id %>-post-type-discussion" value="discussion" checked>
<span class="field-input-label">
<span class="icon fa fa-comments" aria-hidden="true"></span>
<% // Translators: This is a forum post type %>
<%- gettext("Discussion") %>
</span>
</label>
</fieldset>
</div>
</label>
</div>
</legend>
<div class="field-help" id="field_help_post_type">
<%- gettext("Questions raise issues that need answers. Discussions share ideas and start conversations. (Required)") %>
</div>
<div class="field-label">
<label for="<%= form_id %>-post-type-question" class="post-type-label">
<input aria-describedby="field_help_post_type" type="radio" name="<%= form_id %>-post-type" class="field-input input-radio" id="<%= form_id %>-post-type-question" value="question">
<span class="field-input-label">
<span class="icon fa fa-question" aria-hidden="true"></span>
<% // Translators: This is a forum post type %>
<%- gettext("Question") %>
</span>
</label>
<label for="<%= form_id %>-post-type-discussion" class="post-type-label">
<input aria-describedby="field_help_post_type" type="radio" name="<%= form_id %>-post-type" class="field-input input-radio" id="<%= form_id %>-post-type-discussion" value="discussion" checked>
<span class="field-input-label">
<span class="icon fa fa-comments" aria-hidden="true"></span>
<% // Translators: This is a forum post type %>
<%- gettext("Discussion") %>
</span>
</label>
</div>
</fieldset>
common/static/common/templates/discussion/topic.underscore
View file @
3244fc0d
<
label
class="field-label">
<
span
class="field-label-text">
<
div
class="field-label">
<
label for="topic"
class="field-label-text">
<%- gettext("Topic area") %>
</
span
>
</
label
>
<div class="field-help" id="field_help_topic_area">
<%- gettext("Add your post to a relevant topic to help others find it. (Required)") %>
</div>
<div class="field-input"
>
<select class="post-topic field-input" aria-describedby="field_help_topic_area wrapper-visibility-message" required
>
<%= edx.HtmlUtils.ensureHtml(topics_html) %
>
<
/select
>
</
div
>
</
label
>
</div
>
<div class="field-input"
>
<select id="topic" class="post-topic field-input" aria-describedby="field_help_topic_area wrapper-visibility-message" required
>
<
%= edx.HtmlUtils.ensureHtml(topics_html) %
>
</
select
>
</
div
>
lms/static/sass/discussion/views/_create-edit-post.scss
View file @
3244fc0d
...
...
@@ -47,7 +47,6 @@
}
.field-label-text
{
margin
:
$baseline
0
0
0
;
display
:
block
;
}
...
...
@@ -67,7 +66,7 @@
line-height
:
1
.5
;
&
#field_help_post_type
{
@include
margin
(
$baseline
/
2
,
0
,
$baseline
*
0
.75
,
0
);
@include
margin
(
$baseline
/
4
,
0
,
$baseline
*
0
.75
,
0
);
}
&
#new-post-editor-description
{
...
...
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