Commit 45c4411b authored by Pedro Eduardo Trujillo's avatar Pedro Eduardo Trujillo
Browse files

Actualiza layout usado en selección de capa

parent 88be6a48
Loading
Loading
Loading
Loading
+3 −6
Original line number Diff line number Diff line
@@ -28,7 +28,7 @@ define([

			this.inherited(arguments);

			this.topNode = put("div.topZone");
			this.topNode = put(this.domNode, "div.topZone");

			this._titleNode = put(this.topNode, "div.titleZone");

@@ -38,12 +38,9 @@ define([

			put(this.titleSpanNode, "a[href]");

			this.centerNode = put("div.centerZone");
			this.centerNode = put(this.domNode, "div.centerZone");

			this.listNode = put(this.centerNode, "div.listZone" + this.classByList);

			this.addChild(this.topNode);
			this.addChild(this.centerNode);
		}
	});
});
+20 −33
Original line number Diff line number Diff line
define([
	"dijit/layout/ContentPane"
	, "dijit/layout/BorderContainer"
	, "dojo/_base/declare"
	, "put-selector/put"
	'app/designs/base/_Layout'
	, 'dojo/_base/declare'
	, 'dojo/_base/lang'
	, 'put-selector/put'
], function(
	ContentPane
	, BorderContainer
	_Layout
	, declare
	, lang
	, put
) {

	return declare(ContentPane, {
	return declare(_Layout, {
		//	summary:
		//		Layout para vistas que contienen un formulario y un listado.

		postCreate: function() {

			this.inherited(arguments);
		constructor: function(args) {

			var parentNode = new BorderContainer({
				'class': "col-lg-12"
			});
			this.config = {
				layoutAdditionalClasses: 'layoutListDesign'
			};

			put(this.containerNode, parentNode.domNode);

			this.parentTopNode = new ContentPane({
				region: "top",
				style: 'height: 70px'
			});
			lang.mixin(this, this.config, args);
		},

			parentNode.addChild(this.parentTopNode);
		postCreate: function() {

			this.parentCenterNode = new ContentPane({
				region: "center"
			});
			this.inherited(arguments);

			parentNode.addChild(this.parentCenterNode);
			this.parentTopNode = put(this.domNode, "div");

			this.topNode = put(this.parentCenterNode.domNode, "div.topZone");
			this.topNode = put(this.domNode, "div.topZone");

			this._titleNode = put(this.topNode, "div.titleZone.col-xs-8.col-sm-8.col-md-8.col-lg-8.col-xl-8");
			this._titleNode = put(this.topNode, "div.titleZone");

			this._setTitle(this.title);

			this.keypadZoneNode = put(this.topNode, "div.keypadZone.col-xs-4.col-sm-4.col-md-4.col-lg-4.col-xl-4");
			this.keypadZoneNode = put(this.topNode, "div.keypadZone");

			put(this.titleSpanNode, "a[href]");

			this.centerNode = put(this.parentCenterNode.domNode, "div.centerZone");
			this.centerNode = put(this.domNode, "div.centerZone");

			this.listNode = put(this.centerNode, "div.listZone");
		},

		_getNodeToShow: function() {

			return this.containerNode;
		}
	});
});
Compare a56b10a1 to 78f67b13
Original line number Diff line number Diff line
Subproject commit a56b10a15d2971d77b5ffa09ef158cf9cbeb80f7
Subproject commit 78f67b13102135e910f0345b39206ed61724dca3