[DE PE SSE] Add headers for Print, Open recent, Access Rights panels
This commit is contained in:
parent
575adb8540
commit
0c4f046278
|
@ -1061,7 +1061,8 @@ define([
|
||||||
menu: undefined,
|
menu: undefined,
|
||||||
|
|
||||||
template: _.template([
|
template: _.template([
|
||||||
'<div id="id-recent-view" style="margin: 20px 0;"></div>'
|
'<div class="header"><%= scope.txtOpenRecent %></div>',
|
||||||
|
'<div id="id-recent-view"></div>'
|
||||||
].join('')),
|
].join('')),
|
||||||
|
|
||||||
initialize: function(options) {
|
initialize: function(options) {
|
||||||
|
@ -1072,7 +1073,7 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
render: function() {
|
render: function() {
|
||||||
this.$el.html(this.template());
|
this.$el.html(this.template({scope: this}));
|
||||||
|
|
||||||
this.viewRecentPicker = new Common.UI.DataView({
|
this.viewRecentPicker = new Common.UI.DataView({
|
||||||
el: $('#id-recent-view'),
|
el: $('#id-recent-view'),
|
||||||
|
@ -1111,7 +1112,9 @@ define([
|
||||||
onRecentFileClick: function(view, itemview, record){
|
onRecentFileClick: function(view, itemview, record){
|
||||||
if ( this.menu )
|
if ( this.menu )
|
||||||
this.menu.fireEvent('recent:open', [this.menu, record.get('url')]);
|
this.menu.fireEvent('recent:open', [this.menu, record.get('url')]);
|
||||||
}
|
},
|
||||||
|
|
||||||
|
txtOpenRecent: 'Open Recent'
|
||||||
});
|
});
|
||||||
|
|
||||||
DE.Views.FileMenuPanels.CreateNew = Common.UI.BaseView.extend(_.extend({
|
DE.Views.FileMenuPanels.CreateNew = Common.UI.BaseView.extend(_.extend({
|
||||||
|
@ -1937,7 +1940,8 @@ define([
|
||||||
this.rendered = false;
|
this.rendered = false;
|
||||||
|
|
||||||
this.template = _.template([
|
this.template = _.template([
|
||||||
'<table class="main" style="margin: 30px 0;">',
|
'<div class="header">' + this.txtAccessRights + '</div>',
|
||||||
|
'<table class="main">',
|
||||||
'<tr class="rights">',
|
'<tr class="rights">',
|
||||||
'<td class="left" style="vertical-align: top;"><label>' + this.txtRights + '</label></td>',
|
'<td class="left" style="vertical-align: top;"><label>' + this.txtRights + '</label></td>',
|
||||||
'<td class="right"><div id="id-info-rights"></div></td>',
|
'<td class="right"><div id="id-info-rights"></div></td>',
|
||||||
|
@ -2052,7 +2056,8 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
txtRights: 'Persons who have rights',
|
txtRights: 'Persons who have rights',
|
||||||
txtBtnAccessRights: 'Change access rights'
|
txtBtnAccessRights: 'Change access rights',
|
||||||
|
txtAccessRights: 'Access Rights'
|
||||||
}, DE.Views.FileMenuPanels.DocumentRights || {}));
|
}, DE.Views.FileMenuPanels.DocumentRights || {}));
|
||||||
|
|
||||||
DE.Views.FileMenuPanels.Help = Common.UI.BaseView.extend({
|
DE.Views.FileMenuPanels.Help = Common.UI.BaseView.extend({
|
||||||
|
|
|
@ -336,6 +336,15 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
#panel-recentfiles {
|
#panel-recentfiles {
|
||||||
|
#id-recent-view {
|
||||||
|
margin: 0 0 20px 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header {
|
||||||
|
margin: 30px 0 20px 10px;
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
.item {
|
.item {
|
||||||
border: none;
|
border: none;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
@ -437,14 +446,22 @@
|
||||||
#file-menu-panel & {
|
#file-menu-panel & {
|
||||||
padding: 0 30px;
|
padding: 0 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.header {
|
||||||
|
margin: 30px 0 20px 0;
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#panel-info,
|
#panel-info {
|
||||||
#panel-rights {
|
|
||||||
.header {
|
.header {
|
||||||
margin: 30px 0 20px 30px;
|
margin: 30px 0 20px 30px;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#panel-info,
|
||||||
|
#panel-rights {
|
||||||
table {
|
table {
|
||||||
tr {
|
tr {
|
||||||
td {
|
td {
|
||||||
|
|
|
@ -845,7 +845,8 @@ define([
|
||||||
menu: undefined,
|
menu: undefined,
|
||||||
|
|
||||||
template: _.template([
|
template: _.template([
|
||||||
'<div id="id-recent-view" style="margin: 20px 0;"></div>'
|
'<div class="header"><%= scope.txtOpenRecent %></div>',
|
||||||
|
'<div id="id-recent-view"></div>'
|
||||||
].join('')),
|
].join('')),
|
||||||
|
|
||||||
initialize: function(options) {
|
initialize: function(options) {
|
||||||
|
@ -856,7 +857,7 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
render: function() {
|
render: function() {
|
||||||
this.$el.html(this.template());
|
this.$el.html(this.template({scope: this}));
|
||||||
|
|
||||||
this.viewRecentPicker = new Common.UI.DataView({
|
this.viewRecentPicker = new Common.UI.DataView({
|
||||||
el: $('#id-recent-view'),
|
el: $('#id-recent-view'),
|
||||||
|
@ -895,7 +896,9 @@ define([
|
||||||
onRecentFileClick: function(view, itemview, record){
|
onRecentFileClick: function(view, itemview, record){
|
||||||
if ( this.menu )
|
if ( this.menu )
|
||||||
this.menu.fireEvent('recent:open', [this.menu, record.get('url')]);
|
this.menu.fireEvent('recent:open', [this.menu, record.get('url')]);
|
||||||
}
|
},
|
||||||
|
|
||||||
|
txtOpenRecent: 'Open Recent'
|
||||||
});
|
});
|
||||||
|
|
||||||
PE.Views.FileMenuPanels.CreateNew = Common.UI.BaseView.extend(_.extend({
|
PE.Views.FileMenuPanels.CreateNew = Common.UI.BaseView.extend(_.extend({
|
||||||
|
@ -1440,7 +1443,8 @@ define([
|
||||||
this.rendered = false;
|
this.rendered = false;
|
||||||
|
|
||||||
this.template = _.template([
|
this.template = _.template([
|
||||||
'<table class="main" style="margin: 30px 0;">',
|
'<div class="header">' + this.txtAccessRights + '</div>',
|
||||||
|
'<table class="main">',
|
||||||
'<tr class="rights">',
|
'<tr class="rights">',
|
||||||
'<td class="left" style="vertical-align: top;"><label>' + this.txtRights + '</label></td>',
|
'<td class="left" style="vertical-align: top;"><label>' + this.txtRights + '</label></td>',
|
||||||
'<td class="right"><div id="id-info-rights"></div></td>',
|
'<td class="right"><div id="id-info-rights"></div></td>',
|
||||||
|
@ -1552,7 +1556,8 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
txtRights: 'Persons who have rights',
|
txtRights: 'Persons who have rights',
|
||||||
txtBtnAccessRights: 'Change access rights'
|
txtBtnAccessRights: 'Change access rights',
|
||||||
|
txtAccessRights: 'Access Rights'
|
||||||
}, PE.Views.FileMenuPanels.DocumentRights || {}));
|
}, PE.Views.FileMenuPanels.DocumentRights || {}));
|
||||||
|
|
||||||
PE.Views.FileMenuPanels.Help = Common.UI.BaseView.extend({
|
PE.Views.FileMenuPanels.Help = Common.UI.BaseView.extend({
|
||||||
|
|
|
@ -347,6 +347,15 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
#panel-recentfiles {
|
#panel-recentfiles {
|
||||||
|
#id-recent-view {
|
||||||
|
margin: 0 0 20px 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header {
|
||||||
|
margin: 30px 0 20px 10px;
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
.dataview {
|
.dataview {
|
||||||
& > div:not([class^=ps-scrollbar]) {
|
& > div:not([class^=ps-scrollbar]) {
|
||||||
border: none;
|
border: none;
|
||||||
|
@ -447,15 +456,22 @@
|
||||||
|
|
||||||
#panel-rights {
|
#panel-rights {
|
||||||
padding: 0 30px;
|
padding: 0 30px;
|
||||||
|
|
||||||
|
.header {
|
||||||
|
margin: 30px 0 20px 0;
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#panel-info,
|
#panel-info {
|
||||||
#panel-rights {
|
|
||||||
.header {
|
.header {
|
||||||
margin: 30px 0 20px 30px;
|
margin: 30px 0 20px 30px;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#panel-info,
|
||||||
|
#panel-rights {
|
||||||
table {
|
table {
|
||||||
tr {
|
tr {
|
||||||
td {
|
td {
|
||||||
|
|
|
@ -1234,7 +1234,8 @@ SSE.Views.FileMenuPanels.RecentFiles = Common.UI.BaseView.extend({
|
||||||
menu: undefined,
|
menu: undefined,
|
||||||
|
|
||||||
template: _.template([
|
template: _.template([
|
||||||
'<div id="id-recent-view" style="margin: 20px 0;"></div>'
|
'<div class="header"><%= scope.txtOpenRecent %></div>',
|
||||||
|
'<div id="id-recent-view"></div>'
|
||||||
].join('')),
|
].join('')),
|
||||||
|
|
||||||
initialize: function(options) {
|
initialize: function(options) {
|
||||||
|
@ -1245,7 +1246,7 @@ SSE.Views.FileMenuPanels.RecentFiles = Common.UI.BaseView.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
render: function() {
|
render: function() {
|
||||||
this.$el.html(this.template());
|
this.$el.html(this.template({scope: this}));
|
||||||
|
|
||||||
this.viewRecentPicker = new Common.UI.DataView({
|
this.viewRecentPicker = new Common.UI.DataView({
|
||||||
el: $('#id-recent-view'),
|
el: $('#id-recent-view'),
|
||||||
|
@ -1284,7 +1285,9 @@ SSE.Views.FileMenuPanels.RecentFiles = Common.UI.BaseView.extend({
|
||||||
onRecentFileClick: function(view, itemview, record){
|
onRecentFileClick: function(view, itemview, record){
|
||||||
if ( this.menu )
|
if ( this.menu )
|
||||||
this.menu.fireEvent('recent:open', [this.menu, record.get('url')]);
|
this.menu.fireEvent('recent:open', [this.menu, record.get('url')]);
|
||||||
}
|
},
|
||||||
|
|
||||||
|
txtOpenRecent: 'Open Recent'
|
||||||
});
|
});
|
||||||
|
|
||||||
SSE.Views.FileMenuPanels.CreateNew = Common.UI.BaseView.extend(_.extend({
|
SSE.Views.FileMenuPanels.CreateNew = Common.UI.BaseView.extend(_.extend({
|
||||||
|
@ -1824,7 +1827,8 @@ SSE.Views.FileMenuPanels.RecentFiles = Common.UI.BaseView.extend({
|
||||||
this.rendered = false;
|
this.rendered = false;
|
||||||
|
|
||||||
this.template = _.template([
|
this.template = _.template([
|
||||||
'<table class="main" style="margin: 30px 0;">',
|
'<div class="header">' + this.txtAccessRights + '</div>',
|
||||||
|
'<table class="main">',
|
||||||
'<tr class="rights">',
|
'<tr class="rights">',
|
||||||
'<td class="left" style="vertical-align: top;"><label>' + this.txtRights + '</label></td>',
|
'<td class="left" style="vertical-align: top;"><label>' + this.txtRights + '</label></td>',
|
||||||
'<td class="right"><div id="id-info-rights"></div></td>',
|
'<td class="right"><div id="id-info-rights"></div></td>',
|
||||||
|
@ -1934,7 +1938,8 @@ SSE.Views.FileMenuPanels.RecentFiles = Common.UI.BaseView.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
txtRights: 'Persons who have rights',
|
txtRights: 'Persons who have rights',
|
||||||
txtBtnAccessRights: 'Change access rights'
|
txtBtnAccessRights: 'Change access rights',
|
||||||
|
txtAccessRights: 'Access Rights'
|
||||||
}, SSE.Views.FileMenuPanels.DocumentRights || {}));
|
}, SSE.Views.FileMenuPanels.DocumentRights || {}));
|
||||||
|
|
||||||
SSE.Views.FileMenuPanels.Help = Common.UI.BaseView.extend({
|
SSE.Views.FileMenuPanels.Help = Common.UI.BaseView.extend({
|
||||||
|
@ -2302,6 +2307,7 @@ SSE.Views.FileMenuPanels.RecentFiles = Common.UI.BaseView.extend({
|
||||||
'<div id="id-print-settings" class="no-padding">',
|
'<div id="id-print-settings" class="no-padding">',
|
||||||
'<div class="print-settings">',
|
'<div class="print-settings">',
|
||||||
'<div class="flex-settings ps-container oo settings-container">',
|
'<div class="flex-settings ps-container oo settings-container">',
|
||||||
|
'<div class="main-header"><%= scope.txtPrint %></div>',
|
||||||
'<table style="width: 100%;">',
|
'<table style="width: 100%;">',
|
||||||
'<tbody>',
|
'<tbody>',
|
||||||
'<tr><td><label class="header"><%= scope.txtPrintRange %></label></td></tr>',
|
'<tr><td><label class="header"><%= scope.txtPrintRange %></label></td></tr>',
|
||||||
|
|
|
@ -214,6 +214,11 @@
|
||||||
padding: 0;
|
padding: 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
||||||
|
.header {
|
||||||
|
margin: 30px 0 20px 30px;
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#panel-settings {
|
#panel-settings {
|
||||||
|
@ -402,6 +407,15 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
#panel-recentfiles {
|
#panel-recentfiles {
|
||||||
|
#id-recent-view {
|
||||||
|
margin: 0 0 20px 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header {
|
||||||
|
margin: 30px 0 20px 10px;
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
.dataview {
|
.dataview {
|
||||||
& > div:not([class^=ps-scrollbar]) {
|
& > div:not([class^=ps-scrollbar]) {
|
||||||
border: none;
|
border: none;
|
||||||
|
@ -502,14 +516,15 @@
|
||||||
|
|
||||||
#panel-rights {
|
#panel-rights {
|
||||||
padding: 0 30px;
|
padding: 0 30px;
|
||||||
|
|
||||||
|
.header {
|
||||||
|
margin: 30px 0 20px 0;
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#panel-info,
|
#panel-info,
|
||||||
#panel-rights {
|
#panel-rights {
|
||||||
.header {
|
|
||||||
margin: 30px 0 20px 30px;
|
|
||||||
font-size: 16px;
|
|
||||||
}
|
|
||||||
table {
|
table {
|
||||||
tr {
|
tr {
|
||||||
td {
|
td {
|
||||||
|
@ -598,6 +613,10 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
#panel-print {
|
#panel-print {
|
||||||
|
.main-header {
|
||||||
|
font-size: 16px;
|
||||||
|
margin: 18px 0 20px 0;
|
||||||
|
}
|
||||||
padding: 0;
|
padding: 0;
|
||||||
#print-preview-empty {
|
#print-preview-empty {
|
||||||
padding: 14px;
|
padding: 14px;
|
||||||
|
|
Loading…
Reference in a new issue