edit template DE and PE
This commit is contained in:
parent
7af78ef0d5
commit
d8cb7fb985
|
@ -867,7 +867,7 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
template: _.template([
|
template: _.template([
|
||||||
'<h3 style="margin-top: 20px;"><%= scope.fromBlankText %></h3><hr noshade />',
|
/* '<h3 style="margin-top: 20px;"><%= scope.fromBlankText %></h3><hr noshade />',
|
||||||
'<div class="blank-document">',
|
'<div class="blank-document">',
|
||||||
'<div class="blank-document-btn">',
|
'<div class="blank-document-btn">',
|
||||||
'<svg class="btn-blank-format">',
|
'<svg class="btn-blank-format">',
|
||||||
|
@ -878,15 +878,17 @@ define([
|
||||||
'<h3><%= scope.newDocumentText %></h3>',
|
'<h3><%= scope.newDocumentText %></h3>',
|
||||||
'<%= scope.newDescriptionText %>',
|
'<%= scope.newDescriptionText %>',
|
||||||
'</div>',
|
'</div>',
|
||||||
'</div>',
|
'</div>',*/
|
||||||
'<h3><%= scope.fromTemplateText %></h3><hr noshade />',
|
'<h3 style="margin-top: 20px;"><%= scope.txtCreateNew %></h3>',
|
||||||
'<div class="thumb-list">',
|
'<div class="thumb-list">',
|
||||||
'<% _.each(docs, function(item) { %>',
|
'<% _.each(docs, function(item, index) { %>',
|
||||||
'<div class="thumb-wrap" template="<%= item.url %>">',
|
'<div class="thumb-wrap" template="<%= item.url %>">',
|
||||||
'<div class="thumb"',
|
'<div class="thumb" ',
|
||||||
'<% if (!_.isEmpty(item.image)) { %> ',
|
'<% if(index == 0) { ' +
|
||||||
|
'print(\"><svg class=\'btn-blank-format\'><use xlink:href=\'#svg-format-blank\'></use></svg>\")' +
|
||||||
|
' } else if (!_.isEmpty(item.image)) {%> ',
|
||||||
' style="background-image: url(<%= item.image %>);">',
|
' style="background-image: url(<%= item.image %>);">',
|
||||||
'<% } else { ' +
|
' <%} else {' +
|
||||||
'print(\"><svg class=\'btn-blank-format\'><use xlink:href=\'#svg-file-template\'></use></svg>\")' +
|
'print(\"><svg class=\'btn-blank-format\'><use xlink:href=\'#svg-file-template\'></use></svg>\")' +
|
||||||
' } %>',
|
' } %>',
|
||||||
'</div>',
|
'</div>',
|
||||||
|
@ -938,7 +940,8 @@ define([
|
||||||
newDocumentText : 'New Text Document',
|
newDocumentText : 'New Text Document',
|
||||||
newDescriptionText : 'Create a new blank text document which you will be able to style and format after it is created during the editing. Or choose one of the templates to start a document of a certain type or purpose where some styles have already been pre-applied.',
|
newDescriptionText : 'Create a new blank text document which you will be able to style and format after it is created during the editing. Or choose one of the templates to start a document of a certain type or purpose where some styles have already been pre-applied.',
|
||||||
fromTemplateText : 'From Template',
|
fromTemplateText : 'From Template',
|
||||||
noTemplatesText : 'There are no templates'
|
noTemplatesText : 'There are no templates',
|
||||||
|
txtCreateNew : 'Create New'
|
||||||
}, DE.Views.FileMenuPanels.CreateNew || {}));
|
}, DE.Views.FileMenuPanels.CreateNew || {}));
|
||||||
|
|
||||||
DE.Views.FileMenuPanels.DocumentInfo = Common.UI.BaseView.extend(_.extend({
|
DE.Views.FileMenuPanels.DocumentInfo = Common.UI.BaseView.extend(_.extend({
|
||||||
|
|
|
@ -765,26 +765,16 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
template: _.template([
|
template: _.template([
|
||||||
'<h3 style="margin-top: 20px;"><%= scope.fromBlankText %></h3><hr noshade />',
|
'<h3 style="margin-top: 20px;"><%= scope.txtCreateNew %></h3>',
|
||||||
'<div class="blank-document">',
|
|
||||||
'<div class="blank-document-btn">',
|
|
||||||
'<svg class="btn-blank-format">',
|
|
||||||
'<use xlink:href="#svg-format-blank"></use>',
|
|
||||||
'</svg>',
|
|
||||||
'</div>',
|
|
||||||
'<div class="blank-document-info">',
|
|
||||||
'<h3><%= scope.newDocumentText %></h3>',
|
|
||||||
'<%= scope.newDescriptionText %>',
|
|
||||||
'</div>',
|
|
||||||
'</div>',
|
|
||||||
'<h3><%= scope.fromTemplateText %></h3><hr noshade />',
|
|
||||||
'<div class="thumb-list">',
|
'<div class="thumb-list">',
|
||||||
'<% _.each(docs, function(item) { %>',
|
'<% _.each(docs, function(item, index) { %>',
|
||||||
'<div class="thumb-wrap" template="<%= item.url %>">',
|
'<div class="thumb-wrap" template="<%= item.url %>">',
|
||||||
'<div class="thumb"',
|
'<div class="thumb" ',
|
||||||
'<% if (!_.isEmpty(item.image)) { %> ',
|
'<% if(index == 0) { ' +
|
||||||
|
'print(\"><svg class=\'btn-blank-format\'><use xlink:href=\'#svg-format-blank\'></use></svg>\")' +
|
||||||
|
' } else if (!_.isEmpty(item.image)) {%> ',
|
||||||
' style="background-image: url(<%= item.image %>);">',
|
' style="background-image: url(<%= item.image %>);">',
|
||||||
'<% } else { ' +
|
' <%} else {' +
|
||||||
'print(\"><svg class=\'btn-blank-format\'><use xlink:href=\'#svg-file-template\'></use></svg>\")' +
|
'print(\"><svg class=\'btn-blank-format\'><use xlink:href=\'#svg-file-template\'></use></svg>\")' +
|
||||||
' } %>',
|
' } %>',
|
||||||
'</div>',
|
'</div>',
|
||||||
|
@ -836,7 +826,8 @@ define([
|
||||||
newDocumentText : 'New Presentation',
|
newDocumentText : 'New Presentation',
|
||||||
newDescriptionText : 'Create a new blank presentation which you will be able to style and format after it is created during the editing. Or choose one of the templates to start a document of a certain type or purpose where some styles have already been pre-applied.',
|
newDescriptionText : 'Create a new blank presentation which you will be able to style and format after it is created during the editing. Or choose one of the templates to start a document of a certain type or purpose where some styles have already been pre-applied.',
|
||||||
fromTemplateText : 'From Template',
|
fromTemplateText : 'From Template',
|
||||||
noTemplatesText : 'There are no templates'
|
noTemplatesText : 'There are no templates',
|
||||||
|
txtCreateNew : 'Create New'
|
||||||
}, PE.Views.FileMenuPanels.CreateNew || {}));
|
}, PE.Views.FileMenuPanels.CreateNew || {}));
|
||||||
|
|
||||||
PE.Views.FileMenuPanels.DocumentInfo = Common.UI.BaseView.extend(_.extend({
|
PE.Views.FileMenuPanels.DocumentInfo = Common.UI.BaseView.extend(_.extend({
|
||||||
|
|
Loading…
Reference in a new issue