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
89705f27
Commit
89705f27
authored
Jul 23, 2013
by
David Baumgold
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #461 from edx/db/change-asset-to-pdf
Change "asset" to "PDF" in textbooks interface
parents
4c3a0174
ca2bb0e8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
cms/static/js/views/textbook.js
+1
-1
cms/templates/js/edit-chapter.underscore
+1
-1
No files found.
cms/static/js/views/textbook.js
View file @
89705f27
...
...
@@ -241,7 +241,7 @@ CMS.Views.EditChapter = Backbone.View.extend({
asset_path
:
this
.
$
(
"input.chapter-asset-path"
).
val
()
});
var
msg
=
new
CMS
.
Models
.
FileUpload
({
title
:
_
.
template
(
gettext
(
"Upload a new
asset
to “<%= name %>”"
),
title
:
_
.
template
(
gettext
(
"Upload a new
PDF
to “<%= name %>”"
),
{
name
:
section
.
escape
(
'name'
)}),
message
:
"Files must be in PDF format."
});
...
...
cms/templates/js/edit-chapter.underscore
View file @
89705f27
...
...
@@ -9,6 +9,6 @@
<label for="chapter<%= order %>-asset-path"><%= gettext("Chapter Asset") %></label>
<input id="chapter<%= order %>-asset-path" name="chapter<%= order %>-asset-path" class="chapter-asset-path" placeholder="<%= _.str.sprintf(gettext("path/to/introductionToCookieBaking-CH%d.pdf"), order) %>" value="<%= asset_path %>" type="text">
<span class="tip tip-stacked"><%= gettext("upload a PDF file or provide the path to a Studio asset file") %></span>
<button class="action action-upload"><%= gettext("Upload
Asset
") %></button>
<button class="action action-upload"><%= gettext("Upload
PDF
") %></button>
</div>
<a href="" class="action action-close"><i class="icon-remove-sign"></i> <span class="sr"><%= gettext("delete chapter") %></span></a>
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