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
ff56102d
Unverified
Commit
ff56102d
authored
Nov 02, 2017
by
Tyler Hallada
Committed by
GitHub
Nov 02, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #16411 from edx/thallada/ret-section-highlights-copy-edit
Edit highlights modal copy
parents
e26f0ed0
1ba564c3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
32 deletions
+36
-32
cms/static/js/views/modals/course_outline_modals.js
+3
-5
cms/static/sass/elements/_modal-window.scss
+1
-1
cms/static/sass/views/_outline.scss
+9
-12
cms/templates/js/highlights-editor.underscore
+23
-14
No files found.
cms/static/js/views/modals/course_outline_modals.js
View file @
ff56102d
...
...
@@ -225,11 +225,9 @@ define(['jquery', 'backbone', 'underscore', 'gettext', 'js/views/baseview',
getIntroductionMessage
:
function
()
{
return
StringUtils
.
interpolate
(
gettext
(
'The highlights you provide here are messaged (i.e., emailed) to learners. Each {item}
\'
s '
+
'highlights are emailed at the time that we expect the learner to start working on that {item}. '
+
'At this time, we assume that each {item} will take 1 week to complete.'
),
{
item
:
this
.
options
.
xblockType
}
'Enter 3-5 highlights to include in the email message that learners receive for '
+
'this section (250 character limit).'
)
);
},
...
...
cms/static/sass/elements/_modal-window.scss
View file @
ff56102d
...
...
@@ -41,7 +41,7 @@
@extend
%t-copy-sub1
;
margin
:
0
0
$baseline
0
;
color
:
$gray
;
color
:
$gray
-d2
;
}
.message-status
{
...
...
cms/static/sass/views/_outline.scss
View file @
ff56102d
...
...
@@ -655,15 +655,16 @@
width
:
18px
;
}
.highlight-input-text
{
width
:
100%
;
margin-bottom
:
(
$baseline
/
4
);
margin-top
:
(
$baseline
/
4
);
}
.highlights-section-modal
{
.highlight-input-text
{
width
:
100%
;
margin-bottom
:
(
$baseline
/
4
);
margin-top
:
(
$baseline
/
4
);
}
.highlights-description
{
font-size
:
80%
;
font-weight
:
bolder
;
.highlight-input-label
{
font-weight
:
600
;
}
}
// outline: edit item settings
...
...
@@ -755,10 +756,6 @@
.bulkpublish-section-modal
,
.bulkpublish-subsection-modal
,
.bulkpublish-unit-modal
{
.modal-introduction
{
color
:
$gray-d2
;
}
.modal-section
.outline-bulkpublish
{
max-height
:
(
$baseline
*
20
);
overflow-y
:
auto
;
...
...
cms/templates/js/highlights-editor.underscore
View file @
ff56102d
...
...
@@ -2,25 +2,34 @@
<h3 class="modal-section-title" id="highlights_label"><%- gettext('Section Highlights') %></h3>
<div class="modal-section-content block-highlights">
<div role="group" class="list-fields" aria-labelledby="highlights_label">
<p class='field-message highlights-description' id='highlights_description'>
<%- gettext('Please enter 3-5 highlights to be sent as separate bullet points in the message.') %>
</p>
<%
var max_number_of_highlights = 5;
%>
<% _.each(highlights, function(highlight){ %>
<input
class="input input-text highlight-input-text"
type="text" maxlength="250" aria-describedby="highlights_description"
value="<%= _.escape(highlight) %>"
/>
<% _.each(highlights, function(highlight, i){ %>
<label class="highlight-input-label">
<%- edx.StringUtils.interpolate(
gettext('Highlight {highlight_index}'),
{ highlight_index: i + 1 }
) %>
<input
class="input input-text highlight-input-text"
type="text" maxlength="250" aria-describedby="highlights_description"
value="<%= _.escape(highlight) %>"
/>
</label>
<% }); %>
<% for (i = highlights.length; i < max_number_of_highlights; i++) { %>
<input
class="input input-text highlight-input-text"
type="text" maxlength="250" aria-describedby="highlights_description"
placeholder="<%- gettext('A highlight to look forward to this week.') %>"
/>
<label class="highlight-input-label">
<%- edx.StringUtils.interpolate(
gettext('Highlight {highlight_index}'),
{ highlight_index: i + 1 }
) %>
<input
class="input input-text highlight-input-text"
type="text" maxlength="250" aria-describedby="highlights_description"
placeholder="<%- gettext('A highlight to look forward to this week.') %>"
/>
</label>
<% } %>
</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