Loading public/javascript/app/components/steps/ActivitySetStep.js 0 → 100644 +84 −0 Original line number Diff line number Diff line define([ 'app/designs/doubleList/main/textSearchAndDoubleList' , 'app/redmicConfig' , 'dojo/_base/declare' , 'dojo/_base/lang' , 'templates/ActivityList' ], function ( Main , redmicConfig , declare , lang , templateList ) { return declare(Main, { // summary: // Step de ServiceOGC. constructor: function(args) { this.config = { // WizardStep params label: this.i18n.activities, title: this.i18n.activities, title2: this.i18n.activitiesSelected, labelAttr: 'activity', // General params target: redmicConfig.services.activity, ownChannel: 'activitySetStep' }; lang.mixin(this, this.config, args); }, _setConfigurations: function() { this.browserLeftConfig = this._merge([{ browserConfig: { template: templateList, rowConfig: { buttonsConfig: { listButton: [{ icon: 'fa-info-circle', btnId: 'details', title: 'info', href: redmicConfig.viewPaths.activityDetails },{ icon: 'fa-arrow-right', btnId: 'addItem', classIcon: 'blueIcon', returnItem: true }] } } } }, this.browserLeftConfig || {}]); this.browserRightConfig = this._merge([{ browserConfig:{ template: templateList, rowConfig: { buttonsConfig: { listButton: [{ icon: 'fa-trash-o', btnId: 'remove', callback: '_removeItem', classIcon: 'redIcon', returnItem: true },{ icon: 'fa-info-circle', btnId: 'details', title: 'info', href: redmicConfig.viewPaths.activityDetails }] } } } }, this.browserRightConfig || {}]); } }); }); public/javascript/app/components/steps/DocumentSetStep.js +0 −5 Original line number Diff line number Diff line Loading @@ -42,11 +42,6 @@ define([ rowConfig: { buttonsConfig: { listButton: [{ icon: "fa-file-pdf-o", btnId: "downloadPdf", condition: "url", href: redmicConfig.viewPaths.documentPDF },{ icon: "fa-info-circle", btnId: "details", title: "info", Loading public/javascript/app/components/steps/DownloadsSetStep.js 0 → 100644 +53 −0 Original line number Diff line number Diff line define([ 'app/base/views/extensions/_EditionFormList' , 'app/components/steps/_RememberDeleteItems' , 'app/designs/formList/layout/Layout' , 'app/designs/formList/main/FormListByStep' , 'app/maintenance/models/DownloadsServiceOGCModel' , 'dojo/_base/declare' , 'dojo/_base/lang' , 'templates/DownloadsSet' ], function ( _EditionFormList , _RememberDeleteItems , Layout , Controller , modelSchema , declare , lang , TemplateList ) { return declare([Layout, Controller, _EditionFormList, _RememberDeleteItems], { // summary: // Step de ServiceOGC. constructor: function (args) { this.config = { label: this.i18n.downloads, title: this.i18n.downloadsAssociated, propToRead: 'downloads', ownChannel: 'downloadsSetStep' }; lang.mixin(this, this.config, args); }, _setConfigurations: function() { this.browserConfig = this._merge([{ browserConfig: { template: TemplateList } }, this.browserConfig || {}]); this.formConfig = this._merge([{ modelSchema: modelSchema, template: 'maintenance/views/templates/forms/Downloads' }, this.formConfig || {}]); } }); }); public/javascript/app/components/steps/ProtocolsSetStep.js +1 −6 Original line number Diff line number Diff line Loading @@ -4,10 +4,8 @@ define([ , "app/designs/formList/layout/Layout" , "app/designs/formList/main/FormListByStep" , "app/maintenance/models/ProtocolsServiceOGCModel" , "app/redmicConfig" , "dojo/_base/declare" , "dojo/_base/lang" , "dojo/Deferred" , "templates/ProtocolsSet" ], function ( _EditionFormList Loading @@ -15,15 +13,13 @@ define([ , Layout , Controller , modelSchema , redmicConfig , declare , lang , Deferred , TemplateList ){ return declare([Layout, Controller, _EditionFormList, _RememberDeleteItems], { // summary: // Step de ActivityContact. // Step de ServiceOGC. constructor: function (args) { Loading @@ -31,7 +27,6 @@ define([ // WizardStep params label: this.i18n.protocols, title: this.i18n.protocolsAssociated, //idProperty: "id", // General params propToRead: "protocols", Loading public/javascript/app/edition/views/ServiceOGCEditionView.js +16 −0 Original line number Diff line number Diff line define([ "app/base/views/extensions/_AddAtlasCategory" , 'app/components/steps/ActivitySetStep' , "app/components/steps/MainDataStep" //, "app/components/steps/MapSelectAreaStep" , "app/components/steps/DownloadsSetStep" , "app/components/steps/ProtocolsSetStep" , "app/components/steps/SelectLayerStep" , "app/designs/edition/Controller" Loading @@ -11,8 +13,10 @@ define([ , "dojo/_base/lang" ], function( _AddAtlasCategory , ActivitySetStep , MainDataStep //, MapSelectAreaStep , DownloadsSetStep , ProtocolsSetStep , SelectLayerStep , Controller Loading Loading @@ -76,6 +80,18 @@ define([ props: { propertyName: 'protocols' } },{ definition: DownloadsSetStep, skippable: true, props: { propertyName: 'downloads' } },{ definition: ActivitySetStep, skippable: true, props: { propertyName: 'activities' } }] }, this.editorConfig || {}]); } Loading Loading
public/javascript/app/components/steps/ActivitySetStep.js 0 → 100644 +84 −0 Original line number Diff line number Diff line define([ 'app/designs/doubleList/main/textSearchAndDoubleList' , 'app/redmicConfig' , 'dojo/_base/declare' , 'dojo/_base/lang' , 'templates/ActivityList' ], function ( Main , redmicConfig , declare , lang , templateList ) { return declare(Main, { // summary: // Step de ServiceOGC. constructor: function(args) { this.config = { // WizardStep params label: this.i18n.activities, title: this.i18n.activities, title2: this.i18n.activitiesSelected, labelAttr: 'activity', // General params target: redmicConfig.services.activity, ownChannel: 'activitySetStep' }; lang.mixin(this, this.config, args); }, _setConfigurations: function() { this.browserLeftConfig = this._merge([{ browserConfig: { template: templateList, rowConfig: { buttonsConfig: { listButton: [{ icon: 'fa-info-circle', btnId: 'details', title: 'info', href: redmicConfig.viewPaths.activityDetails },{ icon: 'fa-arrow-right', btnId: 'addItem', classIcon: 'blueIcon', returnItem: true }] } } } }, this.browserLeftConfig || {}]); this.browserRightConfig = this._merge([{ browserConfig:{ template: templateList, rowConfig: { buttonsConfig: { listButton: [{ icon: 'fa-trash-o', btnId: 'remove', callback: '_removeItem', classIcon: 'redIcon', returnItem: true },{ icon: 'fa-info-circle', btnId: 'details', title: 'info', href: redmicConfig.viewPaths.activityDetails }] } } } }, this.browserRightConfig || {}]); } }); });
public/javascript/app/components/steps/DocumentSetStep.js +0 −5 Original line number Diff line number Diff line Loading @@ -42,11 +42,6 @@ define([ rowConfig: { buttonsConfig: { listButton: [{ icon: "fa-file-pdf-o", btnId: "downloadPdf", condition: "url", href: redmicConfig.viewPaths.documentPDF },{ icon: "fa-info-circle", btnId: "details", title: "info", Loading
public/javascript/app/components/steps/DownloadsSetStep.js 0 → 100644 +53 −0 Original line number Diff line number Diff line define([ 'app/base/views/extensions/_EditionFormList' , 'app/components/steps/_RememberDeleteItems' , 'app/designs/formList/layout/Layout' , 'app/designs/formList/main/FormListByStep' , 'app/maintenance/models/DownloadsServiceOGCModel' , 'dojo/_base/declare' , 'dojo/_base/lang' , 'templates/DownloadsSet' ], function ( _EditionFormList , _RememberDeleteItems , Layout , Controller , modelSchema , declare , lang , TemplateList ) { return declare([Layout, Controller, _EditionFormList, _RememberDeleteItems], { // summary: // Step de ServiceOGC. constructor: function (args) { this.config = { label: this.i18n.downloads, title: this.i18n.downloadsAssociated, propToRead: 'downloads', ownChannel: 'downloadsSetStep' }; lang.mixin(this, this.config, args); }, _setConfigurations: function() { this.browserConfig = this._merge([{ browserConfig: { template: TemplateList } }, this.browserConfig || {}]); this.formConfig = this._merge([{ modelSchema: modelSchema, template: 'maintenance/views/templates/forms/Downloads' }, this.formConfig || {}]); } }); });
public/javascript/app/components/steps/ProtocolsSetStep.js +1 −6 Original line number Diff line number Diff line Loading @@ -4,10 +4,8 @@ define([ , "app/designs/formList/layout/Layout" , "app/designs/formList/main/FormListByStep" , "app/maintenance/models/ProtocolsServiceOGCModel" , "app/redmicConfig" , "dojo/_base/declare" , "dojo/_base/lang" , "dojo/Deferred" , "templates/ProtocolsSet" ], function ( _EditionFormList Loading @@ -15,15 +13,13 @@ define([ , Layout , Controller , modelSchema , redmicConfig , declare , lang , Deferred , TemplateList ){ return declare([Layout, Controller, _EditionFormList, _RememberDeleteItems], { // summary: // Step de ActivityContact. // Step de ServiceOGC. constructor: function (args) { Loading @@ -31,7 +27,6 @@ define([ // WizardStep params label: this.i18n.protocols, title: this.i18n.protocolsAssociated, //idProperty: "id", // General params propToRead: "protocols", Loading
public/javascript/app/edition/views/ServiceOGCEditionView.js +16 −0 Original line number Diff line number Diff line define([ "app/base/views/extensions/_AddAtlasCategory" , 'app/components/steps/ActivitySetStep' , "app/components/steps/MainDataStep" //, "app/components/steps/MapSelectAreaStep" , "app/components/steps/DownloadsSetStep" , "app/components/steps/ProtocolsSetStep" , "app/components/steps/SelectLayerStep" , "app/designs/edition/Controller" Loading @@ -11,8 +13,10 @@ define([ , "dojo/_base/lang" ], function( _AddAtlasCategory , ActivitySetStep , MainDataStep //, MapSelectAreaStep , DownloadsSetStep , ProtocolsSetStep , SelectLayerStep , Controller Loading Loading @@ -76,6 +80,18 @@ define([ props: { propertyName: 'protocols' } },{ definition: DownloadsSetStep, skippable: true, props: { propertyName: 'downloads' } },{ definition: ActivitySetStep, skippable: true, props: { propertyName: 'activities' } }] }, this.editorConfig || {}]); } Loading