CKEDITOR.dialog.add( 'shortcodesDialog', function( editor ) {
    return {
        title: 'Shortcodes Contratos',
        minWidth: 400,
        minHeight: 200,
		buttons: [CKEDITOR.dialog.cancelButton],
        contents: [{
			elements: [
				{
                type: "hbox",
                align: "top",
                widths: ["20%", "20%", "20%", "20%", "20%"],
                children: [
                    {
						type: 'button',
						id: 'firts_name',
						label: '{Nombre}',
						title: 'Nombre',
						onClick: function(){
							editor.insertHtml(this.getElement().getText());
						}
					},
					{
						type: 'button',
						id: 'last_name',
						label: '{Apellido}',
						title: 'Apellido',
						onClick: function(){
							editor.insertHtml(this.getElement().getText());
						}

					},
                    {
						type: 'button',
						id: 'birthday',
						label: '{Fecha_Nacimiento}',
						title: 'Fecha de Nacimiento',
						onClick: function(){
							editor.insertHtml(this.getElement().getText());
						}
					},
                    {
                        type: 'button',
                        id: 'place_birthday',
                        label: '{Lugar_Nacimiento}',
                        title: 'Lugar de Nacimiento',
                        onClick: function(){
                            editor.insertHtml(this.getElement().getText());
                        }
                    },
                    {
                        type: 'button',
                        id: 'signature',
                        label: '{Firma}',
                        title: 'Firma',
                        onClick: function(){
                            editor.insertHtml(this.getElement().getText());
                        }
                    }
				]//children
				},//hbox
				{
				type: "hbox",
				align: "top",
				widths: ["25%", "25%", "25%", "25%"],
				children: [
					{
						type: 'button',
						id: 'type_document',
						label: '{Tipo_documento}',
						title: 'Tipo de documento',
						onClick: function(){
							editor.insertHtml(this.getElement().getText());
						}
					},
                    {
                        type: 'button',
                        id: 'type_document_abbreviation',
                        label: '{Tipo_documento_abreviado}',
                        title: 'Tipo de documento abreviado',
                        onClick: function(){
                            editor.insertHtml(this.getElement().getText());
                        }
                    },
					{
						type: 'button',
						id: 'dcument_number',
						label: '{Numero_documento}',
						title: 'Número de documento',
						onClick: function(){
							editor.insertHtml(this.getElement().getText());
						}

					},
                    {
                        type: 'button',
                        id: 'document_expedition',
                        label: '{Expedicion_documento}',
                        title: 'Expedición de documento',
                        onClick: function(){
                            editor.insertHtml(this.getElement().getText());
                        }
                    },

				]//children
				},//hbox
                {
                    type: "hbox",
                    align: "top",
                    widths: ["20%", "20%", "20%", "20%", "20%"],
                    children: [
                        {
                            type: 'button',
                            id: 'nacionality',
                            label: '{Nacionalidad}',
                            title: 'Nacionalidad',
                            onClick: function(){
                                editor.insertHtml(this.getElement().getText());
                            }

                        },
                        {
                            type: 'button',
                            id: 'phone',
                            label: '{Telefono}',
                            title: 'Teléfono',
                            onClick: function(){
                                editor.insertHtml(this.getElement().getText());
                            }
                        },
                        {
                            type: 'button',
                            id: 'address',
                            label: '{Direccion}',
                            title: 'Dirección',
                            onClick: function(){
                                editor.insertHtml(this.getElement().getText());
                            }

                        },
                        {
                            type: 'button',
                            id: 'city_residence',
                            label: '{Ciudad_residencia}',
                            title: 'Ciudad de residencia',
                            onClick: function(){
                                editor.insertHtml(this.getElement().getText());
                            }

                        },
                        {
                            type: 'button',
                            id: 'state_residence',
                            label: '{Departamento_residencia}',
                            title: 'Departamento de residencia',
                            onClick: function(){
                                editor.insertHtml(this.getElement().getText());
                            }

                        },
                    ]//children
                },//hbox
                {
                type: "hbox",
                align: "top",
                widths: ["25%", "25%", "25%", "25%"],
                children: [
                    {
                        type: 'button',
                        id: 'company',
                        label: '{Empresa}',
                        title: 'Empresa',
                        onClick: function(){
                            editor.insertHtml(this.getElement().getText());
                        }
                    },
                    {
                        type: 'button',
                        id: 'nit',
                        label: '{NIT}',
                        title: 'NIT',
                        onClick: function(){
                            editor.insertHtml(this.getElement().getText());
                        }
                    },
                    {
                        type: 'button',
                        id: 'email_company',
                        label: '{Email_empresa}',
                        title: 'Email de la empresa',
                        onClick: function(){
                            editor.insertHtml(this.getElement().getText());
                        }
                    },
                    {
                        type: 'button',
                        id: 'phone_company',
                        label: '{Telefono_empresa}',
                        title: 'Teléfono de la empresa',
                        onClick: function(){
                            editor.insertHtml(this.getElement().getText());
                        }
                    },
                ]//children
                },//hbox
                {
                type: "hbox",
                align: "top",
                widths: ["33%", "33%", "33%"],
                children: [
                    {
                        type: 'button',
                        id: 'address_company',
                        label: '{Direccion_empresa}',
                        title: 'Dirección de la empresa',
                        onClick: function(){
                            editor.insertHtml(this.getElement().getText());
                        }
                    },
                    {
                        type: 'button',
                        id: 'city_company',
                        label: '{Ciudad_empresa}',
                        title: 'Ciudad de la empresa',
                        onClick: function(){
                            editor.insertHtml(this.getElement().getText());
                        }
                    },
                    {
                        type: 'button',
                        id: 'state_company',
                        label: '{Departamento_empresa}',
                        title: 'Departamento de la empresa',
                        onClick: function(){
                            editor.insertHtml(this.getElement().getText());
                        }
                    },
                ]//children
                },//hbox
                {
                type: "hbox",
                align: "top",
                widths: ["33%", "33%", "33%"],
                children: [
                    {
                        type: 'button',
                        id: 'representative_legal',
                        label: '{Representante_legal}',
                        title: 'Nombre del representante legal',
                        onClick: function(){
                            editor.insertHtml(this.getElement().getText());
                        }
                    },
                    {
                        type: 'button',
                        id: 'type_document_representative_legal',
                        label: '{Tipo_doc_representante_legal}',
                        title: 'Tipo de documento del representante legal',
                        onClick: function(){
                            editor.insertHtml(this.getElement().getText());
                        }
                    },
                    {
                        type: 'button',
                        id: 'type_document_representative_legal_abbreviation',
                        label: '{Tipo_doc_rep_legal_abbreviacion}',
                        title: 'Tipo de documento del representante legal (abreviación)',
                        onClick: function(){
                            editor.insertHtml(this.getElement().getText());
                        }
                    },
                ]//children
                },//hbox
                {
                type: "hbox",
                align: "top",
                widths: ["50%", "50%"],
                children: [
                    {
                        type: 'button',
                        id: 'document_number_representative_legal',
                        label: '{Doc_representante_legal}',
                        title: 'Número de documento del representante legal',
                        onClick: function(){
                            editor.insertHtml(this.getElement().getText());
                        }
                    },
                    {
                        type: 'button',
                        id: 'document_expedition_representative_legal',
                        label: '{Exp_doc_representante_legal}',
                        title: 'Lugar de Expedición de documento del representante legal',
                        onClick: function(){
                            editor.insertHtml(this.getElement().getText());
                        }
                    },

                ]//children
                },//hbox
                {
                type: "hbox",
                align: "top",
                widths: ["25%", "25%", "25%", "25%"],
                children: [
                    {
                        type: 'button',
                        id: 'signature_full_name',
                        label: '{Nombre_encargado_firma}',
                        title: 'Nombre del encargado que firma',
                        onClick: function(){
                            editor.insertHtml(this.getElement().getText());
                        }
                    },
                    {
                        type: 'button',
                        id: 'signature_position',
                        label: '{Cargo_encargado_firma}',
                        title: 'Cargo del encargado que firma',
                        onClick: function(){
                            editor.insertHtml(this.getElement().getText());
                        }
                    },
                    {
                        type: 'button',
                        id: 'signature_document_type',
                        label: '{Tipo_doc_encargado_firma}',
                        title: 'Tipo de documento del encargado que firma',
                        onClick: function(){
                            editor.insertHtml(this.getElement().getText());
                        }
                    },
                    {
                        type: 'button',
                        id: 'signature_document_number',
                        label: '{Numero_doc_encargado_firma}',
                        title: 'Número de documento del encargado que firma',
                        onClick: function(){
                            editor.insertHtml(this.getElement().getText());
                        }
                    },

                ]//children
                },
                {
                type: "hbox",
                align: "top",
                widths: ["20%", "20%", "20%", "20%", "20%"],
                children: [
                    {
                        type: 'button',
                        id: 'position_title',
                        label: '{Cargo}',
                        title: 'Cargo',
                        onClick: function(){
                            editor.insertHtml(this.getElement().getText());
                        }
                    },
                    {
                        type: 'button',
                        id: 'salary',
                        label: '{Sueldo_mensual}',
                        title: 'Sueldo mensual',
                        onClick: function(){
                            editor.insertHtml(this.getElement().getText());
                        }
                    },
                    {
                        type: 'button',
                        id: 'salary_text',
                        label: '{Sueldo_mensual_letras}',
                        title: 'Sueldo mensual (letras)',
                        onClick: function(){
                            editor.insertHtml(this.getElement().getText());
                        }
                    },
                    {
                        type: 'button',
                        id: 'payment_method',
                        label: '{Forma_pago}',
                        title: 'Forma de pago',
                        onClick: function(){
                            editor.insertHtml(this.getElement().getText());
                        }
                    },
                    {
                        type: 'button',
                        id: 'signature_date',
                        label: '{Fecha_firma}',
                        title: 'Fecha de la firma del contrato',
                        onClick: function(){
                            editor.insertHtml(this.getElement().getText());
                        }
                    }
                ]//children
                },//hbox
                {
                type: "hbox",
                align: "top",
                widths: ["33%", "33%", "33%"],
                children: [
                    {
                        type: 'button',
                        id: 'place_hired',
                        label: '{Lugar_donde_ha_sido_contratado}',
                        title: 'Lugar donde ha sido contratado el trabajador',
                        onClick: function(){
                            editor.insertHtml(this.getElement().getText());
                        }
                    },
                    {
                        type: 'button',
                        id: 'place_work',
                        label: '{Lugar_donde_realizara_labores}',
                        title: 'Lugar donde desempeñara labores el trabajador',
                        onClick: function(){
                            editor.insertHtml(this.getElement().getText());
                        }
                    },
                    {
                        type: 'button',
                        id: 'date_start_work',
                        label: '{Fecha_inicio_labores}',
                        title: 'Fecha de inicio de labores',
                        onClick: function(){
                            editor.insertHtml(this.getElement().getText());
                        }
                    },
                ]//children
                },//hbox
                {
                type: "hbox",
                align: "top",
                widths: ["25%", "25%", "25%", "25%"],
                children: [
                    {
                        type: 'button',
                        id: 'date_end_work',
                        label: '{Fecha_fin_labores}',
                        title: 'Fecha de fin de labores',
                        onClick: function(){
                            editor.insertHtml(this.getElement().getText());
                        }
                    },
                    {
                        type: 'button',
                        id: 'date_start_contract',
                        label: '{Fecha_inicio_contrato}',
                        title: 'Fecha de inicio de contrato',
                        onClick: function(){
                            editor.insertHtml(this.getElement().getText());
                        }
                    },
                    {
                        type: 'button',
                        id: 'date_end_contract',
                        label: '{Fecha_finalizacion_contrato}',
                        title: 'Fecha de finalización de contrato',
                        onClick: function(){
                            editor.insertHtml(this.getElement().getText());
                        }
                    },
                    {
                        type: 'button',
                        id: 'duration_contract',
                        label: '{Duracion_contrato}',
                        title: 'Duración del contrato',
                        onClick: function(){
                            editor.insertHtml(this.getElement().getText());
                        }
                    },
                ]//children
                },//hbox
                {
                type: "hbox",
                align: "top",
                widths: ["33%", "33%", "33%"],
                children: [
                    {
                        type: 'button',
                        id: 'energy_cost',
                        label: '{Costo_energia}',
                        title: 'Costo de energía',
                        onClick: function(){
                            editor.insertHtml(this.getElement().getText());
                        }
                    },
                    {
                        type: 'button',
                        id: 'maintenance_tecnology_resources_cost',
                        label: '{Costo_mantenimiento_recursos_tecnologicos}',
                        title: 'Costo de mantenimiento de recursos tecnológicos',
                        onClick: function(){
                            editor.insertHtml(this.getElement().getText());
                        }
                    },
                    {
                        type: 'button',
                        id: 'phone_cost',
                        label: '{Costo_telefonia}',
                        title: 'Gastos de teléfono',
                        onClick: function(){
                            editor.insertHtml(this.getElement().getText());
                        }
                    },
                ]//children
                },
                {
                type: "hbox",
                align: "top",
                widths: ["33%", "33%", "33%"],
                children: [
                    {
                        type: 'button',
                        id: 'other_cost',
                        label: '{Otros_gastos}',
                        title: 'Otros gastos',
                        onClick: function(){
                            editor.insertHtml(this.getElement().getText());
                        }
                    },
                    {
                        type: 'button',
                        id: 'no_salary_cost',
                        label: '{Conceptos_no_salariales}',
                        title: 'Gastos que no hacen parte del salario',
                        onClick: function(){
                            editor.insertHtml(this.getElement().getText());
                        }
                    },
                ]//children
                },
				]
            }]

    };
});
