Commit 3785bf46 authored by Pedro Eduardo Trujillo's avatar Pedro Eduardo Trujillo
Browse files

Añade campos a edición de serviceOGC, limpia

Añade nuevos subschemas y pasos de edición dedicados a nuevos campos de
las capas del servicio atlas.

Actualiza traducciones, submódulos y limpia restos de vistas antiguas.
parent 8ed68061
Loading
Loading
Loading
Loading
+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 || {}]);
		}
	});
});
+0 −5
Original line number Diff line number Diff line
@@ -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",
+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 || {}]);
		}
	});
});
+1 −6
Original line number Diff line number Diff line
@@ -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
@@ -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) {

@@ -31,7 +27,6 @@ define([
				// WizardStep params
				label: this.i18n.protocols,
				title: this.i18n.protocolsAssociated,
				//idProperty: "id",

				// General params
				propToRead: "protocols",
+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"
@@ -11,8 +13,10 @@ define([
	, "dojo/_base/lang"
], function(
	_AddAtlasCategory
	, ActivitySetStep
	, MainDataStep
	//, MapSelectAreaStep
	, DownloadsSetStep
	, ProtocolsSetStep
	, SelectLayerStep
	, Controller
@@ -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