diff --git a/apps/spreadsheeteditor/main/app/view/ProtectedRangesEditDlg.js b/apps/spreadsheeteditor/main/app/view/ProtectedRangesEditDlg.js index 99862e8d8f..c7aa7b1d7c 100644 --- a/apps/spreadsheeteditor/main/app/view/ProtectedRangesEditDlg.js +++ b/apps/spreadsheeteditor/main/app/view/ProtectedRangesEditDlg.js @@ -92,17 +92,11 @@ define([ '', '', '
', - '<% if (canRequestUsers) { %>', '
', - '', + '', '
', '
', '
', - '<% } else { %>', - '
', - '', - '
', - '<% } %>', '' ].join(''); @@ -574,7 +568,8 @@ define([ textCanView: 'Can view', textRemove: 'Remove', textCantView: 'Can\'t view', - textAnyone: 'Anyone' + textAnyone: 'Anyone', + txtAccess: 'Access to range' }, SSE.Views.ProtectedRangesEditDlg || {})); }); diff --git a/apps/spreadsheeteditor/main/app/view/ProtectedRangesManagerDlg.js b/apps/spreadsheeteditor/main/app/view/ProtectedRangesManagerDlg.js index fdb8b4f182..f09150ef12 100644 --- a/apps/spreadsheeteditor/main/app/view/ProtectedRangesManagerDlg.js +++ b/apps/spreadsheeteditor/main/app/view/ProtectedRangesManagerDlg.js @@ -103,13 +103,13 @@ define([ 'text!spreadsheeteditor/main/app/template/ProtectedRangesManagerDlg.te headers: [ {name: this.textTitle, width: 184}, {name: this.textRange, width: 191}, - {name: this.textYouCan, width: 70}, + {name: this.txtAccess, width: 70}, ], itemTemplate: _.template([ '
', '
<%= Common.Utils.String.htmlEncode(name) %>
', '
<%= Common.Utils.String.htmlEncode(range) %>
', - '
<% if (canEdit) { %>', me.txtEdit, '<% } else { %>', me.txtView, '<% } %>
', + '
<% if (type===Asc.c_oSerUserProtectedRangeType.edit) { %>', me.txtEdit, '<% } else if (type===Asc.c_oSerUserProtectedRangeType.view) { %>', me.txtView, '<% } else { %>', me.txtDenied, '<% } %>
', '<% if (lock) { %>', '
<%=Common.Utils.String.htmlEncode(lockuser)%>
', '<% } %>', @@ -174,14 +174,18 @@ define([ 'text!spreadsheeteditor/main/app/template/ProtectedRangesManagerDlg.te currentId = this.currentUser.id; for (var i=0; iAnyone who has edit access to the spreadsheet will be able to edit content in the range.", "SSE.Views.ProtectedRangesManagerDlg.warnDeleteRanges": "Are you sure you want to delete the protected ranges?
Anyone who has edit access to the spreadsheet will be able to edit content in those ranges.", + "SSE.Views.ProtectedRangesManagerDlg.txtAccess": "Access", "SSE.Views.ProtectRangesDlg.guestText": "Guest", "SSE.Views.ProtectRangesDlg.lockText": "Locked", "SSE.Views.ProtectRangesDlg.textDelete": "Delete",