Commit ab63fc08 authored by Pedro Eduardo Trujillo's avatar Pedro Eduardo Trujillo
Browse files

Incluye en edición de activity embeddedContent

Incorpora nuevo paso al wizard de edición de activity para definir los
contenidos incrustados en la misma.

Corrige traducciones.

Actualiza submódulo de templates.
parent c0190f7d
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
<div>
	<form class="form-horizontal">
		<div data-redmic-type="textarea" data-redmic-model="embeddedContent"></div>
	</form>
</div>
+59 −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'
	, 'dojo/_base/declare'
	, 'dojo/_base/lang'
	, 'templates/EmbeddedContentSet'
], function(
	_EditionFormList
	, _RememberDeleteItems
	, Layout
	, Controller
	, declare
	, lang
	, TemplateList
) {

	return declare([Layout, Controller, _EditionFormList, _RememberDeleteItems], {
		//	summary:
		//		Step de ActivityEmbeddedContent.

		constructor: function (args) {

			this.config = {
				// WizardStep params
				label: this.i18n.activityEmbeddedContents,
				title: this.i18n.associatedEmbeddedContents,

				propToRead: 'embeddedContents',

				ownChannel: 'embeddedContentSetStep'
			};

			lang.mixin(this, this.config, args);
		},

		_setConfigurations: function() {

			this.browserConfig = this._merge([{
				browserConfig: {
					template: TemplateList
				}
			}, this.browserConfig || {}]);

			this._once(this._buildChannel(this.modelChannel, 'gotPropertySchema'), lang.hitch(this, function(res) {

				this.formConfig = this._merge([{
					modelSchema: res.schema,
					template: 'administrative/views/templates/forms/ActivityEmbeddedContent'
				}, this.formConfig || {}]);
			}));

			this._publish(this._buildChannel(this.modelChannel, 'getPropertySchema'), {
				key: 'embeddedContents/{i}'
			});
		}
	});
});
+1 −1
Original line number Diff line number Diff line
@@ -204,7 +204,7 @@ define([
					height: 6,
					type: GenericDisplayer,
					props: {
						title: this.i18n.activityEmbeddedContent + ' #' + i,
						title: this.i18n.activityEmbeddedContent + ' #' + (i + 1),
						content: embeddedContentParentNode.firstChild
					}
				};
+8 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@ define([
	"app/maintenance/domains/admin/views/ActivityTypesView"
	, "app/components/steps/ContactSetStep"
	, "app/components/steps/DocumentSetStep"
	, "app/components/steps/EmbeddedContentSetStep"
	, "app/components/steps/MainDataStep"
	, "app/components/steps/OrganisationSetStep"
	, "app/components/steps/PlatformSetStep"
@@ -16,6 +17,7 @@ define([
	ActivityType
	, ContactSetStep
	, DocumentSetStep
	, EmbeddedContentSetStep
	, ActivityMainDataStep
	, OrganisationSetStep
	, PlatformSetStep
@@ -101,6 +103,12 @@ define([
						propertyName: 'resources'
					},
					skippable: true
				},{
					definition: EmbeddedContentSetStep,
					props: {
						propertyName: 'embeddedContents'
					},
					skippable: true
				}]
			}, this.editorConfig || {}]);
		}
+4 −0
Original line number Diff line number Diff line
@@ -1404,6 +1404,10 @@ define({
	, "metaConfirmRecoverPasswordDescription": "Utilidad de asignación de nueva contraseña para usuarios registrados en REDMIC que lo han solicitado"

	, "missingEmbeddedContent": "Contenido incrustado no disponible"
	, "activityEmbeddedContents": "Contenidos incrustados"
	, "associatedEmbeddedContents": "Contenidos incrustados asociados"
	, "embeddedContent": "Contenido incrustado"
	, "embeddedContentPlaceHolder": "Contenido HTML a incrustar"

	// Para capas que no se pueden cambiar las keys
	, "descript_1": "Descripción"
Loading