@@ -49,7 +49,7 @@ Ext.extend(FileMan.window.UpdateFile, MODx.Window, {
4949 } ,
5050
5151 getFields : function ( config ) {
52- var fieldsTabGeneral = [
52+ let fieldsTabGeneral = [
5353 {
5454 xtype : 'hidden' ,
5555 name : 'id' ,
@@ -69,7 +69,7 @@ Ext.extend(FileMan.window.UpdateFile, MODx.Window, {
6969 name : 'description' ,
7070 id : config . id + '-description' ,
7171 anchor : '99%' ,
72- height : 120
72+ height : 80
7373 } ,
7474 {
7575 xtype : 'textfield' ,
@@ -79,6 +79,49 @@ Ext.extend(FileMan.window.UpdateFile, MODx.Window, {
7979 anchor : '99%' ,
8080 allowBlank : true
8181 } ,
82+ {
83+ xtype : 'xdatetime' ,
84+ fieldLabel : _ ( 'fileman_published_at' ) ,
85+ name : 'published_at' ,
86+ id : config . id + '-published_at' ,
87+ anchor : '50%' ,
88+ allowBlank : true ,
89+ dateFormat : MODx . config . manager_date_format ,
90+ timeFormat : MODx . config . manager_time_format ,
91+ startDay : parseInt ( MODx . config . manager_week_start ) ,
92+ } ,
93+ {
94+ layout : 'column' ,
95+ border : false ,
96+ items : [ {
97+ columnWidth : .5 ,
98+ border : false ,
99+ layout : 'form' ,
100+ items : [ {
101+ xtype : 'xcheckbox' ,
102+ id : config . id + '-published' ,
103+ fieldLabel : _ ( 'fileman_published' ) ,
104+ boxLabel : _ ( 'fileman_published_desc' ) ,
105+ hideLabel : false ,
106+ name : 'published'
107+ } ]
108+ } , {
109+ columnWidth : .5 ,
110+ border : false ,
111+ layout : 'form' ,
112+ items : [ {
113+ xtype : 'xcheckbox' ,
114+ id : config . id + '-private' ,
115+ fieldLabel : _ ( 'fileman_private' ) ,
116+ boxLabel : _ ( 'fileman_private_desc' ) ,
117+ hideLabel : false ,
118+ name : 'private'
119+ } ]
120+ } ]
121+ }
122+ ] ;
123+
124+ let fieldsTabSettings = [
82125 {
83126 xtype : 'textfield' ,
84127 fieldLabel : _ ( 'fileman_name' ) ,
@@ -87,17 +130,6 @@ Ext.extend(FileMan.window.UpdateFile, MODx.Window, {
87130 anchor : '99%' ,
88131 allowBlank : false
89132 } ,
90- {
91- xtype : 'xcheckbox' ,
92- id : config . id + '-private' ,
93- fieldLabel : _ ( 'fileman_private' ) ,
94- boxLabel : _ ( 'fileman_private_desc' ) ,
95- hideLabel : false ,
96- name : 'private'
97- }
98- ] ;
99-
100- var fieldsTabSettings = [
101133 {
102134 xtype : 'statictextfield' ,
103135 fieldLabel : _ ( 'fileman_path' ) ,
@@ -112,13 +144,13 @@ Ext.extend(FileMan.window.UpdateFile, MODx.Window, {
112144 id : config . id + '-internal_name' ,
113145 anchor : '99%'
114146 } ,
115- {
116- xtype : 'statictextfield' ,
117- fieldLabel : _ ( 'fileman_extension' ) ,
118- name : 'extension' ,
119- id : config . id + '-extension' ,
120- anchor : '99%'
121- } ,
147+ // {
148+ // xtype: 'statictextfield',
149+ // fieldLabel: _('fileman_extension'),
150+ // name: 'extension',
151+ // id: config.id + '-extension',
152+ // anchor: '99%'
153+ // },
122154 {
123155 xtype : 'statictextfield' ,
124156 fieldLabel : _ ( 'fileman_fid' ) ,
@@ -151,9 +183,8 @@ Ext.extend(FileMan.window.UpdateFile, MODx.Window, {
151183
152184 var result = [ ] ;
153185 if ( FileMan . config . resource_id > 0 ) {
154- result . push ( { xtype : 'hidden' , name : 'resource_id' , id : config . id + '-resource_id' } ) ;
155- }
156- else {
186+ result . push ( { xtype : 'hidden' , name : 'resource_id' , id : config . id + '-resource_id' } ) ;
187+ } else {
157188 fieldsTabSettings . unshift ( {
158189 xtype : 'modx-combo' ,
159190 id : config . id + '-resource_id' ,
@@ -204,7 +235,7 @@ Ext.extend(FileMan.window.UpdateFile, MODx.Window, {
204235
205236 result . push ( {
206237 xtype : 'modx-tabs' ,
207- defaults : { border : false , autoHeight : true } ,
238+ defaults : { border : false , autoHeight : true } ,
208239 deferredRender : false ,
209240 border : true ,
210241 hideMode : 'offsets' ,
0 commit comments