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
1ba564c3
Commit
1ba564c3
authored
7 years ago
by
Tyler Hallada
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Edit highlights modal copy
Make modal intro text darker. Make intro message dark in the base modal scss
parent
908d5f91
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 @
1ba564c3
...
@@ -225,11 +225,9 @@ define(['jquery', 'backbone', 'underscore', 'gettext', 'js/views/baseview',
...
@@ -225,11 +225,9 @@ define(['jquery', 'backbone', 'underscore', 'gettext', 'js/views/baseview',
getIntroductionMessage
:
function
()
{
getIntroductionMessage
:
function
()
{
return
StringUtils
.
interpolate
(
return
StringUtils
.
interpolate
(
gettext
(
gettext
(
'The highlights you provide here are messaged (i.e., emailed) to learners. Each {item}
\'
s '
+
'Enter 3-5 highlights to include in the email message that learners receive for '
+
'highlights are emailed at the time that we expect the learner to start working on that {item}. '
+
'this section (250 character limit).'
'At this time, we assume that each {item} will take 1 week to complete.'
)
),
{
item
:
this
.
options
.
xblockType
}
);
);
},
},
...
...
This diff is collapsed.
Click to expand it.
cms/static/sass/elements/_modal-window.scss
View file @
1ba564c3
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
@extend
%t-copy-sub1
;
@extend
%t-copy-sub1
;
margin
:
0
0
$baseline
0
;
margin
:
0
0
$baseline
0
;
color
:
$gray
;
color
:
$gray
-d2
;
}
}
.message-status
{
.message-status
{
...
...
This diff is collapsed.
Click to expand it.
cms/static/sass/views/_outline.scss
View file @
1ba564c3
...
@@ -654,15 +654,16 @@
...
@@ -654,15 +654,16 @@
width
:
18px
;
width
:
18px
;
}
}
.highlight-input-text
{
.highlights-section-modal
{
width
:
100%
;
.highlight-input-text
{
margin-bottom
:
(
$baseline
/
4
);
width
:
100%
;
margin-top
:
(
$baseline
/
4
);
margin-bottom
:
(
$baseline
/
4
);
}
margin-top
:
(
$baseline
/
4
);
}
.highlights-description
{
.highlight-input-label
{
font-size
:
80%
;
font-weight
:
600
;
font-weight
:
bolder
;
}
}
}
// outline: edit item settings
// outline: edit item settings
...
@@ -754,10 +755,6 @@
...
@@ -754,10 +755,6 @@
.bulkpublish-section-modal
,
.bulkpublish-section-modal
,
.bulkpublish-subsection-modal
,
.bulkpublish-subsection-modal
,
.bulkpublish-unit-modal
{
.bulkpublish-unit-modal
{
.modal-introduction
{
color
:
$gray-d2
;
}
.modal-section
.outline-bulkpublish
{
.modal-section
.outline-bulkpublish
{
max-height
:
(
$baseline
*
20
);
max-height
:
(
$baseline
*
20
);
overflow-y
:
auto
;
overflow-y
:
auto
;
...
...
This diff is collapsed.
Click to expand it.
cms/templates/js/highlights-editor.underscore
View file @
1ba564c3
...
@@ -2,25 +2,34 @@
...
@@ -2,25 +2,34 @@
<h3 class="modal-section-title" id="highlights_label"><%- gettext('Section Highlights') %></h3>
<h3 class="modal-section-title" id="highlights_label"><%- gettext('Section Highlights') %></h3>
<div class="modal-section-content block-highlights">
<div class="modal-section-content block-highlights">
<div role="group" class="list-fields" aria-labelledby="highlights_label">
<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;
var max_number_of_highlights = 5;
%>
%>
<% _.each(highlights, function(highlight){ %>
<% _.each(highlights, function(highlight, i){ %>
<input
<label class="highlight-input-label">
class="input input-text highlight-input-text"
<%- edx.StringUtils.interpolate(
type="text" maxlength="250" aria-describedby="highlights_description"
gettext('Highlight {highlight_index}'),
value="<%= _.escape(highlight) %>"
{ 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++) { %>
<% for (i = highlights.length; i < max_number_of_highlights; i++) { %>
<input
<label class="highlight-input-label">
class="input input-text highlight-input-text"
<%- edx.StringUtils.interpolate(
type="text" maxlength="250" aria-describedby="highlights_description"
gettext('Highlight {highlight_index}'),
placeholder="<%- gettext('A highlight to look forward to this week.') %>"
{ 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>
</div>
</div>
...
...
This diff is collapsed.
Click to expand it.
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